File indexing completed on 2024-04-21 04:43:23
0001 // This is an example not a library 0002 /* 0003 SPDX-FileCopyrightText: 2008 Daniel Nicoletti <dantti85-pk@yahoo.com.br> 0004 SPDX-FileCopyrightText: 2009 Radek Novacek <rnovacek@redhat.com> 0005 0006 SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #ifndef PKEXAMPLE_HELPER_H 0010 #define PKEXAMPLE_HELPER_H 0011 0012 #include <QDBusContext> 0013 #include <QCoreApplication> 0014 0015 class PkExampleHelper : public QCoreApplication, protected QDBusContext 0016 { 0017 Q_OBJECT 0018 Q_CLASSINFO("D-Bus Interface", "org.qt.policykit.examples") 0019 public: 0020 PkExampleHelper(int &argc, char **argv); 0021 ~PkExampleHelper() override; 0022 0023 public Q_SLOTS: 0024 bool set(const QString &action); 0025 bool setValue(const QString &action); 0026 }; 0027 0028 0029 #endif