summaryrefslogtreecommitdiff
path: root/PluginCommandInterfaceDbus/DbusSend.h
diff options
context:
space:
mode:
Diffstat (limited to 'PluginCommandInterfaceDbus/DbusSend.h')
-rw-r--r--PluginCommandInterfaceDbus/DbusSend.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/PluginCommandInterfaceDbus/DbusSend.h b/PluginCommandInterfaceDbus/DbusSend.h
new file mode 100644
index 0000000..bfb565d
--- /dev/null
+++ b/PluginCommandInterfaceDbus/DbusSend.h
@@ -0,0 +1,28 @@
+/*
+ * DbusSend.h
+ *
+ * Created on: Jul 20, 2011
+ * Author: christian
+ */
+
+#ifndef DBUSSEND_H_
+#define DBUSSEND_H_
+
+#include "headers.h"
+
+class DbusSend {
+public:
+ DbusSend(DBusConnection* conn, const char* bus_name,const char* path, const char* interface, const char* method);
+ virtual ~DbusSend();
+ void appendString(char* string);
+ void appendInteger(int integer);
+ void sendReply(bool* reply);
+ void sendReply(int* reply);
+
+private:
+ DBusMessage* m_msg;
+ DBusMessageIter m_args;
+ DBusConnection* m_conn;
+};
+
+#endif /* DBUSSEND_H_ */