diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-12-09 17:02:13 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-12-09 17:02:13 +0900 |
commit | 855818127b02c367fb187e67b9bb9b229b916304 (patch) | |
tree | c353d9b96b0135baf7f7a553c59926f2e5866a31 /examples/agent/pkagentexample.h | |
parent | 7d1585c071206dd8460ed624eff764de5464dde7 (diff) | |
download | polkit-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.h | 27 |
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 + |