summaryrefslogtreecommitdiffstats
path: root/lib/CommLayer/DBusClientProxy.h
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-07-07 16:17:24 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-07-07 16:17:24 +0200
commit3ca0d6c07b45fd0aca092bd6d9272b2f0dda6fe1 (patch)
tree04958ecebb0c34d95335c10d99e61b2a2a9f8bfd /lib/CommLayer/DBusClientProxy.h
parent5b7b33d851002f67b9d32e0702c7da0d82fbbb58 (diff)
downloadabrt-3ca0d6c07b45fd0aca092bd6d9272b2f0dda6fe1.tar.gz
abrt-3ca0d6c07b45fd0aca092bd6d9272b2f0dda6fe1.tar.xz
abrt-3ca0d6c07b45fd0aca092bd6d9272b2f0dda6fe1.zip
Added dbus client to commlayer
Diffstat (limited to 'lib/CommLayer/DBusClientProxy.h')
-rw-r--r--lib/CommLayer/DBusClientProxy.h51
1 files changed, 46 insertions, 5 deletions
diff --git a/lib/CommLayer/DBusClientProxy.h b/lib/CommLayer/DBusClientProxy.h
index 4bbf5ee..8895a11 100644
--- a/lib/CommLayer/DBusClientProxy.h
+++ b/lib/CommLayer/DBusClientProxy.h
@@ -35,9 +35,6 @@ public:
public:
- /* properties exported by this interface */
-public:
-
/* methods exported by this interface,
* this functions will invoke the corresponding methods on the remote objects
*/
@@ -50,13 +47,12 @@ public:
...
>
*/
- vector_crash_infos_t GetCrashInfos(const std::string &pUID)
+ vector_crash_infos_t GetCrashInfos()
{
DBus::CallMessage call;
DBus::MessageIter wi = call.writer();
- wi << pUID;
call.member("GetCrashInfos");
DBus::Message ret = invoke_method(call);
DBus::MessageIter ri = ret.reader();
@@ -65,6 +61,51 @@ public:
ri >> argout;
return argout;
}
+
+ bool DeleteDebugDump(const std::string& pUUID)
+ {
+ DBus::CallMessage call;
+
+ DBus::MessageIter wi = call.writer();
+
+ wi << pUUID;
+ call.member("DeleteDebugDump");
+ DBus::Message ret = invoke_method(call);
+ DBus::MessageIter ri = ret.reader();
+
+ bool argout;
+ ri >> argout;
+ return argout;
+ }
+
+ map_crash_report_t CreateReport(const std::string& pUUID)
+ {
+ DBus::CallMessage call;
+
+ DBus::MessageIter wi = call.writer();
+
+ wi << pUUID;
+ call.member("CreateReport");
+ DBus::Message ret = invoke_method(call);
+ DBus::MessageIter ri = ret.reader();
+
+ map_crash_report_t argout;
+ ri >> argout;
+ return argout;
+ };
+
+ void Report(map_crash_report_t pReport)
+ {
+ DBus::CallMessage call;
+
+ DBus::MessageIter wi = call.writer();
+
+ wi << pReport;
+ call.member("Report");
+ DBus::Message ret = invoke_method(call);
+ DBus::MessageIter ri = ret.reader();
+ }
+
public:
/* signal handlers for this interface