00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: PkgModule.h 00014 00015 Author: Klaus Kaempf <kkaempf@suse.de> 00016 Maintainer: Klaus Kaempf <kkaempf@suse.de> 00017 00018 Purpose: Access to packagemanager 00019 Handles Pkg::function (list_of_arguments) calls 00020 from WFMInterpreter. 00021 /-*/ 00022 00023 #ifndef PkgModule_h 00024 #define PkgModule_h 00025 00026 #include <string> 00027 00028 #include <PkgModuleFunctions.h> 00029 00030 #include <ycp/YCPValue.h> 00031 #include <ycp/YCPList.h> 00032 00036 class PkgModule : public PkgModuleFunctions 00037 { 00038 public: 00039 00043 PkgModule (); 00044 00048 ~PkgModule (); 00049 00050 static PkgModule* instance (); 00051 00052 private: 00053 static PkgModule* current_pkg; 00054 00055 }; 00056 #endif // PkgModule_h