00001 /* 00002 * File: DbusAgent.h 00003 * 00004 * Authors: Arvin Schnell <aschnell@suse.de> 00005 */ 00006 00007 #ifndef DbusAgent_h 00008 #define DbusAgent_h 00009 00010 00011 #include <dbus/dbus.h> 00012 00013 #include <ycp/YCPValue.h> 00014 #include <scr/SCRAgent.h> 00015 00016 00025 class DbusAgent : public SCRAgent 00026 { 00027 00028 public: 00029 00030 DbusAgent(); 00031 ~DbusAgent(); 00032 00036 virtual YCPValue Read(const YCPPath& path, const YCPValue& arg = YCPNull(), const YCPValue& opt = YCPNull()); 00037 00041 virtual YCPBoolean Write(const YCPPath& path, const YCPValue& value, 00042 const YCPValue& arg = YCPNull()); 00043 00047 virtual YCPValue Execute(const YCPPath& path, const YCPValue& value = YCPNull(), 00048 const YCPValue& arg = YCPNull()); 00049 00053 virtual YCPList Dir(const YCPPath& path) { return YCPList(); } 00054 00055 private: 00056 00057 DBusConnection* connection; 00058 DBusError error; 00059 00060 }; 00061 00062 00063 #endif // DbusAgent_h
1.5.6