diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-12-06 00:02:47 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-12-08 19:24:33 +0900 |
commit | 7d1585c071206dd8460ed624eff764de5464dde7 (patch) | |
tree | 6e3a6fa7a9e1eb1d5dd510a6d4ae0e39bd915cb1 /examples/PkExampleHelper.h | |
parent | 26fc60d30352bb3bbf00f8a392bbc695ff8cf29f (diff) | |
download | polkit-tqt-7d1585c071206dd8460ed624eff764de5464dde7.tar.gz polkit-tqt-7d1585c071206dd8460ed624eff764de5464dde7.zip |
Converted first part of examples code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples/PkExampleHelper.h')
-rw-r--r-- | examples/PkExampleHelper.h | 22 |
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 + |