summaryrefslogtreecommitdiffstats
path: root/examples/PkExampleHelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/PkExampleHelper.h')
-rw-r--r--examples/PkExampleHelper.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/examples/PkExampleHelper.h b/examples/PkExampleHelper.h
index 4b7d256ef..f4b13786b 100644
--- a/examples/PkExampleHelper.h
+++ b/examples/PkExampleHelper.h
@@ -22,21 +22,27 @@
#ifndef PKEXAMPLE_HELPER_H
#define PKEXAMPLE_HELPER_H
-#include <TQtDBus/TQDBusContext>
-#include <TQtCore/TQCoreApplication>
+#include <tqdbusobject.h>
+#include <tqdbusconnection.h>
+#include "tqapplication.h"
-class PkExampleHelper : public TQCoreApplication, protected TQDBusContext
+class PkExampleHelper : public TQApplication, public TQT_DBusObjectBase
{
- Q_OBJECT
- TQ_CLASSINFO("D-Bus Interface", "org.tqt.policykit.examples")
-public:
+ Q_OBJECT
+
+ public:
PkExampleHelper(int &argc, char **argv);
~PkExampleHelper();
-public Q_SLOTS:
bool set(const TQString &action);
bool setValue(const TQString &action);
-};
+ protected:
+ bool handleMethodCall(const TQT_DBusMessage& message);
+
+ private:
+ TQT_DBusConnection m_connection;
+};
#endif
+