summaryrefslogtreecommitdiffstats
path: root/examples/PkExampleHelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/PkExampleHelper.cpp')
-rw-r--r--examples/PkExampleHelper.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/PkExampleHelper.cpp b/examples/PkExampleHelper.cpp
index d6ecfdc7f..97a634411 100644
--- a/examples/PkExampleHelper.cpp
+++ b/examples/PkExampleHelper.cpp
@@ -22,7 +22,7 @@
#include "PkExampleHelper.h"
#include "examplesadaptor.h"
-#include "polkitqt1-authority.h"
+#include "polkittqt-authority.h"
#include <TQtDBus/TQDBusConnection>
#include <TQtCore/TQTimer>
@@ -39,7 +39,7 @@ PkExampleHelper::PkExampleHelper(int &argc, char **argv)
tqDebug() << "Creating Helper";
(void) new ExamplesAdaptor(this);
// Register the DBus service
- if (!TQDBusConnection::systemBus().registerService("org.qt.policykit.examples")) {
+ if (!TQDBusConnection::systemBus().registerService("org.tqt.policykit.examples")) {
tqDebug() << TQDBusConnection::systemBus().lastError().message();;
TQTimer::singleShot(0, this, SLOT(quit()));
return;
@@ -68,7 +68,7 @@ bool PkExampleHelper::set(const TQString &action)
Authority::Result result;
SystemBusNameSubject subject(message().service());
- result = Authority::instance()->checkAuthorizationSync("org.qt.policykit.examples.set",
+ result = Authority::instance()->checkAuthorizationSync("org.tqt.policykit.examples.set",
subject , Authority::AllowUserInteraction);
if (result == Authority::Yes) {
tqDebug() << message().service() << TQString("Implicit authorization set to") << action;
@@ -86,14 +86,14 @@ bool PkExampleHelper::setValue(const TQString &action)
// This action must be authorized first. It will set the implicit
// authorization for the Shout action by editing the .policy file
TQDomDocument doc = TQDomDocument("policy");
- TQFile file("/usr/share/polkit-1/actions/org.qt.policykit.examples.policy");
+ TQFile file("/usr/share/polkit-1/actions/org.tqt.policykit.examples.policy");
if (!file.open(TQIODevice::ReadOnly))
return false;
doc.setContent(&file);
file.close();
TQDomElement el = doc.firstChildElement("policyconfig").
firstChildElement("action");
- while (!el.isNull() && el.attribute("id", TQString()) != "org.qt.policykit.examples.shout") {
+ while (!el.isNull() && el.attribute("id", TQString()) != "org.tqt.policykit.examples.shout") {
el = el.nextSiblingElement("action");
}
el = el.firstChildElement("defaults");