diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-01 09:36:46 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-04-01 09:36:46 +0200 |
| commit | 42657326fdf8db194013094537d9386830fe5876 (patch) | |
| tree | a81cde5aa03cc72950987c4eaa29d0461696a3d4 /lib/CommLayer/CommLayerServerDBus.h | |
| parent | d879ebf08c48bbe8ed9bd344fceee9163fe464da (diff) | |
| download | abrt-42657326fdf8db194013094537d9386830fe5876.tar.gz abrt-42657326fdf8db194013094537d9386830fe5876.tar.xz abrt-42657326fdf8db194013094537d9386830fe5876.zip | |
Added commlayer to make dbus optional
Diffstat (limited to 'lib/CommLayer/CommLayerServerDBus.h')
| -rw-r--r-- | lib/CommLayer/CommLayerServerDBus.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/CommLayer/CommLayerServerDBus.h b/lib/CommLayer/CommLayerServerDBus.h new file mode 100644 index 00000000..05ca0a47 --- /dev/null +++ b/lib/CommLayer/CommLayerServerDBus.h @@ -0,0 +1,27 @@ +#include "CommLayerServer.h" + +#include <dbus-c++/dbus.h> +#include <dbus-c++/glib-integration.h> +#include "DBusServerProxy.h" + +class CCommLayerServerDBus +: public CCommLayerServer, + public CDBusServer_adaptor, + public DBus::IntrospectableAdaptor, + public DBus::ObjectAdaptor +{ + private: + DBus::Connection *m_pConn; + DBus::Glib::BusDispatcher *dispatcher; + static DBus::Connection *init_dbus(CCommLayerServerDBus *self); + public: + CCommLayerServerDBus(CMiddleWare *m_pMW); + ~CCommLayerServerDBus(); + + virtual dbus_vector_crash_infos_t GetCrashInfos(const std::string &pUID); + virtual dbus_vector_map_crash_infos_t GetCrashInfosMap(const std::string &pDBusSender); + virtual dbus_map_report_info_t CreateReport(const std::string &pUUID,const std::string &pDBusSender); + virtual bool Report(dbus_map_report_info_t pReport); + virtual bool DeleteDebugDump(const std::string& pUUID, const std::string& pDBusSender); +}; + |
