summaryrefslogtreecommitdiffstats
path: root/examples/agent/pkagentexample.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-12-09 17:02:13 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-12-09 17:02:13 +0900
commit855818127b02c367fb187e67b9bb9b229b916304 (patch)
treec353d9b96b0135baf7f7a553c59926f2e5866a31 /examples/agent/pkagentexample.h
parent7d1585c071206dd8460ed624eff764de5464dde7 (diff)
downloadpolkit-tqt-855818127b02c367fb187e67b9bb9b229b916304.tar.gz
polkit-tqt-855818127b02c367fb187e67b9bb9b229b916304.zip
Converted agent example code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/agent/pkagentexample.h')
-rw-r--r--examples/agent/pkagentexample.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/examples/agent/pkagentexample.h b/examples/agent/pkagentexample.h
index 61dfb3dab..1776df117 100644
--- a/examples/agent/pkagentexample.h
+++ b/examples/agent/pkagentexample.h
@@ -24,19 +24,24 @@
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1
-#include <TQtDBus/TQDBusContext>
-#include <TQCoreApplication>
-#include "klistener.h"
+#include <tqapplication.h>
-class PkAgentExample : public TQCoreApplication
+#include "tqtlistener.h"
+
+class TQSessionManager;
+
+class PkAgentExample : public TQApplication
{
- Q_OBJECT
-public:
- PkAgentExample(int &argc, char **argv);
- ~PkAgentExample() {};
-private:
- KListener m_listener;
-};
+ Q_OBJECT
+
+ public:
+ PkAgentExample(int argc, char **argv);
+ void commitData(TQSessionManager &sm);
+
+ private:
+ TQtListener m_listener;
+};
#endif
+