diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/PkExampleHelper.cpp | 10 | ||||
-rw-r--r-- | examples/PkExampleHelper.h | 2 | ||||
-rw-r--r-- | examples/agent/CMakeLists.txt | 8 | ||||
-rw-r--r-- | examples/agent/klistener.cpp | 6 | ||||
-rw-r--r-- | examples/agent/klistener.h | 12 | ||||
-rw-r--r-- | examples/agent/pkagentexample.cpp | 2 | ||||
-rw-r--r-- | examples/org.tqt.policykit.examples.conf (renamed from examples/org.qt.policykit.examples.conf) | 4 | ||||
-rw-r--r-- | examples/org.tqt.policykit.examples.policy (renamed from examples/org.qt.policykit.examples.policy) | 34 | ||||
-rw-r--r-- | examples/org.tqt.policykit.examples.policy.in (renamed from examples/org.qt.policykit.examples.policy.in) | 42 | ||||
-rw-r--r-- | examples/org.tqt.policykit.examples.service.in (renamed from examples/org.qt.policykit.examples.service.in) | 2 | ||||
-rw-r--r-- | examples/org.tqt.policykit.examples.xml (renamed from examples/org.qt.policykit.examples.xml) | 2 |
11 files changed, 62 insertions, 62 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"); diff --git a/examples/PkExampleHelper.h b/examples/PkExampleHelper.h index 825a14bf0..4b7d256ef 100644 --- a/examples/PkExampleHelper.h +++ b/examples/PkExampleHelper.h @@ -28,7 +28,7 @@ class PkExampleHelper : public TQCoreApplication, protected TQDBusContext { Q_OBJECT - TQ_CLASSINFO("D-Bus Interface", "org.qt.policykit.examples") + TQ_CLASSINFO("D-Bus Interface", "org.tqt.policykit.examples") public: PkExampleHelper(int &argc, char **argv); ~PkExampleHelper(); diff --git a/examples/agent/CMakeLists.txt b/examples/agent/CMakeLists.txt index ba708cb46..17dc16272 100644 --- a/examples/agent/CMakeLists.txt +++ b/examples/agent/CMakeLists.txt @@ -17,8 +17,8 @@ add_executable(polkit-agent-example ) target_link_libraries(polkit-agent-example - ${QT_QTCORE_LIBRARY} - ${QT_QTGUI_LIBRARY} - polkit-qt-agent-1 - polkit-qt-core-1 + ${TQT_TQTCORE_LIBRARY} + ${TQT_TQTGUI_LIBRARY} + polkit-tqt-agent-1 + polkit-tqt-core-1 ) diff --git a/examples/agent/klistener.cpp b/examples/agent/klistener.cpp index 147b95a67..e78b3d081 100644 --- a/examples/agent/klistener.cpp +++ b/examples/agent/klistener.cpp @@ -1,5 +1,5 @@ /* - * This file is part of the Polkit-qt project + * This file is part of the Polkit-tqt project * Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com> * * This library is free software; you can redistribute it and/or @@ -22,7 +22,7 @@ #include <TQInputDialog> #include "klistener.h" -#include "agent/polkitqt1-agent-session.h" +#include "agent/polkittqt1-agent-session.h" using namespace PolkitTQt1::Agent; @@ -47,7 +47,7 @@ void KListener::initiateAuthentication(const TQString &actionId, tqDebug() << details.keys(); tqDebug() << "cookie" << cookie; - Q_FOREACH (const PolkitTQt1::Identity &identity, identities) { + TQ_FOREACH (const PolkitTQt1::Identity &identity, identities) { tqDebug() << identity.toString(); Session *session; session = new Session(identity, cookie, result); diff --git a/examples/agent/klistener.h b/examples/agent/klistener.h index d0e45c6ba..67c3722cc 100644 --- a/examples/agent/klistener.h +++ b/examples/agent/klistener.h @@ -18,16 +18,16 @@ * Boston, MA 02110-1301, USA. */ -#ifndef POLKIT_QT_AGENT_KDE_LISTENER_H -#define POLKIT_QT_AGENT_KDE_LISTENER_H +#ifndef POLKIT_TQT_AGENT_KDE_LISTENER_H +#define POLKIT_TQT_AGENT_KDE_LISTENER_H #include <TQtCore/TQObject> #include <TQtCore/TQString> -#include "agent/polkitqt1-agent-listener.h" -#include "core/polkitqt1-identity.h" -#include "core/polkitqt1-details.h" -#include "agent/polkitqt1-agent-session.h" +#include "agent/polkittqt1-agent-listener.h" +#include "core/polkittqt1-identity.h" +#include "core/polkittqt1-details.h" +#include "agent/polkittqt1-agent-session.h" class KListener : public PolkitTQt1::Agent::Listener { diff --git a/examples/agent/pkagentexample.cpp b/examples/agent/pkagentexample.cpp index 858376c22..8537aa832 100644 --- a/examples/agent/pkagentexample.cpp +++ b/examples/agent/pkagentexample.cpp @@ -4,7 +4,7 @@ #include "pkagentexample.h" #include <glib-object.h> #include <TQtCore/TQDebug> -#include "polkitqt1-subject.h" +#include "polkittqt1-subject.h" PkAgentExample::PkAgentExample(int &argc, char **argv) : TQCoreApplication(argc, argv) diff --git a/examples/org.qt.policykit.examples.conf b/examples/org.tqt.policykit.examples.conf index 304d269f6..a655a7a75 100644 --- a/examples/org.qt.policykit.examples.conf +++ b/examples/org.tqt.policykit.examples.conf @@ -8,12 +8,12 @@ <!-- Only user root can own the PackageKit service --> <policy user="root"> - <allow own="org.qt.policykit.examples"/> + <allow own="org.tqt.policykit.examples"/> </policy> <!-- Allow anyone to call into the service - we'll reject callers using PolicyKit --> <policy context="default"> - <allow send_destination="org.qt.policykit.examples"/> + <allow send_destination="org.tqt.policykit.examples"/> </policy> </busconfig> diff --git a/examples/org.qt.policykit.examples.policy b/examples/org.tqt.policykit.examples.policy index e42430c84..070feedd3 100644 --- a/examples/org.qt.policykit.examples.policy +++ b/examples/org.tqt.policykit.examples.policy @@ -6,76 +6,76 @@ <vendor>KDE</vendor> <vendor_url>http://www.kde.org</vendor_url> - <action id="org.qt.policykit.examples.kick"> + <action id="org.tqt.policykit.examples.kick"> <description>Kick</description> - <message>Prevents PolicyKit-Qt example from kicking</message> + <message>Prevents PolicyKit-TQt example from kicking</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>no</allow_active> </defaults> </action> - <action id="org.qt.policykit.examples.cry"> + <action id="org.tqt.policykit.examples.cry"> <description>Cry</description> - <message>Prevents PolicyKit-Qt example from crying</message> + <message>Prevents PolicyKit-TQt example from crying</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>yes</allow_active> </defaults> </action> - <action id="org.qt.policykit.examples.bleed"> + <action id="org.tqt.policykit.examples.bleed"> <description>Bleed</description> - <message>Prevents PolicyKit-Qt example from bleeding</message> + <message>Prevents PolicyKit-TQt example from bleeding</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>auth_self</allow_active> </defaults> </action> - <action id="org.qt.policykit.examples.play"> + <action id="org.tqt.policykit.examples.play"> <description>Play</description> - <message>Prevents PolicyKit-Qt example from playing</message> + <message>Prevents PolicyKit-TQt example from playing</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>auth_admin</allow_active> </defaults> </action> - <action id="org.qt.policykit.examples.listen"> + <action id="org.tqt.policykit.examples.listen"> <description>Listen</description> - <message>Prevents PolicyKit-Qt example from listening</message> + <message>Prevents PolicyKit-TQt example from listening</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>auth_self_keep</allow_active> </defaults> </action> - <action id="org.qt.policykit.examples.delete"> + <action id="org.tqt.policykit.examples.delete"> <description>Delete</description> - <message>Prevents PolicyKit-Qt example from deleting</message> + <message>Prevents PolicyKit-TQt example from deleting</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>auth_admin_keep</allow_active> </defaults> </action> - <action id="org.qt.policykit.examples.set"> + <action id="org.tqt.policykit.examples.set"> <description>Push</description> - <message>Prevents PolicyKit-Qt example from setting permissions for the shout action</message> + <message>Prevents PolicyKit-TQt example from setting permissions for the shout action</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>auth_admin_keep</allow_active> </defaults> </action> - <action id="org.qt.policykit.examples.shout"> + <action id="org.tqt.policykit.examples.shout"> <description>Shout</description> - <message>Prevents PolicyKit-Qt example from shouting</message> + <message>Prevents PolicyKit-TQt example from shouting</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>yes</allow_active> </defaults> - <annotate key="org.qt.policykit.examples.shout">foo</annotate> + <annotate key="org.tqt.policykit.examples.shout">foo</annotate> </action> </policyconfig> diff --git a/examples/org.qt.policykit.examples.policy.in b/examples/org.tqt.policykit.examples.policy.in index ddab0a9f2..fd0006a8c 100644 --- a/examples/org.qt.policykit.examples.policy.in +++ b/examples/org.tqt.policykit.examples.policy.in @@ -5,81 +5,81 @@ <policyconfig> <vendor>KDE</vendor> <vendor_url>http://www.kde.org</vendor_url> - <action id="org.qt.policykit.examples.kick"> + <action id="org.tqt.policykit.examples.kick"> <description>Kick</description> - <message>Prevents PolicyKit-Qt example from kicking</message> + <message>Prevents PolicyKit-TQt example from kicking</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>no</allow_active> </defaults> </action> - <action id="org.qt.policykit.examples.cry"> + <action id="org.tqt.policykit.examples.cry"> <description>Cry</description> - <message>Prevents PolicyKit-Qt example from crying</message> + <message>Prevents PolicyKit-TQt example from crying</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>yes</allow_active> </defaults> </action> - <action id="org.qt.policykit.examples.play"> + <action id="org.tqt.policykit.examples.play"> <description>Play</description> - <message>Prevents PolicyKit-Qt example from playing</message> + <message>Prevents PolicyKit-TQt example from playing</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>auth_self</allow_active> </defaults> </action> - <action id="org.qt.policykit.examples.bleed"> + <action id="org.tqt.policykit.examples.bleed"> <description>Bleed</description> - <message>Prevents PolicyKit-Qt example from bleeding</message> + <message>Prevents PolicyKit-TQt example from bleeding</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>auth_admin</allow_active> </defaults> </action> - <action id="org.qt.policykit.examples.listen"> + <action id="org.tqt.policykit.examples.listen"> <description>Listen</description> - <message>Prevents PolicyKit-Qt example from listening</message> + <message>Prevents PolicyKit-TQt example from listening</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>auth_self_keep</allow_active> </defaults> </action> - <action id="org.qt.policykit.examples.delete"> + <action id="org.tqt.policykit.examples.delete"> <description>Delete</description> - <message>Prevents PolicyKit-Qt example from deleting</message> + <message>Prevents PolicyKit-TQt example from deleting</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>auth_admin_keep</allow_active> </defaults> </action> <!-- - <action id="org.qt.policykit.examples.shout"> + <action id="org.tqt.policykit.examples.shout"> <description>Shout</description> - <message>Prevents PolicyKit-Qt example from shouting</message> + <message>Prevents PolicyKit-TQt example from shouting</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>yes</allow_active> </defaults> - <annotate key="org.qt.policykit.examples.shout">foo</annotate> + <annotate key="org.tqt.policykit.examples.shout">foo</annotate> </action> - <action id="org.qt.policykit.examples.push"> + <action id="org.tqt.policykit.examples.push"> <description>Push</description> - <message>Prevents PolicyKit-Qt example from pushing</message> + <message>Prevents PolicyKit-TQt example from pushing</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>yes</allow_active> </defaults> - <annotate key="org.qt.policykit.examples.push">bar</annotate> + <annotate key="org.tqt.policykit.examples.push">bar</annotate> </action> - <action id="org.qt.policykit.examples.blow-up"> + <action id="org.tqt.policykit.examples.blow-up"> <description>Blow Up</description> - <message>Prevents PolicyKit-Qt example from blowing up</message> + <message>Prevents PolicyKit-TQt example from blowing up</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>yes</allow_active> </defaults> - <annotate key="org.qt.policykit.examples.blow-up">booo</annotate> + <annotate key="org.tqt.policykit.examples.blow-up">booo</annotate> </action> --> </policyconfig> diff --git a/examples/org.qt.policykit.examples.service.in b/examples/org.tqt.policykit.examples.service.in index ae5edffd8..0f57d7592 100644 --- a/examples/org.qt.policykit.examples.service.in +++ b/examples/org.tqt.policykit.examples.service.in @@ -1,5 +1,5 @@ [D-BUS Service] -Name=org.qt.policykit.examples +Name=org.tqt.policykit.examples Exec=@BIN_INSTALL_DIR@/polkit-example-helper User=root diff --git a/examples/org.qt.policykit.examples.xml b/examples/org.tqt.policykit.examples.xml index e97c67e45..edf62de4b 100644 --- a/examples/org.qt.policykit.examples.xml +++ b/examples/org.tqt.policykit.examples.xml @@ -1,6 +1,6 @@ <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> <node> - <interface name="org.qt.policykit.examples"> + <interface name="org.tqt.policykit.examples"> <method name="set" > <!-- IN: system user --> <arg direction="in" type="s" name="user" /> |