summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-10-31 00:13:21 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-10-31 00:14:22 +0900
commite8933e99b4600d91e9eab7d1ad3a2d35813028a9 (patch)
treeb2899fd1ef651a1bff56918ace94625a4bc14aa0
parente8494e60efeb94c67c813d1c1c038031915e8c17 (diff)
downloadpolkit-tqt-e8933e99b4600d91e9eab7d1ad3a2d35813028a9.tar.gz
polkit-tqt-e8933e99b4600d91e9eab7d1ad3a2d35813028a9.zip
More Qt->TQt conversion and some clean up.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--AUTHORS5
-rw-r--r--CMakeLists.txt104
-rw-r--r--INSTALL6
-rw-r--r--Mainpage.dox52
-rw-r--r--PolkitQt-1Config.cmake.in41
-rw-r--r--Polkittqt-1Config.cmake.in41
-rw-r--r--README12
-rw-r--r--README.porting25
-rw-r--r--TODO11
-rw-r--r--agent/CMakeLists.txt24
-rw-r--r--agent/listeneradapter.cpp14
-rw-r--r--agent/listeneradapter_p.h12
-rw-r--r--agent/polkitqt1-agent-listener.cpp28
-rw-r--r--agent/polkitqt1-agent-listener.h16
-rw-r--r--agent/polkitqt1-agent-session.cpp16
-rw-r--r--agent/polkitqt1-agent-session.h16
-rw-r--r--agent/polkitqtlistener.cpp48
-rw-r--r--agent/polkitqtlistener_p.h26
-rw-r--r--cmake/modules/CMakeLists.txt2
-rw-r--r--cmake/modules/FindPolkitQt-1.cmake32
-rw-r--r--cmake/modules/PolkitQt-1Dist.cmake12
-rw-r--r--core/CMakeLists.txt32
-rw-r--r--core/polkittqt1-actiondescription.cpp (renamed from core/polkitqt1-actiondescription.cpp)4
-rw-r--r--core/polkittqt1-actiondescription.h (renamed from core/polkitqt1-actiondescription.h)16
-rw-r--r--core/polkittqt1-authority.cpp (renamed from core/polkitqt1-authority.cpp)34
-rw-r--r--core/polkittqt1-authority.h (renamed from core/polkitqt1-authority.h)28
-rw-r--r--core/polkittqt1-details.cpp (renamed from core/polkitqt1-details.cpp)4
-rw-r--r--core/polkittqt1-details.h (renamed from core/polkitqt1-details.h)12
-rw-r--r--core/polkittqt1-identity.cpp (renamed from core/polkitqt1-identity.cpp)4
-rw-r--r--core/polkittqt1-identity.h (renamed from core/polkitqt1-identity.h)22
-rw-r--r--core/polkittqt1-subject.cpp (renamed from core/polkitqt1-subject.cpp)16
-rw-r--r--core/polkittqt1-subject.h (renamed from core/polkitqt1-subject.h)36
-rw-r--r--core/polkittqt1-temporaryauthorization.cpp (renamed from core/polkitqt1-temporaryauthorization.cpp)6
-rw-r--r--core/polkittqt1-temporaryauthorization.h (renamed from core/polkitqt1-temporaryauthorization.h)12
-rw-r--r--debian/changelog18
-rw-r--r--debian/control22
-rw-r--r--debian/copyright4
-rw-r--r--debian/libpolkit-qt-1-1.install3
-rw-r--r--debian/libpolkit-qt-1-1.lintian-overrides1
-rw-r--r--debian/libpolkit-qt-1-1.symbols305
-rw-r--r--debian/libpolkit-qt-1-dev.install33
-rw-r--r--debian/libpolkit-tqt-1-1.install3
-rw-r--r--debian/libpolkit-tqt-1-1.lintian-overrides1
-rw-r--r--debian/libpolkit-tqt-1-dev.install33
-rw-r--r--examples/PkExampleHelper.cpp10
-rw-r--r--examples/PkExampleHelper.h2
-rw-r--r--examples/agent/CMakeLists.txt8
-rw-r--r--examples/agent/klistener.cpp6
-rw-r--r--examples/agent/klistener.h12
-rw-r--r--examples/agent/pkagentexample.cpp2
-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
-rw-r--r--gui/CMakeLists.txt28
-rw-r--r--gui/polkittqt1-gui-action.cpp (renamed from gui/polkitqt1-gui-action.cpp)22
-rw-r--r--gui/polkittqt1-gui-action.h (renamed from gui/polkitqt1-gui-action.h)20
-rw-r--r--gui/polkittqt1-gui-actionbutton.cpp (renamed from gui/polkitqt1-gui-actionbutton.cpp)32
-rw-r--r--gui/polkittqt1-gui-actionbutton.h (renamed from gui/polkitqt1-gui-actionbutton.h)16
-rw-r--r--gui/polkittqt1-gui-actionbutton_p.h (renamed from gui/polkitqt1-gui-actionbutton_p.h)10
-rw-r--r--gui/polkittqt1-gui-actionbuttons.cpp (renamed from gui/polkitqt1-gui-actionbuttons.cpp)16
-rw-r--r--gui/polkittqt1-gui-actionbuttons.h (renamed from gui/polkitqt1-gui-actionbuttons.h)12
-rw-r--r--gui/polkittqt1-gui-actionbuttons_p.h (renamed from gui/polkitqt1-gui-actionbuttons_p.h)8
-rw-r--r--includes/PolkitQt1/ActionDescription1
-rw-r--r--includes/PolkitQt1/Agent/Listener1
-rw-r--r--includes/PolkitQt1/Agent/Session1
-rw-r--r--includes/PolkitQt1/Authority1
-rw-r--r--includes/PolkitQt1/Details1
-rw-r--r--includes/PolkitQt1/Gui/Action1
-rw-r--r--includes/PolkitQt1/Gui/ActionButton1
-rw-r--r--includes/PolkitQt1/Gui/ActionButtons1
-rw-r--r--includes/PolkitQt1/Identity1
-rw-r--r--includes/PolkitQt1/Subject1
-rw-r--r--includes/PolkitQt1/TemporaryAuthorization1
-rw-r--r--includes/PolkitTQt1/ActionDescription1
-rw-r--r--includes/PolkitTQt1/Agent/Listener1
-rw-r--r--includes/PolkitTQt1/Agent/Session1
-rw-r--r--includes/PolkitTQt1/Authority1
-rw-r--r--includes/PolkitTQt1/Details1
-rw-r--r--includes/PolkitTQt1/Gui/Action1
-rw-r--r--includes/PolkitTQt1/Gui/ActionButton1
-rw-r--r--includes/PolkitTQt1/Gui/ActionButtons1
-rw-r--r--includes/PolkitTQt1/Identity1
-rw-r--r--includes/PolkitTQt1/Subject1
-rw-r--r--includes/PolkitTQt1/TemporaryAuthorization1
-rw-r--r--polkit-tqt-1.pc.cmake (renamed from polkit-qt-1.pc.cmake)8
-rw-r--r--polkit-tqt-agent-1.pc.cmake (renamed from polkit-qt-agent-1.pc.cmake)6
-rw-r--r--polkit-tqt-core-1.pc.cmake (renamed from polkit-qt-core-1.pc.cmake)6
-rw-r--r--polkit-tqt-gui-1.pc.cmake (renamed from polkit-qt-gui-1.pc.cmake)8
-rw-r--r--polkittqt1-export.h (renamed from polkitqt1-export.h)18
-rw-r--r--polkittqt1-version.h.cmake (renamed from polkitqt1-version.h.cmake)36
-rw-r--r--test/CMakeLists.txt14
-rw-r--r--test/test.cpp38
94 files changed, 644 insertions, 992 deletions
diff --git a/AUTHORS b/AUTHORS
index 172f2ad39..69d666898 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,3 +1,6 @@
+Ported to TQt3 by Michele Calgaro <michele.calgaro@yahoo.it>
+
+Polkit-Qt original authors and contributors:
Main Authors:
- Daniel Nicoletti <dantti85-dev@yahoo.com.br>
- Dario Freddi <drf@kde.org>
@@ -6,4 +9,4 @@ Main Authors:
Contributors:
- Pino Toscano <pino@kde.org>
- Lukas Tinkl <ltinkl@redhat.com>
-- Radek Novacek <rnovacek@redhat.com> \ No newline at end of file
+- Radek Novacek <rnovacek@redhat.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cc67452f2..756f1679a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,11 +1,11 @@
-## Polkit Qt Library
-project("PolkitQt-1")
+## Polkit TQt Library
+project("PolkitTQt-1")
cmake_minimum_required(VERSION 2.6.0)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH})
-set(QT_MIN_VERSION "4.4.0")
+set(TQT_MIN_VERSION "4.4.0")
find_package(Qt4 REQUIRED)
find_package(Automoc4 REQUIRED)
@@ -13,9 +13,9 @@ find_package(Polkit REQUIRED)
find_package(GObject REQUIRED)
find_package(GIO REQUIRED)
-add_definitions(-DQT_NO_KEYWORDS)
+add_definitions(-DTQT_NO_KEYWORDS)
-include (${QT_USE_FILE})
+include (${TQT_USE_FILE})
include (InstallSettings)
include (MacroWriteBasicCMakeVersionFile)
include (CheckFunctionExists)
@@ -30,7 +30,7 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/core
${CMAKE_CURRENT_SOURCE_DIR}/includes
- ${QT_QTXML_INCLUDE_DIR}
+ ${TQT_TQTXML_INCLUDE_DIR}
)
# Check for older polkit
@@ -40,70 +40,70 @@ check_function_exists(polkit_agent_listener_register HAVE_POLKIT_AGENT_LISTENER_
check_function_exists(polkit_authority_get_sync HAVE_POLKIT_AUTHORITY_GET_SYNC)
if (NOT HAVE_POLKIT_AGENT_LISTENER_REGISTER OR NOT HAVE_POLKIT_AUTHORITY_GET_SYNC)
- message(STATUS "You have an older polkit-1 version: Polkit-Qt-1 will be built in compatibility mode")
- add_definitions(-DPOLKIT_QT_1_COMPATIBILITY_MODE)
+ message(STATUS "You have an older polkit-1 version: Polkit-TQt-1 will be built in compatibility mode")
+ add_definitions(-DPOLKIT_TQT_1_COMPATIBILITY_MODE)
endif (NOT HAVE_POLKIT_AGENT_LISTENER_REGISTER OR NOT HAVE_POLKIT_AUTHORITY_GET_SYNC)
if(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.6.2)
option(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR "Prefer to install the <package>Config.cmake files to lib/cmake/<package> instead of lib/<package>/cmake" TRUE)
endif(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} VERSION_GREATER 2.6.2)
-set(POLKITQT-1_VERSION_MAJOR 0 CACHE INT "PolkitQt-1's major version number" FORCE)
-set(POLKITQT-1_VERSION_MINOR 103 CACHE INT "PolkitQt-1's minor version number" FORCE)
-set(POLKITQT-1_VERSION_PATCH 0 CACHE INT "PolkitQt-1's release version number" FORCE)
-set(POLKITQT-1_VERSION_STRING
- "${POLKITQT-1_VERSION_MAJOR}.${POLKITQT-1_VERSION_MINOR}.${POLKITQT-1_VERSION_PATCH}")
+set(POLKITTQT-1_VERSION_MAJOR 0 CACHE INT "PolkitTQt-1's major version number" FORCE)
+set(POLKITTQT-1_VERSION_MINOR 103 CACHE INT "PolkitTQt-1's minor version number" FORCE)
+set(POLKITTQT-1_VERSION_PATCH 0 CACHE INT "PolkitTQt-1's release version number" FORCE)
+set(POLKITTQT-1_VERSION_STRING
+ "${POLKITTQT-1_VERSION_MAJOR}.${POLKITTQT-1_VERSION_MINOR}.${POLKITTQT-1_VERSION_PATCH}")
# The SONUMBER of the polkit-qt-1 libraries
-set(POLKITQT-1_ABI_VERSION 1)
+set(POLKITTQT-1_ABI_VERSION 1)
# The version number of the polkit-qt-1 libraries
-set(POLKITQT-1_LIBRARY_VERSION "${POLKITQT-1_ABI_VERSION}.${POLKITQT-1_VERSION_MINOR}.${POLKITQT-1_VERSION_PATCH}")
+set(POLKITTQT-1_LIBRARY_VERSION "${POLKITTQT-1_ABI_VERSION}.${POLKITTQT-1_VERSION_MINOR}.${POLKITTQT-1_VERSION_PATCH}")
-configure_file(polkitqt1-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/polkitqt1-version.h)
+configure_file(polkittqt1-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/polkittqt1-version.h)
install(FILES
- gui/polkitqt1-gui-action.h
- gui/polkitqt1-gui-actionbutton.h
- gui/polkitqt1-gui-actionbuttons.h
+ gui/polkittqt1-gui-action.h
+ gui/polkittqt1-gui-actionbutton.h
+ gui/polkittqt1-gui-actionbuttons.h
- core/polkitqt1-authority.h
- core/polkitqt1-details.h
- core/polkitqt1-identity.h
- core/polkitqt1-subject.h
- core/polkitqt1-temporaryauthorization.h
- core/polkitqt1-actiondescription.h
+ core/polkittqt1-authority.h
+ core/polkittqt1-details.h
+ core/polkittqt1-identity.h
+ core/polkittqt1-subject.h
+ core/polkittqt1-temporaryauthorization.h
+ core/polkittqt1-actiondescription.h
- agent/polkitqt1-agent-listener.h
- agent/polkitqt1-agent-session.h
+ agent/polkittqt1-agent-listener.h
+ agent/polkittqt1-agent-session.h
- ${CMAKE_CURRENT_BINARY_DIR}/polkitqt1-version.h
- polkitqt1-export.h
+ ${CMAKE_CURRENT_BINARY_DIR}/polkittqt1-version.h
+ polkittqt1-export.h
DESTINATION
${INCLUDE_INSTALL_DIR}/polkit-qt-1 COMPONENT Devel)
install(FILES
- includes/PolkitQt1/Authority
- includes/PolkitQt1/Details
- includes/PolkitQt1/Identity
- includes/PolkitQt1/Subject
- includes/PolkitQt1/TemporaryAuthorization
- includes/PolkitQt1/ActionDescription
+ includes/PolkitTQt1/Authority
+ includes/PolkitTQt1/Details
+ includes/PolkitTQt1/Identity
+ includes/PolkitTQt1/Subject
+ includes/PolkitTQt1/TemporaryAuthorization
+ includes/PolkitTQt1/ActionDescription
DESTINATION
- ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitQt1 COMPONENT Devel)
+ ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitTQt1 COMPONENT Devel)
install(FILES
- includes/PolkitQt1/Gui/Action
- includes/PolkitQt1/Gui/ActionButton
- includes/PolkitQt1/Gui/ActionButtons
+ includes/PolkitTQt1/Gui/Action
+ includes/PolkitTQt1/Gui/ActionButton
+ includes/PolkitTQt1/Gui/ActionButtons
DESTINATION
- ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitQt1/Gui COMPONENT Devel)
+ ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitTQt1/Gui COMPONENT Devel)
install(FILES
- includes/PolkitQt1/Agent/Listener
- includes/PolkitQt1/Agent/Session
+ includes/PolkitTQt1/Agent/Listener
+ includes/PolkitTQt1/Agent/Session
DESTINATION
- ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitQt1/Agent COMPONENT Devel)
+ ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitTQt1/Agent COMPONENT Devel)
if(NOT WIN32)
# Pkgconfig
@@ -120,21 +120,21 @@ if(NOT WIN32)
endif(NOT WIN32)
# CMake Config files
-configure_file(PolkitQt-1Config.cmake.in "${CMAKE_BINARY_DIR}/PolkitQt-1Config.cmake" @ONLY)
+configure_file(PolkitTQt-1Config.cmake.in "${CMAKE_BINARY_DIR}/PolkitTQt-1Config.cmake" @ONLY)
# this file is used by to check if the installed version can be used.
-macro_write_basic_cmake_version_file(${CMAKE_BINARY_DIR}/PolkitQt-1ConfigVersion.cmake
- ${POLKITQT-1_VERSION_MAJOR} ${POLKITQT-1_VERSION_MINOR} ${POLKITQT-1_VERSION_PATCH})
+macro_write_basic_cmake_version_file(${CMAKE_BINARY_DIR}/PolkitTQt-1ConfigVersion.cmake
+ ${POLKITTQT-1_VERSION_MAJOR} ${POLKITTQT-1_VERSION_MINOR} ${POLKITTQT-1_VERSION_PATCH})
if(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR)
- set(_PolkitQt-1Config_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/PolkitQt-1)
+ set(_PolkitTQt-1Config_INSTALL_DIR ${LIB_INSTALL_DIR}/cmake/PolkitTQt-1)
else(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR)
- set(_PolkitQt-1Config_INSTALL_DIR ${LIB_INSTALL_DIR}/PolkitQt-1/cmake)
+ set(_PolkitTQt-1Config_INSTALL_DIR ${LIB_INSTALL_DIR}/PolkitTQt-1/cmake)
endif(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR)
-install(FILES ${CMAKE_BINARY_DIR}/PolkitQt-1ConfigVersion.cmake
- ${CMAKE_BINARY_DIR}/PolkitQt-1Config.cmake
- DESTINATION ${_PolkitQt-1Config_INSTALL_DIR} )
+install(FILES ${CMAKE_BINARY_DIR}/PolkitTQt-1ConfigVersion.cmake
+ ${CMAKE_BINARY_DIR}/PolkitTQt-1Config.cmake
+ DESTINATION ${_PolkitTQt-1Config_INSTALL_DIR} )
option(BUILD_EXAMPLES "Builds a set of examples for polkit-qt-1" OFF)
if (BUILD_EXAMPLES)
@@ -153,4 +153,4 @@ add_subdirectory(gui)
add_subdirectory(agent)
# Always last!
-include (PolkitQt-1Dist)
+include (PolkitTQt-1Dist)
diff --git a/INSTALL b/INSTALL
index dc5890022..3146eb72d 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,6 +1,6 @@
-Polkit-qt's build system uses cmake.
+Polkit-tqt's build system uses cmake.
-So to compile Polkit-qt first create a build dir
+So to compile Polkit-tqt first create a build dir
mkdir build
cd build
@@ -15,7 +15,7 @@ cmake then presents a configuration summary. At this point you may
want to install missing dependancies (if you do, remove the CMakeCache.txt)
and run cmake again.
-Finally build Polkit-qt:
+Finally build Polkit-tqt:
make
diff --git a/Mainpage.dox b/Mainpage.dox
index 90b34e08b..1fceaafdd 100644
--- a/Mainpage.dox
+++ b/Mainpage.dox
@@ -1,67 +1,59 @@
/**
-\mainpage Polkit-qt-1 - Qt wrapper around polkit-1
+\mainpage Polkit-tqt-1 - TQt wrapper around polkit-1
-\section polkitqt1_overview Overview
+\section polkittqt1_overview Overview
-\note Please note that if you're developing an application on the KDE Development
- Platform and not just with Qt, you might want to use KAuth (kdelibs/core/auth)
-
-polkit-qt-1 aims to make it easy for Qt developers to take advantage of
+polkit-tqt-1 aims to make it easy for TQt developers to take advantage of
polkit API. It is a convenience wrapper around QAction and QAbstractButton
that lets you integrate those two components easily with polkit.
-polkit-qt-1 is not a direct replacement of polkit-qt: it is based on polkit-1, which is not
-backwards compatible in any way with Policykit <= 0.9, which was the backend of polkit-qt.
-You are encouraged to port polkit-qt applications to polkit-qt or KAuth, if based on the KDE
-Development Platform, since PolicyKit <= 0.9 is no longer maintained.
-
-polkit-qt-1 is split in three libraries: polkit-qt-core-1, polkit-qt-gui-1 and polkit-qt-agent-1
+polkit-tqt-1 is split in three libraries: polkit-tqt-core-1, polkit-tqt-gui-1 and polkit-tqt-agent-1
-\b polkit-qt-core-1 lets you control actions and authentication without a GUI, with some very
+\b polkit-tqt-core-1 lets you control actions and authentication without a GUI, with some very
simple functions. It also lets you retrieve and control useful informations on the polkit
authority. You will be mostly interested in the \c Authority class.
-\b polkit-qt-gui-1 lets you easily associate GUI items with polkit actions. Through some simple
+\b polkit-tqt-gui-1 lets you easily associate GUI items with polkit actions. Through some simple
wrapper classes you are able to associate QAction and QAbstractButton to a polkit action,
and get their properties changed accordingly to polkit's result. It includes the classes
Action, ActionButton and ActionButtons
-\b polkit-qt-agent-1 lets you write your own polkit authentication agents in a very simple way.
+\b polkit-tqt-agent-1 lets you write your own polkit authentication agents in a very simple way.
-\li A sample usage of polkit-qt-1 can be found in \ref polkitqt1_example
+\li A sample usage of polkit-tqt-1 can be found in \ref polkittqt1_example
\li <a href="classes.html">Alphabetical Class List</a>
\li <a href="hierarchy.html">Class Hierarchy</a>
-\page polkitqt1_example Polkit-qt-1 usage example
+\page polkittqt1_example Polkit-tqt-1 usage example
-You can find an example usage of Polkit-qt-1 in the examples/ dir. You can
+You can find an example usage of Polkit-tqt-1 in the examples/ dir. You can
build it by passing \c -DBUILD_EXAMPLES=TRUE to your cmake line. The structure
consists of a .ui file and a main class, to demonstrate how easy it is to integrate
polkit support in an existing application. Let's see some details about it:
\code
-bt = new ActionButton(kickPB, "org.qt.policykit.examples.kick", this);
+bt = new ActionButton(kickPB, "org.tqt.policykit.examples.kick", this);
bt->setText("Kick... (long)");
// here we set the behavior of PolKitResul = No
bt->setVisible(true, Action::No);
bt->setEnabled(true, Action::No);
bt->setText("Kick (long)", Action::No);
-bt->setIcon(QPixmap(":/Icons/custom-no.png"), Action::No);
+bt->setIcon(TQPixmap(":/Icons/custom-no.png"), Action::No);
bt->setToolTip("If your admin wasn't annoying, you could do this", Action::No);
// here we set the behavior of PolKitResul = Auth
bt->setVisible(true, Action::Auth);
bt->setEnabled(true, Action::Auth);
bt->setText("Kick... (long)", Action::Auth);
-bt->setIcon(QPixmap(":/Icons/action-locked-default.png"), Action::Auth);
+bt->setIcon(TQPixmap(":/Icons/action-locked-default.png"), Action::Auth);
bt->setToolTip("Only card carrying tweakers can do this!", Action::Auth);
// here we set the behavior of PolKitResul = Yes
bt->setVisible(true, Action::Yes);
bt->setEnabled(true, Action::Yes);
bt->setText("Kick! (long)", Action::Yes);
-bt->setIcon(QPixmap(":/Icons/custom-yes.png"), Action::Yes);
+bt->setIcon(TQPixmap(":/Icons/custom-yes.png"), Action::Yes);
bt->setToolTip("Go ahead, kick kick kick!", Action::Yes);
\endcode
@@ -70,10 +62,10 @@ UI file, \c kickPB . As you can see, you can set custom properties on your butto
on the action status/result. The code is mostly self-explainatory
\code
-bt = new ActionButtons(QList<QAbstractButton*>() << listenPB << listenCB,
- "org.qt.policykit.examples.listen", this);
-bt->setIcon(QPixmap(":/Icons/action-locked.png"));
-bt->setIcon(QPixmap(":/Icons/action-unlocked.png"), Action::Yes);
+bt = new ActionButtons(TQList<TQAbstractButton*>() << listenPB << listenCB,
+ "org.tqt.policykit.examples.listen", this);
+bt->setIcon(TQPixmap(":/Icons/action-locked.png"));
+bt->setIcon(TQPixmap(":/Icons/action-unlocked.png"), Action::Yes);
bt->setText("Click to make changes...");
\endcode
@@ -83,7 +75,7 @@ are kept in sync with the action.
\code
connect(bt, SIGNAL(triggered(bool)), this, SLOT(activateAction()));
-connect(bt, SIGNAL(clicked(QAbstractButton*,bool)), bt, SLOT(activate()));
+connect(bt, SIGNAL(clicked(TQAbstractButton*,bool)), bt, SLOT(activate()));
connect(bt, SIGNAL(authorized()), this, SLOT(actionActivated()));
\endcode
@@ -93,14 +85,12 @@ with even more ease, just by manually connecting the signal to ActionButton::act
to understand why this connection doesn't happen automatically), and Action::authorized() signal notifies
you when polkit has authorized you to perform the action.
-As you can see, usage of polkit-qt-1 is extremely simple. Have a look at the complete example
+As you can see, usage of polkit-tqt-1 is extremely simple. Have a look at the complete example
and to the API Docs for more details.
*/
// DOXYGEN_PROJECTVERSION=0.96.1
-// DOXYGEN_PROJECTNAME=PolkitQt-1
+// DOXYGEN_PROJECTNAME=polkittqt-1
// DOXYGEN_ENABLE=YES
-
-// vim:ts=4:sw=4:expandtab:filetype=doxygen
diff --git a/PolkitQt-1Config.cmake.in b/PolkitQt-1Config.cmake.in
deleted file mode 100644
index f24e35f4b..000000000
--- a/PolkitQt-1Config.cmake.in
+++ /dev/null
@@ -1,41 +0,0 @@
-# PolkitTQt-1Config.cmake is generated by CMake from PolkitTQt-1Config.cmake.in.
-# Any changed value in this file will be overwritten by CMake.
-
-# set the PolkitTQt-1 version number
-set(POLKITQT-1_VERSION_MAJOR @POLKITQT-1_VERSION_MAJOR@)
-set(POLKITQT-1_VERSION_MINOR @POLKITQT-1_VERSION_MINOR@)
-set(POLKITQT-1_VERSION_PATCH @POLKITQT-1_VERSION_PATCH@)
-set(POLKITQT-1_VERSION @POLKITQT-1_VERSION_STRING@)
-set(POLKITQT-1_VERSION_STRING "@POLKITQT-1_VERSION_STRING@")
-
-# set the directories
-if(NOT POLKITQT-1_INSTALL_DIR)
- set(POLKITQT-1_INSTALL_DIR "@CMAKE_INSTALL_PREFIX@")
-endif(NOT POLKITQT-1_INSTALL_DIR)
-
-set(POLKITQT-1_INCLUDE_DIR "@INCLUDE_INSTALL_DIR@/polkit-qt-1")
-set(POLKITQT-1_LIB_DIR "@LIB_INSTALL_DIR@")
-set(POLKITQT-1_POLICY_FILES_INSTALL_DIR "${POLKITQT-1_INSTALL_DIR}/share/polkit-1/actions")
-
-# Compatibility
-if(WIN32)
-if(MINGW)
- set(POLKITQT-1_CORE_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-core-1.dll.a")
- set(POLKITQT-1_AGENT_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-agent-1.dll.a")
- set(POLKITQT-1_GUI_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-gui-1.dll.a")
-else(MINGW)
- set(POLKITQT-1_CORE_LIBRARY "${POLKITQT-1_LIB_DIR}/polkit-qt-core-1.lib")
- set(POLKITQT-1_AGENT_LIBRARY "${POLKITQT-1_LIB_DIR}/polkit-qt-agent-1.lib")
- set(POLKITQT-1_GUI_LIBRARY "${POLKITQT-1_LIB_DIR}/polkit-qt-gui-1.lib")
-endif(MINGW)
-elseif(APPLE)
- set(POLKITQT-1_CORE_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-core-1.dylib")
- set(POLKITQT-1_AGENT_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-agent-1.dylib")
- set(POLKITQT-1_GUI_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-gui-1.dylib")
-else()
- set(POLKITQT-1_CORE_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-core-1.so")
- set(POLKITQT-1_AGENT_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-agent-1.so")
- set(POLKITQT-1_GUI_LIBRARY "${POLKITQT-1_LIB_DIR}/libpolkit-qt-gui-1.so")
-endif()
-
-set(POLKITQT-1_LIBRARIES ${POLKITQT-1_GUI_LIBRARY} ${POLKITQT-1_CORE_LIBRARY} ${POLKITQT-1_AGENT_LIBRARY})
diff --git a/Polkittqt-1Config.cmake.in b/Polkittqt-1Config.cmake.in
new file mode 100644
index 000000000..6b033c381
--- /dev/null
+++ b/Polkittqt-1Config.cmake.in
@@ -0,0 +1,41 @@
+# PolkitTQt-1Config.cmake is generated by CMake from PolkitTQt-1Config.cmake.in.
+# Any changed value in this file will be overwritten by CMake.
+
+# set the PolkitTQt-1 version number
+set(POLKITTQT-1_VERSION_MAJOR @POLKITTQT-1_VERSION_MAJOR@)
+set(POLKITTQT-1_VERSION_MINOR @POLKITTQT-1_VERSION_MINOR@)
+set(POLKITTQT-1_VERSION_PATCH @POLKITTQT-1_VERSION_PATCH@)
+set(POLKITTQT-1_VERSION @POLKITTQT-1_VERSION_STRING@)
+set(POLKITTQT-1_VERSION_STRING "@POLKITTQT-1_VERSION_STRING@")
+
+# set the directories
+if(NOT POLKITTQT-1_INSTALL_DIR)
+ set(POLKITTQT-1_INSTALL_DIR "@CMAKE_INSTALL_PREFIX@")
+endif(NOT POLKITTQT-1_INSTALL_DIR)
+
+set(POLKITTQT-1_INCLUDE_DIR "@INCLUDE_INSTALL_DIR@/polkit-tqt-1")
+set(POLKITTQT-1_LIB_DIR "@LIB_INSTALL_DIR@")
+set(POLKITTQT-1_POLICY_FILES_INSTALL_DIR "${POLKITTQT-1_INSTALL_DIR}/share/polkit-1/actions")
+
+# Compatibility
+if(WIN32)
+if(MINGW)
+ set(POLKITTQT-1_CORE_LIBRARY "${POLKITTQT-1_LIB_DIR}/libpolkit-tqt-core-1.dll.a")
+ set(POLKITTQT-1_AGENT_LIBRARY "${POLKITTQT-1_LIB_DIR}/libpolkit-tqt-agent-1.dll.a")
+ set(POLKITTQT-1_GUI_LIBRARY "${POLKITTQT-1_LIB_DIR}/libpolkit-tqt-gui-1.dll.a")
+else(MINGW)
+ set(POLKITTQT-1_CORE_LIBRARY "${POLKITTQT-1_LIB_DIR}/polkit-tqt-core-1.lib")
+ set(POLKITTQT-1_AGENT_LIBRARY "${POLKITTQT-1_LIB_DIR}/polkit-tqt-agent-1.lib")
+ set(POLKITTQT-1_GUI_LIBRARY "${POLKITTQT-1_LIB_DIR}/polkit-tqt-gui-1.lib")
+endif(MINGW)
+elseif(APPLE)
+ set(POLKITTQT-1_CORE_LIBRARY "${POLKITTQT-1_LIB_DIR}/libpolkit-tqt-core-1.dylib")
+ set(POLKITTQT-1_AGENT_LIBRARY "${POLKITTQT-1_LIB_DIR}/libpolkit-tqt-agent-1.dylib")
+ set(POLKITTQT-1_GUI_LIBRARY "${POLKITTQT-1_LIB_DIR}/libpolkit-tqt-gui-1.dylib")
+else()
+ set(POLKITTQT-1_CORE_LIBRARY "${POLKITTQT-1_LIB_DIR}/libpolkit-tqt-core-1.so")
+ set(POLKITTQT-1_AGENT_LIBRARY "${POLKITTQT-1_LIB_DIR}/libpolkit-tqt-agent-1.so")
+ set(POLKITTQT-1_GUI_LIBRARY "${POLKITTQT-1_LIB_DIR}/libpolkit-tqt-gui-1.so")
+endif()
+
+set(POLKITTQT-1_LIBRARIES ${POLKITTQT-1_GUI_LIBRARY} ${POLKITTQT-1_CORE_LIBRARY} ${POLKITTQT-1_AGENT_LIBRARY})
diff --git a/README b/README
index efc31d867..f7c87ad1a 100644
--- a/README
+++ b/README
@@ -1,10 +1,10 @@
-Polkit-qt
-========
+Polkit-tqt
+==========
-What is Polkit-qt?
+What is Polkit-tqt?
------------------
-Polkit-qt is a library that lets developers use the PolicyKit API through a nice
-Qt-styled API. It is mainly a wrapper around QAction and QAbstractButton that
+Polkit-tqt is a library that lets developers use the PolicyKit API through a nice
+TQt-styled API. It is mainly a wrapper around TQAction and TQAbstractButton that
lets you integrate those two component easily with PolicyKit
This directory contains the sources of the library.
@@ -14,7 +14,7 @@ Structure
* cmake/
Contains the cmake checks that are needed to build the library,
- and a FindPolkitQt.cmake module.
+ and a FindPolkitTQt.cmake module.
* .
Contains the sources of the library
diff --git a/README.porting b/README.porting
deleted file mode 100644
index d2074ea97..000000000
--- a/README.porting
+++ /dev/null
@@ -1,25 +0,0 @@
-Policy Kit 1 support for polkit-qt
-==================================
-
-This is initial port to PK1.
-
-What's working?
----------------
-polkit-qt-core
-polkit-qt-gui
-
-TO-DO
------
-* polkit-qt-core
- - temporary authorization handling functions
- - move from Auth namespace to Authority class?
- - tests
-
-Documentation
--------------
-http://fedoraproject.org/wiki/Features/PolicyKitOne
-http://hal.freedesktop.org/docs/polkit/index.html
-
-Porting guide
--------------
-http://cgit.freedesktop.org/PolicyKit/tree/docs/PORTING-GUIDE
diff --git a/TODO b/TODO
deleted file mode 100644
index 596936ff0..000000000
--- a/TODO
+++ /dev/null
@@ -1,11 +0,0 @@
-TODO
-====
-
-- Policy Kit 1 port
- * polkit-qt
- + Console Kit support
-
- * polkit-qt-gui
- + authorization checking for non privileged user
-
-- document Listener and co.
diff --git a/agent/CMakeLists.txt b/agent/CMakeLists.txt
index 80d1bd3b2..d131071b1 100644
--- a/agent/CMakeLists.txt
+++ b/agent/CMakeLists.txt
@@ -3,23 +3,23 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
)
-set(polkit_qt_agent_SRCS
- polkitqt1-agent-session.cpp
- polkitqt1-agent-listener.cpp
+set(polkit_tqt_agent_SRCS
+ polkittqt1-agent-session.cpp
+ polkittqt1-agent-listener.cpp
listeneradapter.cpp
- polkitqtlistener.cpp
+ polkittqtlistener.cpp
)
-automoc4_add_library(polkit-qt-agent-1 SHARED ${polkit_qt_agent_SRCS})
+automoc4_add_library(polkit-tqt-agent-1 SHARED ${polkit_tqt_agent_SRCS})
-target_link_libraries(polkit-qt-agent-1
+target_link_libraries(polkit-tqt-agent-1
${POLKIT_LIBRARIES}
- ${QT_QTCORE_LIBRARY}
+ ${TQT_TQTCORE_LIBRARY}
${POLKIT_AGENT_LIBRARY}
- polkit-qt-core-1
+ polkit-tqt-core-1
)
-set_target_properties(polkit-qt-agent-1 PROPERTIES VERSION ${POLKITQT-1_LIBRARY_VERSION}
- SOVERSION ${POLKITQT-1_ABI_VERSION}
- DEFINE_SYMBOL MAKE_POLKITQT1_LIB)
+set_target_properties(polkit-tqt-agent-1 PROPERTIES VERSION ${POLKITTQT-1_LIBRARY_VERSION}
+ SOVERSION ${POLKITTQT-1_ABI_VERSION}
+ DEFINE_SYMBOL MAKE_POLKITTQT1_LIB)
-install(TARGETS polkit-qt-agent-1 ${INSTALL_TARGETS_DEFAULT_ARGS})
+install(TARGETS polkit-tqt-agent-1 ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/agent/listeneradapter.cpp b/agent/listeneradapter.cpp
index 231d7d752..7a531dfd5 100644
--- a/agent/listeneradapter.cpp
+++ b/agent/listeneradapter.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
@@ -39,7 +39,7 @@ public:
ListenerAdapter *q;
};
-Q_GLOBAL_STATIC(ListenerAdapterHelper, s_globalListenerAdapter)
+TQ_GLOBAL_STATIC(ListenerAdapterHelper, s_globalListenerAdapter)
ListenerAdapter *ListenerAdapter::instance()
{
@@ -61,7 +61,7 @@ Listener* ListenerAdapter::findListener(PolkitAgentListener *listener)
{
Listener *listItem;
- Q_FOREACH(listItem, m_listeners) {
+ TQ_FOREACH(listItem, m_listeners) {
Q_ASSERT(listItem);
if (listItem->listener() == listener) {
@@ -72,7 +72,7 @@ Listener* ListenerAdapter::findListener(PolkitAgentListener *listener)
return NULL;
}
-void ListenerAdapter::polkit_qt_listener_initiate_authentication(PolkitAgentListener *listener,
+void ListenerAdapter::polkit_tqt_listener_initiate_authentication(PolkitAgentListener *listener,
const gchar *action_id,
const gchar *message,
const gchar *icon_name,
@@ -82,7 +82,7 @@ void ListenerAdapter::polkit_qt_listener_initiate_authentication(PolkitAgentList
GCancellable *cancellable,
GSimpleAsyncResult *result)
{
- tqDebug() << "polkit_qt_listener_initiate_authentication callback for " << listener;
+ tqDebug() << "polkit_tqt_listener_initiate_authentication callback for " << listener;
PolkitTQt1::Identity::List idents;
PolkitTQt1::Details dets(details);
@@ -102,11 +102,11 @@ void ListenerAdapter::polkit_qt_listener_initiate_authentication(PolkitAgentList
new AsyncResult(result));
}
-gboolean ListenerAdapter::polkit_qt_listener_initiate_authentication_finish(PolkitAgentListener *listener,
+gboolean ListenerAdapter::polkit_tqt_listener_initiate_authentication_finish(PolkitAgentListener *listener,
GAsyncResult *res,
GError **error)
{
- tqDebug() << "polkit_qt_listener_initiate_authentication_finish callback for " << listener;
+ tqDebug() << "polkit_tqt_listener_initiate_authentication_finish callback for " << listener;
GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT(res);
if (g_simple_async_result_propagate_error(simple, error)) {
diff --git a/agent/listeneradapter_p.h b/agent/listeneradapter_p.h
index 4bf754694..ed85f0470 100644
--- a/agent/listeneradapter_p.h
+++ b/agent/listeneradapter_p.h
@@ -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
@@ -23,9 +23,9 @@
#include <TQtCore/TQObject>
-#include "polkitqt1-agent-listener.h"
-#include "polkitqt1-identity.h"
-#include "polkitqt1-details.h"
+#include "polkittqt1-agent-listener.h"
+#include "polkittqt1-identity.h"
+#include "polkittqt1-details.h"
typedef struct _GList GList;
typedef struct _GCancellable GCancellable;
@@ -51,7 +51,7 @@ public:
static ListenerAdapter* instance();
~ListenerAdapter() {}
- void polkit_qt_listener_initiate_authentication(PolkitAgentListener *listener,
+ void polkit_tqt_listener_initiate_authentication(PolkitAgentListener *listener,
const gchar *action_id,
const gchar *message,
const gchar *icon_name,
@@ -61,7 +61,7 @@ public:
GCancellable *cancellable,
GSimpleAsyncResult *result);
- gboolean polkit_qt_listener_initiate_authentication_finish(PolkitAgentListener *listener,
+ gboolean polkit_tqt_listener_initiate_authentication_finish(PolkitAgentListener *listener,
GAsyncResult *res,
GError **error);
void cancelled_cb(PolkitAgentListener *listener);
diff --git a/agent/polkitqt1-agent-listener.cpp b/agent/polkitqt1-agent-listener.cpp
index c6bf63cba..e6e3a9b00 100644
--- a/agent/polkitqt1-agent-listener.cpp
+++ b/agent/polkitqt1-agent-listener.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
@@ -18,16 +18,16 @@
* Boston, MA 02110-1301, USA.
*/
-#include "polkitqt1-agent-listener.h"
+#include "polkittqt1-agent-listener.h"
#include <TQtCore/TQDebug>
-#include "polkitqtlistener_p.h"
+#include "polkittqtlistener_p.h"
-#include "polkitqt1-authority.h"
-#include "polkitqt1-subject.h"
-#include "polkitqt1-identity.h"
-#include "polkitqt1-details.h"
+#include "polkittqt1-authority.h"
+#include "polkittqt1-subject.h"
+#include "polkittqt1-identity.h"
+#include "polkittqt1-details.h"
namespace PolkitTQt1
{
@@ -39,7 +39,7 @@ class ListenerPrivate
{
public:
PolkitAgentListener *listener;
-#ifndef POLKIT_QT_1_COMPATIBILITY_MODE
+#ifndef POLKIT_TQT_1_COMPATIBILITY_MODE
void *registeredHandle;
#endif
};
@@ -49,7 +49,7 @@ Listener::Listener(TQObject *parent)
{
g_type_init();
- d->listener = polkit_qt_listener_new();
+ d->listener = polkit_tqt_listener_new();
tqDebug() << "New PolkitAgentListener " << d->listener;
@@ -69,7 +69,7 @@ Listener::~Listener()
tqDebug("Destroying listener");
ListenerAdapter::instance()->removeListener(this);
-#ifndef POLKIT_QT_1_COMPATIBILITY_MODE
+#ifndef POLKIT_TQT_1_COMPATIBILITY_MODE
if (d->registeredHandle) {
polkit_agent_listener_unregister(d->registeredHandle);
}
@@ -83,7 +83,7 @@ bool Listener::registerListener(const PolkitTQt1::Subject &subject, const TQStri
{
GError *error = NULL;
-#ifndef POLKIT_QT_1_COMPATIBILITY_MODE
+#ifndef POLKIT_TQT_1_COMPATIBILITY_MODE
d->registeredHandle = polkit_agent_listener_register(d->listener,
POLKIT_AGENT_REGISTER_FLAGS_NONE,
#else
@@ -91,7 +91,7 @@ bool Listener::registerListener(const PolkitTQt1::Subject &subject, const TQStri
#endif
subject.subject(),
objectPath.toAscii().data(),
-#ifndef POLKIT_QT_1_COMPATIBILITY_MODE
+#ifndef POLKIT_TQT_1_COMPATIBILITY_MODE
NULL,
#endif
&error);
@@ -101,7 +101,7 @@ bool Listener::registerListener(const PolkitTQt1::Subject &subject, const TQStri
g_error_free(error);
return false;
}
-#ifndef POLKIT_QT_1_COMPATIBILITY_MODE
+#ifndef POLKIT_TQT_1_COMPATIBILITY_MODE
if (d->registeredHandle == NULL) {
tqWarning() << TQString("Cannot register authentication agent!");
return false;
@@ -121,4 +121,4 @@ const PolkitAgentListener *Listener::listener()
}
-#include "polkitqt1-agent-listener.moc"
+#include "polkittqt1-agent-listener.moc"
diff --git a/agent/polkitqt1-agent-listener.h b/agent/polkitqt1-agent-listener.h
index ed48509e1..a5f2a0d40 100644
--- a/agent/polkitqt1-agent-listener.h
+++ b/agent/polkitqt1-agent-listener.h
@@ -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
@@ -18,14 +18,14 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef POLKITQT1_AGENT_LISTENER_H
-#define POLKITQT1_AGENT_LISTENER_H
+#ifndef POLKITTQT1_AGENT_LISTENER_H
+#define POLKITTQT1_AGENT_LISTENER_H
-#include "polkitqt1-export.h"
+#include "polkittqt1-export.h"
#include <TQtCore/TQObject>
-#include "polkitqt1-agent-session.h"
+#include "polkittqt1-agent-session.h"
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1
@@ -46,7 +46,7 @@ namespace Agent
class ListenerPrivate;
/**
- * \class Listener polkitqt1-agent-listener.h Listener
+ * \class Listener polkittqt1-agent-listener.h Listener
* \author Jaroslav Reznik <jreznik@redhat.com>
*
* \brief Listener is abstract class used for implementing authentication agents.
@@ -58,7 +58,7 @@ class ListenerPrivate;
* You can also use Session class to authenticate users however it isn't required.
* \sa Session
*/
-class POLKITQT1_EXPORT Listener : public TQObject
+class POLKITTQT1_EXPORT Listener : public TQObject
{
Q_OBJECT
TQ_DISABLE_COPY(Listener)
@@ -91,7 +91,7 @@ public:
*
* \param subject Subject that listener will be registered for
* \param objectPath DBus object path
- * \return \c True if the polkitqt1-agent-listener.has been registered, \c False otherwise
+ * \return \c True if the polkittqt1-agent-listener.has been registered, \c False otherwise
*/
bool registerListener(const PolkitTQt1::Subject &subject, const TQString &objectPath);
diff --git a/agent/polkitqt1-agent-session.cpp b/agent/polkitqt1-agent-session.cpp
index add3d95b1..c39600ff2 100644
--- a/agent/polkitqt1-agent-session.cpp
+++ b/agent/polkitqt1-agent-session.cpp
@@ -1,5 +1,5 @@
/*
- * This file is part of the PolKit1-qt project
+ * This file is part of the PolKit1-tqt project
* Copyright (C) 2009 Radek Novacek <rnovacek@redhat.com>
*
* This library is free software; you can redistribute it and/or
@@ -18,11 +18,11 @@
* Boston, MA 02110-1301, USA.
*/
-#include "polkitqt1-agent-session.h"
+#include "polkittqt1-agent-session.h"
#include <TQtCore/TQDebug>
-#include "polkitqt1-identity.h"
+#include "polkittqt1-identity.h"
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1
#include <polkitagent/polkitagent.h>
@@ -104,7 +104,7 @@ void Session::Private::completed(PolkitAgentSession *s, gboolean gained_authoriz
{
tqDebug() << "COMPLETED";
Session *session = (Session *)user_data;
- Q_EMIT(session)->completed(gained_authorization);
+ TQ_EMIT(session)->completed(gained_authorization);
//free session here as polkit documentation asks
g_object_unref(session->d->polkitAgentSession);
@@ -114,19 +114,19 @@ void Session::Private::completed(PolkitAgentSession *s, gboolean gained_authoriz
void Session::Private::request(PolkitAgentSession *s, gchar *request, gboolean echo_on, gpointer user_data)
{
tqDebug() << "REQUEST";
- Q_EMIT((Session *)user_data)->request(TQString::fromUtf8(request), echo_on);
+ TQ_EMIT((Session *)user_data)->request(TQString::fromUtf8(request), echo_on);
}
void Session::Private::showError(PolkitAgentSession *s, gchar *text, gpointer user_data)
{
tqDebug() << "showError";
- Q_EMIT((Session *)user_data)->showError(TQString::fromUtf8(text));
+ TQ_EMIT((Session *)user_data)->showError(TQString::fromUtf8(text));
}
void Session::Private::showInfo(PolkitAgentSession *s, gchar *text, gpointer user_data)
{
tqDebug() << "showInfo";
- Q_EMIT((Session *)user_data)->showInfo(TQString::fromUtf8(text));
+ TQ_EMIT((Session *)user_data)->showInfo(TQString::fromUtf8(text));
}
//
@@ -166,4 +166,4 @@ void AsyncResult::setError(const TQString &text)
g_simple_async_result_set_error(d->result, POLKIT_ERROR, POLKIT_ERROR_FAILED, "%s", text.toUtf8().data());
}
-#include "polkitqt1-agent-session.moc"
+#include "polkittqt1-agent-session.moc"
diff --git a/agent/polkitqt1-agent-session.h b/agent/polkitqt1-agent-session.h
index f4f4ff49c..a40b5b867 100644
--- a/agent/polkitqt1-agent-session.h
+++ b/agent/polkitqt1-agent-session.h
@@ -1,5 +1,5 @@
/*
- * This file is part of the PolKit1-qt project
+ * This file is part of the PolKit1-tqt project
* Copyright (C) 2009 Radek Novacek <rnovacek@redhat.com>
*
* This library is free software; you can redistribute it and/or
@@ -18,11 +18,11 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef POLKITQT1_AGENT_SESSION_H
-#define POLKITQT1_AGENT_SESSION_H
+#ifndef POLKITTQT1_AGENT_SESSION_H
+#define POLKITTQT1_AGENT_SESSION_H
#include <TQtCore/TQObject>
-#include "polkitqt1-identity.h"
+#include "polkittqt1-identity.h"
typedef struct _GSimpleAsyncResult GSimpleAsyncResult;
typedef struct _PolkitAgentSession PolkitAgentSession;
@@ -45,7 +45,7 @@ namespace Agent
* \internal
* \brief Encapsulation of GSimpleAsyncResult to TQObject class
*/
-class POLKITQT1_EXPORT AsyncResult
+class POLKITTQT1_EXPORT AsyncResult
{
public:
explicit AsyncResult(GSimpleAsyncResult *result);
@@ -70,14 +70,14 @@ private:
};
/**
- * \class Session polkitqt1-agent-session.h Session
+ * \class Session polkittqt1-agent-session.h Session
* \author Radek Novacek <rnovacek@redhat.com>
*
* This class is interface for interacting with native
* authentication system for obtaining authorizations.
*
*/
-class POLKITQT1_EXPORT Session : public TQObject
+class POLKITTQT1_EXPORT Session : public TQObject
{
Q_OBJECT
TQ_DISABLE_COPY(Session)
@@ -137,7 +137,7 @@ public:
Q_SIGNALS:
/**
* This signal will be emitted when the authentication
- * polkitqt1-agent-session.has been completed or cancelled.
+ * polkittqt1-agent-session.has been completed or cancelled.
*
* \param gainedAuthorization \c True if authorization was successfully obtained.
*/
diff --git a/agent/polkitqtlistener.cpp b/agent/polkitqtlistener.cpp
index ea0ad2dbf..dc5beb052 100644
--- a/agent/polkitqtlistener.cpp
+++ b/agent/polkitqtlistener.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
@@ -17,11 +17,11 @@
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
- * polkit-qt-listener based on code by David Zeuthen <davidz@redhat.com>
+ * polkit-tqt-listener based on code by David Zeuthen <davidz@redhat.com>
*/
-#include "polkitqtlistener_p.h"
+#include "polkittqtlistener_p.h"
#include <stdio.h>
#include <TQtCore/TQDebug>
@@ -44,7 +44,7 @@ struct _PolkitTQtListenerClass {
PolkitAgentListenerClass parent_class;
};
-static void polkit_qt_listener_initiate_authentication(PolkitAgentListener *listener,
+static void polkit_tqt_listener_initiate_authentication(PolkitAgentListener *listener,
const gchar *action_id,
const gchar *message,
const gchar *icon_name,
@@ -55,29 +55,29 @@ static void polkit_qt_listener_initiate_authentication(PolkitAgentListener *lis
GAsyncReadyCallback callback,
gpointer user_data);
-static gboolean polkit_qt_listener_initiate_authentication_finish(PolkitAgentListener *listener,
+static gboolean polkit_tqt_listener_initiate_authentication_finish(PolkitAgentListener *listener,
GAsyncResult *res,
GError **error);
-G_DEFINE_TYPE(PolkitTQtListener, polkit_qt_listener, POLKIT_AGENT_TYPE_LISTENER);
+G_DEFINE_TYPE(PolkitTQtListener, polkit_tqt_listener, POLKIT_AGENT_TYPE_LISTENER);
-static void polkit_qt_listener_init(PolkitTQtListener *listener)
+static void polkit_tqt_listener_init(PolkitTQtListener *listener)
{
g_type_init();
}
-static void polkit_qt_listener_finalize(GObject *object)
+static void polkit_tqt_listener_finalize(GObject *object)
{
PolkitTQtListener *listener;
- listener = POLKIT_QT_LISTENER(object);
+ listener = POLKIT_TQT_LISTENER(object);
- if (G_OBJECT_CLASS(polkit_qt_listener_parent_class)->finalize != NULL) {
- G_OBJECT_CLASS(polkit_qt_listener_parent_class)->finalize(object);
+ if (G_OBJECT_CLASS(polkit_tqt_listener_parent_class)->finalize != NULL) {
+ G_OBJECT_CLASS(polkit_tqt_listener_parent_class)->finalize(object);
}
}
-static void polkit_qt_listener_class_init(PolkitTQtListenerClass *klass)
+static void polkit_tqt_listener_class_init(PolkitTQtListenerClass *klass)
{
GObjectClass *gobject_class;
PolkitAgentListenerClass *listener_class;
@@ -85,15 +85,15 @@ static void polkit_qt_listener_class_init(PolkitTQtListenerClass *klass)
gobject_class = G_OBJECT_CLASS(klass);
listener_class = POLKIT_AGENT_LISTENER_CLASS(klass);
- gobject_class->finalize = polkit_qt_listener_finalize;
+ gobject_class->finalize = polkit_tqt_listener_finalize;
- listener_class->initiate_authentication = polkit_qt_listener_initiate_authentication;
- listener_class->initiate_authentication_finish = polkit_qt_listener_initiate_authentication_finish;
+ listener_class->initiate_authentication = polkit_tqt_listener_initiate_authentication;
+ listener_class->initiate_authentication_finish = polkit_tqt_listener_initiate_authentication_finish;
}
-PolkitAgentListener *polkit_qt_listener_new(void)
+PolkitAgentListener *polkit_tqt_listener_new(void)
{
- return POLKIT_AGENT_LISTENER(g_object_new(POLKIT_QT_TYPE_LISTENER, NULL));
+ return POLKIT_AGENT_LISTENER(g_object_new(POLKIT_TQT_TYPE_LISTENER, NULL));
}
static void cancelled_cb(GCancellable *cancellable, gpointer user_data)
@@ -101,7 +101,7 @@ static void cancelled_cb(GCancellable *cancellable, gpointer user_data)
ListenerAdapter::instance()->cancelled_cb((PolkitAgentListener *)user_data);
}
-static void polkit_qt_listener_initiate_authentication(PolkitAgentListener *agent_listener,
+static void polkit_tqt_listener_initiate_authentication(PolkitAgentListener *agent_listener,
const gchar *action_id,
const gchar *message,
const gchar *icon_name,
@@ -112,14 +112,14 @@ static void polkit_qt_listener_initiate_authentication(PolkitAgentListener *age
GAsyncReadyCallback callback,
gpointer user_data)
{
- tqDebug() << "Listener adapter polkit_qt_listener_initiate_authentication";
- PolkitTQtListener *listener = POLKIT_QT_LISTENER(agent_listener);
+ tqDebug() << "Listener adapter polkit_tqt_listener_initiate_authentication";
+ PolkitTQtListener *listener = POLKIT_TQT_LISTENER(agent_listener);
// The result of asynchronous method will be created here and it will be pushed to the listener.
GSimpleAsyncResult *result = g_simple_async_result_new((GObject *) listener, callback, user_data, agent_listener);
tqDebug() << "GSimpleAsyncResult:" << result;
- ListenerAdapter::instance()->polkit_qt_listener_initiate_authentication(agent_listener,
+ ListenerAdapter::instance()->polkit_tqt_listener_initiate_authentication(agent_listener,
action_id,
message,
icon_name,
@@ -138,12 +138,12 @@ static void polkit_qt_listener_initiate_authentication(PolkitAgentListener *age
}
-static gboolean polkit_qt_listener_initiate_authentication_finish(PolkitAgentListener *listener,
+static gboolean polkit_tqt_listener_initiate_authentication_finish(PolkitAgentListener *listener,
GAsyncResult *res,
GError **error)
{
- tqDebug() << "Listener adapter polkit_qt_listener_initiate_authentication_finish";
- return ListenerAdapter::instance()->polkit_qt_listener_initiate_authentication_finish(listener,
+ tqDebug() << "Listener adapter polkit_tqt_listener_initiate_authentication_finish";
+ return ListenerAdapter::instance()->polkit_tqt_listener_initiate_authentication_finish(listener,
res,
error);
}
diff --git a/agent/polkitqtlistener_p.h b/agent/polkitqtlistener_p.h
index c289b3973..b9f7faace 100644
--- a/agent/polkitqtlistener_p.h
+++ b/agent/polkitqtlistener_p.h
@@ -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
@@ -17,11 +17,11 @@
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
- * polkit-qt-listener based on code by David Zeuthen <davidz@redhat.com>
+ * polkit-tqt-listener based on code by David Zeuthen <davidz@redhat.com>
*/
-#ifndef POLKIQT_LISTENER_P_H
-#define POLKIQT_LISTENER_P_H
+#ifndef POLKITTQT_LISTENER_P_H
+#define POLKITTQT_LISTENER_P_H
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1
@@ -31,19 +31,19 @@
G_BEGIN_DECLS
-#define POLKIT_QT_TYPE_LISTENER (polkit_qt_listener_get_type())
-#define POLKIT_QT_LISTENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_QT_TYPE_LISTENER, PolkitTQtListener))
-#define POLKIT_QT_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_QT_TYPE_LISTENER, PolkitTQtListenerClass))
-#define POLKIT_QT_LISTENER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_QT_TYPE_LISTENER, PolkitTQtListenerClass))
-#define POLKIT_QT_IS_LISTENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_QT_TYPE_LISTENER))
-#define POLKIT_QT_IS_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_QT_TYPE_LISTENER))
+#define POLKIT_TQT_TYPE_LISTENER (polkit_tqt_listener_get_type())
+#define POLKIT_TQT_LISTENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_TQT_TYPE_LISTENER, PolkitTQtListener))
+#define POLKIT_TQT_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_TQT_TYPE_LISTENER, PolkitTQtListenerClass))
+#define POLKIT_TQT_LISTENER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_TQT_TYPE_LISTENER, PolkitTQtListenerClass))
+#define POLKIT_TQT_IS_LISTENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_TQT_TYPE_LISTENER))
+#define POLKIT_TQT_IS_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_TQT_TYPE_LISTENER))
typedef struct _PolkitTQtListener PolkitTQtListener;
typedef struct _PolkitTQtListenerClass PolkitTQtListenerClass;
-GType polkit_qt_listener_get_type(void) G_GNUC_CONST;
-PolkitAgentListener *polkit_qt_listener_new(void);
+GType polkit_tqt_listener_get_type(void) G_GNUC_CONST;
+PolkitAgentListener *polkit_tqt_listener_new(void);
G_END_DECLS
-#endif /* POLKIT_QT_LISTENER_H */
+#endif /* POLKIT_TQT_LISTENER_H */
diff --git a/cmake/modules/CMakeLists.txt b/cmake/modules/CMakeLists.txt
index 37511d618..fe17d7a0b 100644
--- a/cmake/modules/CMakeLists.txt
+++ b/cmake/modules/CMakeLists.txt
@@ -1,7 +1,7 @@
## install the cmake files
-#file( GLOB cmakeFiles FindPolkitQt.cmake )
+#file( GLOB cmakeFiles FindPolkitTQt.cmake )
#set(module_install_dir ${CMAKE_ROOT}/Modules )
#install( FILES ${cmakeFiles}
diff --git a/cmake/modules/FindPolkitQt-1.cmake b/cmake/modules/FindPolkitQt-1.cmake
index f28c494e4..2ba20aab4 100644
--- a/cmake/modules/FindPolkitQt-1.cmake
+++ b/cmake/modules/FindPolkitQt-1.cmake
@@ -1,13 +1,13 @@
# - Try to find PolkitTQt-1
# Once done this will define
#
-# POLKITQT-1_FOUND - system has Polkit-qt
-# POLKITQT-1_INCLUDE_DIR - the Polkit-qt include directory
-# POLKITQT-1_LIBRARIES - Link these to use all Polkit-qt libs
-# POLKITQT-1_CORE_LIBRARY - Link this to use the polkit-qt-core library only
-# POLKITQT-1_GUI_LIBRARY - Link this to use GUI elements in polkit-qt (polkit-qt-gui)
-# POLKITQT-1_AGENT_LIBRARY - Link this to use the agent wrapper in polkit-qt
-# POLKITQT-1_DEFINITIONS - Compiler switches required for using Polkit-qt
+# POLKITTQT-1_FOUND - system has Polkit-tqt
+# POLKITTQT-1_INCLUDE_DIR - the Polkit-tqt include directory
+# POLKITTQT-1_LIBRARIES - Link these to use all Polkit-tqt libs
+# POLKITTQT-1_CORE_LIBRARY - Link this to use the polkit-tqt-core library only
+# POLKITTQT-1_GUI_LIBRARY - Link this to use GUI elements in polkit-tqt (polkit-tqt-gui)
+# POLKITTQT-1_AGENT_LIBRARY - Link this to use the agent wrapper in polkit-tqt
+# POLKITTQT-1_DEFINITIONS - Compiler switches required for using Polkit-tqt
#
# The minimum required version of PolkitTQt-1 can be specified using the
# standard syntax, e.g. find_package(PolkitTQt-1 1.0)
@@ -17,10 +17,10 @@
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-# Support POLKITQT-1_MIN_VERSION for compatibility:
-if ( NOT PolkitTQt-1_FIND_VERSION AND POLKITQT-1_MIN_VERSION )
- set ( PolkitTQt-1_FIND_VERSION ${POLKITQT-1_MIN_VERSION} )
-endif ( NOT PolkitTQt-1_FIND_VERSION AND POLKITQT-1_MIN_VERSION )
+# Support POLKITTQT-1_MIN_VERSION for compatibility:
+if ( NOT PolkitTQt-1_FIND_VERSION AND POLKITTQT-1_MIN_VERSION )
+ set ( PolkitTQt-1_FIND_VERSION ${POLKITTQT-1_MIN_VERSION} )
+endif ( NOT PolkitTQt-1_FIND_VERSION AND POLKITTQT-1_MIN_VERSION )
set( _PolkitTQt-1_FIND_QUIETLY ${PolkitTQt-1_FIND_QUIETLY} )
find_package( PolkitTQt-1 ${PolkitTQt-1_FIND_VERSION} TQUIET NO_MODULE PATHS ${LIB_INSTALL_DIR}/PolkitTQt-1/cmake )
@@ -29,9 +29,9 @@ set( PolkitTQt-1_FIND_QUIETLY ${_PolkitTQt-1_FIND_QUIETLY} )
include( FindPackageHandleStandardArgs )
find_package_handle_standard_args( PolkitTQt-1 DEFAULT_MSG PolkitTQt-1_CONFIG )
-if (POLKITQT-1_FOUND)
- if (NOT POLKITQT-1_INSTALL_DIR STREQUAL CMAKE_INSTALL_PREFIX)
+if (POLKITTQT-1_FOUND)
+ if (NOT POLKITTQT-1_INSTALL_DIR STREQUAL CMAKE_INSTALL_PREFIX)
message("WARNING: Installation prefix does not match PolicyKit install prefixes. You probably will need to move files installed "
- "in POLICY_FILES_INSTALL_DIR and by dbus_add_activation_system_service to the ${POLKITQT-1_INSTALL_DIR} prefix")
- endif (NOT POLKITQT-1_INSTALL_DIR STREQUAL CMAKE_INSTALL_PREFIX)
-endif (POLKITQT-1_FOUND)
+ "in POLICY_FILES_INSTALL_DIR and by dbus_add_activation_system_service to the ${POLKITTQT-1_INSTALL_DIR} prefix")
+ endif (NOT POLKITTQT-1_INSTALL_DIR STREQUAL CMAKE_INSTALL_PREFIX)
+endif (POLKITTQT-1_FOUND)
diff --git a/cmake/modules/PolkitQt-1Dist.cmake b/cmake/modules/PolkitQt-1Dist.cmake
index 99122ddfd..ea23fe5cd 100644
--- a/cmake/modules/PolkitQt-1Dist.cmake
+++ b/cmake/modules/PolkitQt-1Dist.cmake
@@ -1,13 +1,13 @@
-SET(CPACK_PACKAGE_NAME "polkit-qt-1")
-SET(CPACK_PACKAGE_VERSION_MAJOR "${POLKITQT-1_VERSION_MAJOR}")
-SET(CPACK_PACKAGE_VERSION_MINOR "${POLKITQT-1_VERSION_MINOR}")
-SET(CPACK_PACKAGE_VERSION_PATCH "${POLKITQT-1_VERSION_PATCH}")
+SET(CPACK_PACKAGE_NAME "polkit-tqt-1")
+SET(CPACK_PACKAGE_VERSION_MAJOR "${POLKITTQT-1_VERSION_MAJOR}")
+SET(CPACK_PACKAGE_VERSION_MINOR "${POLKITTQT-1_VERSION_MINOR}")
+SET(CPACK_PACKAGE_VERSION_PATCH "${POLKITTQT-1_VERSION_PATCH}")
set(CPACK_SOURCE_GENERATOR "TBZ2")
-set(CPACK_SOURCE_PACKAGE_FILE_NAME "polkit-qt-1-${POLKITQT-1_VERSION_MAJOR}.${POLKITQT-1_VERSION_MINOR}.${POLKITQT-1_VERSION_PATCH}")
+set(CPACK_SOURCE_PACKAGE_FILE_NAME "polkit-tqt-1-${POLKITTQT-1_VERSION_MAJOR}.${POLKITTQT-1_VERSION_MINOR}.${POLKITTQT-1_VERSION_PATCH}")
set(CPACK_SOURCE_IGNORE_FILES "/\\\\.svn/" "/\\\\.git/" "makechangelog")
-set(ARCHIVE_NAME ${CPACK_PACKAGE_NAME}-${POLKITQT-1_VERSION_STRING})
+set(ARCHIVE_NAME ${CPACK_PACKAGE_NAME}-${POLKITTQT-1_VERSION_STRING})
add_custom_target(dist
COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD
| bzip2 > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
index f2efca4de..feca7c96d 100644
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -3,29 +3,29 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
)
-set(polkit_qt_core_SRCS
- polkitqt1-authority.cpp
- polkitqt1-identity.cpp
- polkitqt1-subject.cpp
- polkitqt1-temporaryauthorization.cpp
- polkitqt1-details.cpp
- polkitqt1-actiondescription.cpp
+set(polkit_tqt_core_SRCS
+ polkittqt1-authority.cpp
+ polkittqt1-identity.cpp
+ polkittqt1-subject.cpp
+ polkittqt1-temporaryauthorization.cpp
+ polkittqt1-details.cpp
+ polkittqt1-actiondescription.cpp
)
-automoc4_add_library(polkit-qt-core-1 SHARED ${polkit_qt_core_SRCS})
+automoc4_add_library(polkit-tqt-core-1 SHARED ${polkit_tqt_core_SRCS})
-target_link_libraries(polkit-qt-core-1
- ${QT_QTCORE_LIBRARY}
- ${QT_QTDBUS_LIBRARY}
- ${QT_QTXML_LIBRARY}
+target_link_libraries(polkit-tqt-core-1
+ ${TQT_TQTCORE_LIBRARY}
+ ${TQT_TQTDBUS_LIBRARY}
+ ${TQT_TQTXML_LIBRARY}
${POLKIT_LIBRARIES}
${GLIB2_LIBRARIES}
${GOBJECT_LIBRARIES}
${GIO_LIBRARIES}
)
-set_target_properties(polkit-qt-core-1 PROPERTIES VERSION ${POLKITQT-1_LIBRARY_VERSION}
- SOVERSION ${POLKITQT-1_ABI_VERSION}
- DEFINE_SYMBOL MAKE_POLKITQT1_LIB)
+set_target_properties(polkit-tqt-core-1 PROPERTIES VERSION ${POLKITTQT-1_LIBRARY_VERSION}
+ SOVERSION ${POLKITTQT-1_ABI_VERSION}
+ DEFINE_SYMBOL MAKE_POLKITTQT1_LIB)
-install(TARGETS polkit-qt-core-1 ${INSTALL_TARGETS_DEFAULT_ARGS})
+install(TARGETS polkit-tqt-core-1 ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/core/polkitqt1-actiondescription.cpp b/core/polkittqt1-actiondescription.cpp
index 764510668..1cf9cf621 100644
--- a/core/polkitqt1-actiondescription.cpp
+++ b/core/polkittqt1-actiondescription.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>
* Copyright (C) 2010 Dario Freddi <drf@kde.org>
*
@@ -19,7 +19,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include "polkitqt1-actiondescription.h"
+#include "polkittqt1-actiondescription.h"
#include <TQtCore/TQString>
diff --git a/core/polkitqt1-actiondescription.h b/core/polkittqt1-actiondescription.h
index fac4812fb..666f3be67 100644
--- a/core/polkitqt1-actiondescription.h
+++ b/core/polkittqt1-actiondescription.h
@@ -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>
* Copyright (C) 2010 Dario Freddi <drf@kde.org>
*
@@ -19,10 +19,10 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef POLKITQT1_ACTION_DESCRIPTION_H
-#define POLKITQT1_ACTION_DESCRIPTION_H
+#ifndef POLKITTQT1_ACTION_DESCRIPTION_H
+#define POLKITTQT1_ACTION_DESCRIPTION_H
-#include "polkitqt1-export.h"
+#include "polkittqt1-export.h"
#include <TQtCore/TQList>
#include <TQtCore/TQMetaType>
@@ -33,13 +33,13 @@ typedef struct _PolkitActionDescription PolkitActionDescription;
namespace PolkitTQt1
{
/**
- * \class ActionDescription polkitqt1-actiondescription.h ActionDescription
+ * \class ActionDescription polkittqt1-actiondescription.h ActionDescription
* \author Jaroslav Reznik <jreznik@redhat.com>
* \author Dario Freddi <drf@kde.org>
*
* \brief Class used to encapsulate a registered action.
*/
-class POLKITQT1_EXPORT ActionDescription
+class POLKITTQT1_EXPORT ActionDescription
{
public:
enum ImplicitAuthorization {
@@ -144,6 +144,6 @@ private:
};
}
-Q_DECLARE_METATYPE(PolkitTQt1::ActionDescription::List)
+TQ_DECLARE_METATYPE(PolkitTQt1::ActionDescription::List)
-#endif //POLKIT_QT_ACTION_DESCRIPTION_H
+#endif //POLKIT_TQT_ACTION_DESCRIPTION_H
diff --git a/core/polkitqt1-authority.cpp b/core/polkittqt1-authority.cpp
index d7cf300b8..8ec922d2e 100644
--- a/core/polkitqt1-authority.cpp
+++ b/core/polkittqt1-authority.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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* Copyright (C) 2009 Dario Freddi <drf@kde.org>
* Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com>
@@ -21,7 +21,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include "polkitqt1-authority.h"
+#include "polkittqt1-authority.h"
#include <TQtDBus/TQDBusInterface>
#include <TQtDBus/TQDBusReply>
@@ -41,7 +41,7 @@ public:
Authority *q;
};
-Q_GLOBAL_STATIC(AuthorityHelper, s_globalAuthority)
+TQ_GLOBAL_STATIC(AuthorityHelper, s_globalAuthority)
Authority *Authority::instance(PolkitAuthority *authority)
{
@@ -178,11 +178,11 @@ void Authority::Private::init()
m_revokeTemporaryAuthorizationsCancellable = g_cancellable_new();
m_revokeTemporaryAuthorizationCancellable = g_cancellable_new();
-#ifndef POLKIT_QT_1_COMPATIBILITY_MODE
+#ifndef POLKIT_TQT_1_COMPATIBILITY_MODE
GError *gerror = NULL;
#endif
if (pkAuthority == NULL) {
-#ifndef POLKIT_QT_1_COMPATIBILITY_MODE
+#ifndef POLKIT_TQT_1_COMPATIBILITY_MODE
pkAuthority = polkit_authority_get_sync(NULL, &gerror);
if (gerror != NULL) {
setError(E_GetAuthority, gerror->message);
@@ -195,7 +195,7 @@ void Authority::Private::init()
}
if (pkAuthority == NULL) {
-#ifdef POLKIT_QT_1_COMPATIBILITY_MODE
+#ifdef POLKIT_TQT_1_COMPATIBILITY_MODE
(E_GetAuthority);
#endif
return;
@@ -224,7 +224,7 @@ void Authority::Private::init()
TQList<TQString> seats;
qVariantValue<TQDBusArgument> (msg.arguments()[0]) >> seats;
// it can be multiple seats present so connect all their signals
- Q_FOREACH(const TQString &seat, seats) {
+ TQ_FOREACH(const TQString &seat, seats) {
seatSignalsConnect(seat);
}
}
@@ -262,7 +262,7 @@ void Authority::Private::dbusSignalAdd(const TQString &service, const TQString &
void Authority::Private::dbusFilter(const TQDBusMessage &message)
{
if (message.type() == TQDBusMessage::SignalMessage) {
- Q_EMIT q->consoleKitDBChanged();
+ TQ_EMIT q->consoleKitDBChanged();
// TODO: Test this with the multiseat support
if (message.member() == "SeatAdded") {
@@ -298,7 +298,7 @@ void Authority::clearError()
void Authority::Private::pk_config_changed()
{
- Q_EMIT Authority::instance()->configChanged();
+ TQ_EMIT Authority::instance()->configChanged();
}
PolkitAuthority *Authority::polkitAuthority() const
@@ -444,7 +444,7 @@ void Authority::Private::enumerateActionsCallback(GObject *object, GAsyncResult
return;
}
- Q_EMIT authority->enumerateActionsFinished(actionsToListAndFree(list));
+ TQ_EMIT authority->enumerateActionsFinished(actionsToListAndFree(list));
}
void Authority::enumerateActionsCancel()
@@ -516,7 +516,7 @@ void Authority::Private::registerAuthenticationAgentCallback(GObject *object, GA
return;
}
- Q_EMIT authority->registerAuthenticationAgentFinished(res);
+ TQ_EMIT authority->registerAuthenticationAgentFinished(res);
}
void Authority::registerAuthenticationAgentCancel()
@@ -588,7 +588,7 @@ void Authority::Private::unregisterAuthenticationAgentCallback(GObject *object,
return;
}
- Q_EMIT authority->unregisterAuthenticationAgentFinished(res);
+ TQ_EMIT authority->unregisterAuthenticationAgentFinished(res);
}
void Authority::unregisterAuthenticationAgentCancel()
@@ -659,7 +659,7 @@ void Authority::Private::authenticationAgentResponseCallback(GObject *object, GA
return;
}
- Q_EMIT authority->authenticationAgentResponseFinished(res);
+ TQ_EMIT authority->authenticationAgentResponseFinished(res);
}
void Authority::authenticationAgentResponseCancel()
@@ -720,7 +720,7 @@ void Authority::Private::enumerateTemporaryAuthorizationsCallback(GObject *objec
g_list_free(glist);
- Q_EMIT authority->enumerateTemporaryAuthorizationsFinished(res);
+ TQ_EMIT authority->enumerateTemporaryAuthorizationsFinished(res);
}
void Authority::enumerateTemporaryAuthorizationsCancel()
@@ -780,7 +780,7 @@ void Authority::Private::revokeTemporaryAuthorizationsCallback(GObject *object,
return;
}
- Q_EMIT authority->revokeTemporaryAuthorizationsFinished(res);
+ TQ_EMIT authority->revokeTemporaryAuthorizationsFinished(res);
}
void Authority::revokeTemporaryAuthorizationsCancel()
@@ -840,7 +840,7 @@ void Authority::Private::revokeTemporaryAuthorizationCallback(GObject *object, G
return;
}
- Q_EMIT authority->revokeTemporaryAuthorizationFinished(res);
+ TQ_EMIT authority->revokeTemporaryAuthorizationFinished(res);
}
void Authority::revokeTemporaryAuthorizationCancel()
@@ -852,4 +852,4 @@ void Authority::revokeTemporaryAuthorizationCancel()
}
-#include "polkitqt1-authority.moc"
+#include "polkittqt1-authority.moc"
diff --git a/core/polkitqt1-authority.h b/core/polkittqt1-authority.h
index 6a0bb1f8e..6ced45ad6 100644
--- a/core/polkitqt1-authority.h
+++ b/core/polkittqt1-authority.h
@@ -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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* Copyright (C) 2009 Dario Freddi <drf@kde.org>
* Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com>
@@ -21,14 +21,14 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef POLKITQT1_AUTHORITY_H
-#define POLKITQT1_AUTHORITY_H
+#ifndef POLKITTQT1_AUTHORITY_H
+#define POLKITTQT1_AUTHORITY_H
-#include "polkitqt1-export.h"
-#include "polkitqt1-identity.h"
-#include "polkitqt1-subject.h"
-#include "polkitqt1-temporaryauthorization.h"
-#include "polkitqt1-actiondescription.h"
+#include "polkittqt1-export.h"
+#include "polkittqt1-identity.h"
+#include "polkittqt1-subject.h"
+#include "polkittqt1-temporaryauthorization.h"
+#include "polkittqt1-actiondescription.h"
#include <TQtCore/TQObject>
#include <TQtCore/TQMetaType>
@@ -47,7 +47,7 @@ namespace PolkitTQt1
{
/**
- * \class Authority polkitqt1-authority.h Authority
+ * \class Authority polkittqt1-authority.h Authority
* \author Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* \author Dario Freddi <drf@kde.org>
* \author Jaroslav Reznik <jreznik@redhat.com>
@@ -63,7 +63,7 @@ namespace PolkitTQt1
* Call Authority::instance() to get an instance of the Authority object.
* Do not delete Authority::instance(), cleanup will be done automatically.
*/
-class POLKITQT1_EXPORT Authority : public TQObject
+class POLKITTQT1_EXPORT Authority : public TQObject
{
Q_OBJECT
TQ_DISABLE_COPY(Authority)
@@ -91,7 +91,7 @@ public:
* to block for a long time. **/
AllowUserInteraction = 0x01
};
- Q_DECLARE_FLAGS(AuthorizationFlags, AuthorizationFlag)
+ TQ_DECLARE_FLAGS(AuthorizationFlags, AuthorizationFlag)
/** Error codes for the authority class */
enum ErrorCode {
@@ -111,7 +111,7 @@ public:
E_RegisterFailed = 0x06,
/** Unregistration of authentication agent failed **/
E_UnregisterFailed = 0x07,
- /** Cookie or polkitqt1-identity.handled to the action is empty **/
+ /** Cookie or polkittqt1-identity.handled to the action is empty **/
E_CookieOrIdentityEmpty = 0x08,
/** Response of auth agent failed **/
E_AgentResponseFailed = 0x09,
@@ -125,7 +125,7 @@ public:
* Returns the current instance of Authority. Call this function whenever
* you need to access the Authority class.
*
- * \note Authority is a singleton. Memory is handled by polkit-qt, so you just
+ * \note Authority is a singleton. Memory is handled by polkit-tqt, so you just
* need to call this function to get a working instance of Authority.
* Don't delete the object after having used it.
*
@@ -170,7 +170,7 @@ public:
/**
* Returns the current instance of PolkitAuthority. If you are handling
- * it through Polkit-qt (which is quite likely, since you are calling
+ * it through Polkit-tqt (which is quite likely, since you are calling
* this function), DO NOT use any PolicyKit API's specific method that
* modifies the instance on it, unless you're completely aware of what you're doing and
* of the possible consequencies. Use this instance only to gather information.
diff --git a/core/polkitqt1-details.cpp b/core/polkittqt1-details.cpp
index 65d028b26..3175926c8 100644
--- a/core/polkitqt1-details.cpp
+++ b/core/polkittqt1-details.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 Radek Novacek <rnovacek@redhat.com>
*
* This library is free software; you can redistribute it and/or
@@ -18,7 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include "polkitqt1-details.h"
+#include "polkittqt1-details.h"
#include <TQtCore/TQStringList>
diff --git a/core/polkitqt1-details.h b/core/polkittqt1-details.h
index 2cb18163c..89e4e5b80 100644
--- a/core/polkitqt1-details.h
+++ b/core/polkittqt1-details.h
@@ -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 Radek Novacek <rnovacek@redhat.com>
*
* This library is free software; you can redistribute it and/or
@@ -18,10 +18,10 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef POLKITQT1_DETAILS_H
-#define POLKITQT1_DETAILS_H
+#ifndef POLKITTQT1_DETAILS_H
+#define POLKITTQT1_DETAILS_H
-#include "polkitqt1-export.h"
+#include "polkittqt1-export.h"
#include <TQtCore/TQObject>
#include <TQtCore/TQSharedData>
@@ -39,12 +39,12 @@ namespace PolkitTQt1
{
/**
- * \class Details polkitqt1-details.h Details
+ * \class Details polkittqt1-details.h Details
* \author Radek Novacek <rnovacek@redhat.com>
*
* \brief Class used for passing details around.
*/
-class POLKITQT1_EXPORT Details
+class POLKITTQT1_EXPORT Details
{
public:
/**
diff --git a/core/polkitqt1-identity.cpp b/core/polkittqt1-identity.cpp
index 1e03dda9a..8be2b55dc 100644
--- a/core/polkitqt1-identity.cpp
+++ b/core/polkittqt1-identity.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 Lukas Tinkl <ltinkl@redhat.com>
*
* This library is free software; you can redistribute it and/or
@@ -18,7 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include "polkitqt1-identity.h"
+#include "polkittqt1-identity.h"
#include <polkit/polkit.h>
diff --git a/core/polkitqt1-identity.h b/core/polkittqt1-identity.h
index e1f4dde90..600eba5e8 100644
--- a/core/polkitqt1-identity.h
+++ b/core/polkittqt1-identity.h
@@ -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 Lukas Tinkl <ltinkl@redhat.com>
*
* This library is free software; you can redistribute it and/or
@@ -18,10 +18,10 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef POLKITQT1_IDENTITY_H
-#define POLKITQT1_IDENTITY_H
+#ifndef POLKITTQT1_IDENTITY_H
+#define POLKITTQT1_IDENTITY_H
-#include "polkitqt1-export.h"
+#include "polkittqt1-export.h"
#include <unistd.h>
@@ -46,7 +46,7 @@ class UnixUserIdentity;
class UnixGroupIdentity;
/**
- * \class Identity polkitqt1-identity.h Identity
+ * \class Identity polkittqt1-identity.h Identity
* \author Lukas Tinkl <ltinkl@redhat.com>
*
* This class encapsulates the PolkitIdentity interface.
@@ -56,7 +56,7 @@ class UnixGroupIdentity;
* \see UnixGroup
* \see UnixUser
*/
-class POLKITQT1_EXPORT Identity
+class POLKITTQT1_EXPORT Identity
{
public:
typedef TQList< Identity > List;
@@ -107,14 +107,14 @@ private:
};
/**
- * \class UnixUserIdentity polkitqt1-identity.h Identity
+ * \class UnixUserIdentity polkittqt1-identity.h Identity
*
* An object representing a user identity on a UNIX system.
*
* \brief UNIX user identity
* \sa Identity
*/
-class POLKITQT1_EXPORT UnixUserIdentity : public Identity
+class POLKITTQT1_EXPORT UnixUserIdentity : public Identity
{
public:
UnixUserIdentity();
@@ -157,14 +157,14 @@ public:
};
/**
- * \class UnixGroupIdentity polkitqt1-identity.h Identity
+ * \class UnixGroupIdentity polkittqt1-identity.h Identity
*
* An object representing a group identity on a UNIX system.
*
* \brief UNIX group identity
* \sa Identity
*/
-class POLKITQT1_EXPORT UnixGroupIdentity : public Identity
+class POLKITTQT1_EXPORT UnixGroupIdentity : public Identity
{
public:
UnixGroupIdentity();
@@ -208,4 +208,4 @@ public:
}
-#endif // POLKIT_QT_IDENTITY_H
+#endif // POLKIT_TQT_IDENTITY_H
diff --git a/core/polkitqt1-subject.cpp b/core/polkittqt1-subject.cpp
index dea13d9f2..bafeaee56 100644
--- a/core/polkitqt1-subject.cpp
+++ b/core/polkittqt1-subject.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
@@ -18,7 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include "polkitqt1-subject.h"
+#include "polkittqt1-subject.h"
#include <TQtCore/TQDebug>
#include <polkit/polkit.h>
@@ -112,13 +112,13 @@ Subject Subject::fromString(const TQString &string)
return subject;
}
-UnixProcessSubject::UnixProcessSubject(qint64 pid)
+UnixProcessSubject::UnixProcessSubject(tqint64 pid)
: Subject()
{
setSubject(polkit_unix_process_new(pid));
}
-UnixProcessSubject::UnixProcessSubject(qint64 pid, tquint64 startTime)
+UnixProcessSubject::UnixProcessSubject(tqint64 pid, tquint64 startTime)
: Subject()
{
setSubject(polkit_unix_process_new_full(pid, startTime));
@@ -130,17 +130,17 @@ UnixProcessSubject::UnixProcessSubject(PolkitUnixProcess *pkUnixProcess)
}
-qint64 UnixProcessSubject::pid() const
+tqint64 UnixProcessSubject::pid() const
{
return polkit_unix_process_get_pid((PolkitUnixProcess *) subject());
}
-qint64 UnixProcessSubject::startTime() const
+tqint64 UnixProcessSubject::startTime() const
{
return polkit_unix_process_get_start_time((PolkitUnixProcess *) subject());
}
-void UnixProcessSubject::setPid(qint64 pid)
+void UnixProcessSubject::setPid(tqint64 pid)
{
polkit_unix_process_set_pid((PolkitUnixProcess *) subject(), pid);
}
@@ -175,7 +175,7 @@ UnixSessionSubject::UnixSessionSubject(const TQString &sessionId)
setSubject(polkit_unix_session_new(sessionId.toUtf8().data()));
}
-UnixSessionSubject::UnixSessionSubject(qint64 pid)
+UnixSessionSubject::UnixSessionSubject(tqint64 pid)
: Subject()
{
GError *error = NULL;
diff --git a/core/polkitqt1-subject.h b/core/polkittqt1-subject.h
index 25d986097..3f3b10279 100644
--- a/core/polkitqt1-subject.h
+++ b/core/polkittqt1-subject.h
@@ -1,5 +1,5 @@
/*
- * This file is part of the PolKit1-qt project
+ * This file is part of the PolKit1-tqt project
* Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com>
*
* This library is free software; you can redistribute it and/or
@@ -18,10 +18,10 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef POLKITQT1_SUBJECT_H
-#define POLKITQT1_SUBJECT_H
+#ifndef POLKITTQT1_SUBJECT_H
+#define POLKITTQT1_SUBJECT_H
-#include "polkitqt1-export.h"
+#include "polkittqt1-export.h"
#include <TQtCore/TQObject>
#include <TQtCore/TQSharedData>
@@ -41,7 +41,7 @@ namespace PolkitTQt1
{
/**
- * \class Subject polkitqt1-subject.h Subject
+ * \class Subject polkittqt1-subject.h Subject
* \author Jaroslav Reznik <jreznik@redhat.com>
*
* \brief This class represents PolicyKit subjects
@@ -52,7 +52,7 @@ namespace PolkitTQt1
* \see SystemBusName
* \see UnixSession
*/
-class POLKITQT1_EXPORT Subject
+class POLKITTQT1_EXPORT Subject
{
public:
Subject();
@@ -99,7 +99,7 @@ private:
};
/**
- * \class UnixProcessSubject polkitqt1-subject.h Subject
+ * \class UnixProcessSubject polkittqt1-subject.h Subject
* \author Jaroslav Reznik <jreznik@redhat.com>
*
* \brief A class for representing a UNIX process.
@@ -111,7 +111,7 @@ private:
*
* \sa Subject
*/
-class POLKITQT1_EXPORT UnixProcessSubject : public Subject
+class POLKITTQT1_EXPORT UnixProcessSubject : public Subject
{
public:
/**
@@ -120,7 +120,7 @@ public:
*
* \param pid An Unix process PID.
*/
- explicit UnixProcessSubject(qint64 pid);
+ explicit UnixProcessSubject(tqint64 pid);
/**
* Subject constructor, takes two parameters - PID and start time.
@@ -128,7 +128,7 @@ public:
* \param pid An Unix process PID.
* \param startTime An Unix process start time.
*/
- UnixProcessSubject(qint64 pid, tquint64 startTime);
+ UnixProcessSubject(tqint64 pid, tquint64 startTime);
/**
* Subject constructor, it creates UnixProcess object from PolkitUnixProcess object
@@ -144,32 +144,32 @@ public:
*
* \return A PID of associated Unix process.
*/
- qint64 pid() const;
+ tqint64 pid() const;
/**
* Returns Unix process start time.
*
* \return A start time of associated Unix process.
*/
- qint64 startTime() const;
+ tqint64 startTime() const;
/**
* Sets Unix process PID.
*
* \param pid An Unix process PID.
*/
- void setPid(qint64 pid);
+ void setPid(tqint64 pid);
};
/**
- * \class SystemBusNameSubject polkitqt1-subject.h Subject
+ * \class SystemBusNameSubject polkittqt1-subject.h Subject
* \author Jaroslav Reznik <jreznik@redhat.com>
*
* \brief A class for representing a process owning a unique name on the system bus.
*
* \sa Subject
*/
-class POLKITQT1_EXPORT SystemBusNameSubject : public Subject
+class POLKITTQT1_EXPORT SystemBusNameSubject : public Subject
{
public:
/**
@@ -204,7 +204,7 @@ public:
};
/**
- * \class UnixSessionSubject polkitqt1-subject.h Subject
+ * \class UnixSessionSubject polkittqt1-subject.h Subject
* \author Jaroslav Reznik <jreznik@redhat.com>
*
* \brief A class for representing unix session.
@@ -214,7 +214,7 @@ public:
*
* \sa Subject
*/
-class POLKITQT1_EXPORT UnixSessionSubject : public Subject
+class POLKITTQT1_EXPORT UnixSessionSubject : public Subject
{
public:
/**
@@ -231,7 +231,7 @@ public:
*
* \param pid The session's process pid.
*/
- explicit UnixSessionSubject(qint64 pid);
+ explicit UnixSessionSubject(tqint64 pid);
/**
* Subject constructor, it creates UnixSession object from PolkitUnixSession object
diff --git a/core/polkitqt1-temporaryauthorization.cpp b/core/polkittqt1-temporaryauthorization.cpp
index 7614089d4..e0aa01871 100644
--- a/core/polkitqt1-temporaryauthorization.cpp
+++ b/core/polkittqt1-temporaryauthorization.cpp
@@ -1,5 +1,5 @@
/*
- * This file is part of the PolKit1-qt project
+ * This file is part of the PolKit1-tqt project
* Copyright (C) 2009 Radek Novacek <rnovacek@redhat.com>
*
* This library is free software; you can redistribute it and/or
@@ -18,8 +18,8 @@
* Boston, MA 02110-1301, USA.
*/
-#include "polkitqt1-temporaryauthorization.h"
-#include "polkitqt1-authority.h"
+#include "polkittqt1-temporaryauthorization.h"
+#include "polkittqt1-authority.h"
#include <polkit/polkit.h>
diff --git a/core/polkitqt1-temporaryauthorization.h b/core/polkittqt1-temporaryauthorization.h
index 04deabb2c..8fbbaaa94 100644
--- a/core/polkitqt1-temporaryauthorization.h
+++ b/core/polkittqt1-temporaryauthorization.h
@@ -18,10 +18,10 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef POLKITQT1_TEMPORARYAUTHORIZATION_H
-#define POLKITQT1_TEMPORARYAUTHORIZATION_H
+#ifndef POLKITTQT1_TEMPORARYAUTHORIZATION_H
+#define POLKITTQT1_TEMPORARYAUTHORIZATION_H
-#include "polkitqt1-subject.h"
+#include "polkittqt1-subject.h"
#include <TQtCore/TQObject>
#include <TQtCore/TQDateTime>
@@ -41,14 +41,14 @@ namespace PolkitTQt1
{
/**
- * \class TemporaryAuthorization polkitqt1-temporaryauthorization.h TemporaryAuthorization
+ * \class TemporaryAuthorization polkittqt1-temporaryauthorization.h TemporaryAuthorization
* \author Radek Novacek <rnovacek@redhat.com>
*
* \brief This class represents PolicyKit temporary authorization
*
* This class encapsulates the PolkitTemporaryAuthorization interface.
*/
-class POLKITQT1_EXPORT TemporaryAuthorization
+class POLKITTQT1_EXPORT TemporaryAuthorization
{
public:
typedef TQList< TemporaryAuthorization > List;
@@ -119,6 +119,6 @@ private:
};
}
-Q_DECLARE_METATYPE(PolkitTQt1::TemporaryAuthorization::List)
+TQ_DECLARE_METATYPE(PolkitTQt1::TemporaryAuthorization::List)
#endif // TEMPORARYAUTHORIZATION_H
diff --git a/debian/changelog b/debian/changelog
index 0491bf8d7..8552b3f5b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-polkit-qt-1 (0.103.0-1) unstable; urgency=low
+polkit-tqt-1 (0.103.0-1) unstable; urgency=low
* New upstream release.
- fix annoying crash on shutdown. (Closes: #651815)
@@ -12,14 +12,14 @@ polkit-qt-1 (0.103.0-1) unstable; urgency=low
-- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Wed, 14 Dec 2011 09:15:10 -0500
-polkit-qt-1 (0.99.0-3) unstable; urgency=low
+polkit-tqt-1 (0.99.0-3) unstable; urgency=low
[ Modestas Vainius ]
* Update symbol files.
-- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Thu, 26 May 2011 00:31:01 +0300
-polkit-qt-1 (0.99.0-2) experimental; urgency=low
+polkit-tqt-1 (0.99.0-2) experimental; urgency=low
* Bump Standards-Version to 3.9.2: no changes needed.
* Build library with -fvisibility=hidden -fvisibility-inlines-hidden.
@@ -27,7 +27,7 @@ polkit-qt-1 (0.99.0-2) experimental; urgency=low
-- Modestas Vainius <modax@debian.org> Thu, 28 Apr 2011 11:53:35 +0300
-polkit-qt-1 (0.99.0-1) experimental; urgency=low
+polkit-tqt-1 (0.99.0-1) experimental; urgency=low
* New upstream release.
@@ -37,11 +37,11 @@ polkit-qt-1 (0.99.0-1) experimental; urgency=low
* Bump Standards-Version to 3.9.1: no changes needed.
* Remove dupe "Section" field from debian/control.
* Include verbatim BSD license to debian/copyright.
- * Override lintian libpolkit-qt-1-0: package-name-doesnt-match-sonames.
- * Use more failsafe wildcards in libpolkit-qt-1-0.install.
+ * Override lintian libpolkit-tqt-1-0: package-name-doesnt-match-sonames.
+ * Use more failsafe wildcards in libpolkit-tqt-1-0.install.
* Add myself to Uploaders.
- * SONAME bumped: rename libpolkit-qt-1-0 to libpolkit-qt-1-1.
- * Add symbol file for libpolkit-qt-1-1.
+ * SONAME bumped: rename libpolkit-tqt-1-0 to libpolkit-tqt-1-1.
+ * Add symbol file for libpolkit-tqt-1-1.
* Update debian/copyright.
[ Didier Raboud ]
@@ -52,7 +52,7 @@ polkit-qt-1 (0.99.0-1) experimental; urgency=low
-- Modestas Vainius <modax@debian.org> Mon, 14 Mar 2011 01:03:06 +0200
-polkit-qt-1 (0.95.1-1) unstable; urgency=low
+polkit-tqt-1 (0.95.1-1) unstable; urgency=low
* Initial release. (Closes: #565395)
diff --git a/debian/control b/debian/control
index 6c6625300..581bf1fea 100644
--- a/debian/control
+++ b/debian/control
@@ -1,4 +1,4 @@
-Source: polkit-qt-1
+Source: polkit-tqt-1
Priority: extra
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Uploaders: Fathi Boudra <fabo@debian.org>, Modestas Vainius <modax@debian.org>
@@ -11,14 +11,14 @@ Build-Depends: automoc,
pkg-kde-tools (>= 0.11)
Standards-Version: 3.9.2
Section: libs
-Vcs-Git: git://git.debian.org/pkg-kde/kde-req/polkit-qt-1.git
-Vcs-Browser: http://git.debian.org/?p=pkg-kde/kde-req/polkit-qt-1.git
+Vcs-Git: git://git.debian.org/pkg-kde/kde-req/polkit-tqt-1.git
+Vcs-Browser: http://git.debian.org/?p=pkg-kde/kde-req/polkit-tqt-1.git
-Package: libpolkit-qt-1-dev
+Package: libpolkit-tqt-1-dev
Section: libdevel
Architecture: any
-Depends: libpolkit-qt-1-1 (= ${binary:Version}), libqt4-dev, ${misc:Depends}
-Description: PolicyKit-qt-1 development files
+Depends: libpolkit-tqt-1-1 (= ${binary:Version}), libqt4-dev, ${misc:Depends}
+Description: PolicyKit-tqt-1 development files
PolicyKit is an application-level toolkit for defining and handling the policy
that allows unprivileged processes to speak to privileged processes.
.
@@ -26,15 +26,15 @@ Description: PolicyKit-qt-1 development files
granting access to privileged operations (like calling the HAL Mount() method)
for unprivileged (desktop) applications.
.
- libpolkit-qt-1 provides convenience classes and methods for Qt/KDE
+ libpolkit-tqt-1 provides convenience classes and methods for TQt/TDE
applications that want to use PolicyKit-1.
.
This package contains the development libraries and headers.
-Package: libpolkit-qt-1-1
+Package: libpolkit-tqt-1-1
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
-Description: PolicyKit-qt-1 library
+Description: PolicyKit-tqt-1 library
PolicyKit is an application-level toolkit for defining and handling the policy
that allows unprivileged processes to speak to privileged processes.
.
@@ -42,8 +42,8 @@ Description: PolicyKit-qt-1 library
granting access to privileged operations (like calling the HAL Mount() method)
for unprivileged (desktop) applications.
.
- libpolkit-qt-1 provides convenience classes and methods for Qt/KDE
+ libpolkit-tqt-1 provides convenience classes and methods for TQt/TDE
applications that want to use PolicyKit.
.
This package contains the files necessary for running applications that use
- the libpolkit-qt-1 library.
+ the libpolkit-tqt-1 library.
diff --git a/debian/copyright b/debian/copyright
index 6175225b6..a915b05f7 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -21,12 +21,12 @@ Copyright:
Copyright (C) 2009 Radek Novacek
Copyright (C) 2009 Lukas Tinkl
-Copyright for polkitqt1-export.h file:
+Copyright for polkittqt1-export.h file:
Copyright (C) 2009 Dario Freddi <drf@kde.org>
Copyright (C) 2007 David Faure <faure@kde.org>
-Copyright for polkitqt1-version.h.cmake file:
+Copyright for polkittqt1-version.h.cmake file:
Copyright (C) 2009 Dario Freddi <drf@kde.org>
Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>
diff --git a/debian/libpolkit-qt-1-1.install b/debian/libpolkit-qt-1-1.install
deleted file mode 100644
index 73b68a291..000000000
--- a/debian/libpolkit-qt-1-1.install
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/lib/libpolkit-qt-agent-1.so.1*
-usr/lib/libpolkit-qt-core-1.so.1*
-usr/lib/libpolkit-qt-gui-1.so.1*
diff --git a/debian/libpolkit-qt-1-1.lintian-overrides b/debian/libpolkit-qt-1-1.lintian-overrides
deleted file mode 100644
index 2e2ee4bb1..000000000
--- a/debian/libpolkit-qt-1-1.lintian-overrides
+++ /dev/null
@@ -1 +0,0 @@
-libpolkit-qt-1-1: package-name-doesnt-match-sonames libpolkit-qt-agent-1-1 libpolkit-qt-core-1-1 libpolkit-qt-gui-1-1
diff --git a/debian/libpolkit-qt-1-1.symbols b/debian/libpolkit-qt-1-1.symbols
deleted file mode 100644
index af367261b..000000000
--- a/debian/libpolkit-qt-1-1.symbols
+++ /dev/null
@@ -1,305 +0,0 @@
-# SymbolsHelper-Confirmed: 0.99.0 amd64 armel hurd-i386 i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips powerpc s390 sparc
-libpolkit-qt-agent-1.so.1 libpolkit-qt-1-1 #MINVER#
-* Build-Depends-Package: libpolkit-qt-1-dev
- _ZN9PolkitQt15Agent11AsyncResult12setCompletedEv@Base 0.99.0
- _ZN9PolkitQt15Agent11AsyncResult8setErrorERK7QString@Base 0.99.0
- _ZN9PolkitQt15Agent11AsyncResultC1EP19_GSimpleAsyncResult@Base 0.99.0
- _ZN9PolkitQt15Agent11AsyncResultC2EP19_GSimpleAsyncResult@Base 0.99.0
- _ZN9PolkitQt15Agent11AsyncResultD0Ev@Base 0.99.0
- _ZN9PolkitQt15Agent11AsyncResultD1Ev@Base 0.99.0
- _ZN9PolkitQt15Agent11AsyncResultD2Ev@Base 0.99.0
- _ZN9PolkitQt15Agent7Session11qt_metacallEN11QMetaObject4CallEiPPv@Base 0.99.0
- _ZN9PolkitQt15Agent7Session11qt_metacastEPKc@Base 0.99.0
- _ZN9PolkitQt15Agent7Session11setResponseERK7QString@Base 0.99.0
- _ZN9PolkitQt15Agent7Session16staticMetaObjectE@Base 0.99.0
- _ZN9PolkitQt15Agent7Session6cancelEv@Base 0.99.0
- _ZN9PolkitQt15Agent7Session6resultEv@Base 0.99.0
- _ZN9PolkitQt15Agent7Session7Private7requestEP19_PolkitAgentSessionPciPv@Base 0.99.0
- _ZN9PolkitQt15Agent7Session7Private8showInfoEP19_PolkitAgentSessionPcPv@Base 0.99.0
- _ZN9PolkitQt15Agent7Session7Private9completedEP19_PolkitAgentSessioniPv@Base 0.99.0
- _ZN9PolkitQt15Agent7Session7Private9showErrorEP19_PolkitAgentSessionPcPv@Base 0.99.0
- _ZN9PolkitQt15Agent7Session7PrivateD1Ev@Base 0.99.0
- _ZN9PolkitQt15Agent7Session7PrivateD2Ev@Base 0.99.0
- _ZN9PolkitQt15Agent7Session7requestERK7QStringb@Base 0.99.0
- _ZN9PolkitQt15Agent7Session8initiateEv@Base 0.99.0
- _ZN9PolkitQt15Agent7Session8showInfoERK7QString@Base 0.99.0
- _ZN9PolkitQt15Agent7Session9completedEb@Base 0.99.0
- _ZN9PolkitQt15Agent7Session9showErrorERK7QString@Base 0.99.0
- _ZN9PolkitQt15Agent7SessionC1EP19_PolkitAgentSessionP7QObject@Base 0.99.0
- _ZN9PolkitQt15Agent7SessionC1ERKNS_8IdentityERK7QStringPNS0_11AsyncResultEP7QObject@Base 0.99.0
- _ZN9PolkitQt15Agent7SessionC2EP19_PolkitAgentSessionP7QObject@Base 0.99.0
- _ZN9PolkitQt15Agent7SessionC2ERKNS_8IdentityERK7QStringPNS0_11AsyncResultEP7QObject@Base 0.99.0
- _ZN9PolkitQt15Agent7SessionD0Ev@Base 0.99.0
- _ZN9PolkitQt15Agent7SessionD1Ev@Base 0.99.0
- _ZN9PolkitQt15Agent7SessionD2Ev@Base 0.99.0
- _ZN9PolkitQt15Agent8Listener11qt_metacallEN11QMetaObject4CallEiPPv@Base 0.99.0
- _ZN9PolkitQt15Agent8Listener11qt_metacastEPKc@Base 0.99.0
- _ZN9PolkitQt15Agent8Listener16registerListenerERKNS_7SubjectERK7QString@Base 0.99.0
- _ZN9PolkitQt15Agent8Listener16staticMetaObjectE@Base 0.99.0
- _ZN9PolkitQt15Agent8Listener8listenerEv@Base 0.99.0
- _ZN9PolkitQt15Agent8ListenerC1EP20_PolkitAgentListenerP7QObject@Base 0.99.0
- _ZN9PolkitQt15Agent8ListenerC1EP7QObject@Base 0.99.0
- _ZN9PolkitQt15Agent8ListenerC2EP20_PolkitAgentListenerP7QObject@Base 0.99.0
- _ZN9PolkitQt15Agent8ListenerC2EP7QObject@Base 0.99.0
- _ZN9PolkitQt15Agent8ListenerD0Ev@Base 0.99.0
- _ZN9PolkitQt15Agent8ListenerD1Ev@Base 0.99.0
- _ZN9PolkitQt15Agent8ListenerD2Ev@Base 0.99.0
- _ZNK9PolkitQt15Agent7Session10metaObjectEv@Base 0.99.0
- _ZNK9PolkitQt15Agent8Listener10metaObjectEv@Base 0.99.0
- _ZTIN9PolkitQt15Agent11AsyncResultE@Base 0.99.0
- _ZTIN9PolkitQt15Agent7SessionE@Base 0.99.0
- _ZTIN9PolkitQt15Agent8ListenerE@Base 0.99.0
- _ZTSN9PolkitQt15Agent11AsyncResultE@Base 0.99.0
- _ZTSN9PolkitQt15Agent7SessionE@Base 0.99.0
- _ZTSN9PolkitQt15Agent8ListenerE@Base 0.99.0
- _ZTVN9PolkitQt15Agent11AsyncResultE@Base 0.99.0
- _ZTVN9PolkitQt15Agent7SessionE@Base 0.99.0
- _ZTVN9PolkitQt15Agent8ListenerE@Base 0.99.0
-libpolkit-qt-core-1.so.1 libpolkit-qt-1-1 #MINVER#
-* Build-Depends-Package: libpolkit-qt-1-dev
- _ZN9PolkitQt116UnixUserIdentity6setUidEj@Base 0.99.0
- _ZN9PolkitQt116UnixUserIdentityC1EP15_PolkitUnixUser@Base 0.99.0
- _ZN9PolkitQt116UnixUserIdentityC1ERK7QString@Base 0.99.0
- _ZN9PolkitQt116UnixUserIdentityC1Ej@Base 0.99.0
- _ZN9PolkitQt116UnixUserIdentityC1Ev@Base 0.99.0
- _ZN9PolkitQt116UnixUserIdentityC2EP15_PolkitUnixUser@Base 0.99.0
- _ZN9PolkitQt116UnixUserIdentityC2ERK7QString@Base 0.99.0
- _ZN9PolkitQt116UnixUserIdentityC2Ej@Base 0.99.0
- _ZN9PolkitQt116UnixUserIdentityC2Ev@Base 0.99.0
- _ZN9PolkitQt117ActionDescriptionC1EP24_PolkitActionDescription@Base 0.99.0
- _ZN9PolkitQt117ActionDescriptionC1ERKS0_@Base 0.99.0
- _ZN9PolkitQt117ActionDescriptionC1Ev@Base 0.99.0
- _ZN9PolkitQt117ActionDescriptionC2EP24_PolkitActionDescription@Base 0.99.0
- _ZN9PolkitQt117ActionDescriptionC2ERKS0_@Base 0.99.0
- _ZN9PolkitQt117ActionDescriptionC2Ev@Base 0.99.0
- _ZN9PolkitQt117ActionDescriptionD1Ev@Base 0.99.0
- _ZN9PolkitQt117ActionDescriptionD2Ev@Base 0.99.0
- _ZN9PolkitQt117ActionDescriptionaSERKS0_@Base 0.99.0
- _ZN9PolkitQt117UnixGroupIdentity6setGidEj@Base 0.99.0
- _ZN9PolkitQt117UnixGroupIdentityC1EP16_PolkitUnixGroup@Base 0.99.0
- _ZN9PolkitQt117UnixGroupIdentityC1ERK7QString@Base 0.99.0
- _ZN9PolkitQt117UnixGroupIdentityC1Ej@Base 0.99.0
- _ZN9PolkitQt117UnixGroupIdentityC1Ev@Base 0.99.0
- _ZN9PolkitQt117UnixGroupIdentityC2EP16_PolkitUnixGroup@Base 0.99.0
- _ZN9PolkitQt117UnixGroupIdentityC2ERK7QString@Base 0.99.0
- _ZN9PolkitQt117UnixGroupIdentityC2Ej@Base 0.99.0
- _ZN9PolkitQt117UnixGroupIdentityC2Ev@Base 0.99.0
- _ZN9PolkitQt118UnixProcessSubject6setPidEx@Base 0.99.0
- _ZN9PolkitQt118UnixProcessSubjectC1EP18_PolkitUnixProcess@Base 0.99.0
- _ZN9PolkitQt118UnixProcessSubjectC1Ex@Base 0.99.0
- _ZN9PolkitQt118UnixProcessSubjectC1Exy@Base 0.99.0
- _ZN9PolkitQt118UnixProcessSubjectC2EP18_PolkitUnixProcess@Base 0.99.0
- _ZN9PolkitQt118UnixProcessSubjectC2Ex@Base 0.99.0
- _ZN9PolkitQt118UnixProcessSubjectC2Exy@Base 0.99.0
- _ZN9PolkitQt118UnixSessionSubject12setSessionIdERK7QString@Base 0.99.0
- _ZN9PolkitQt118UnixSessionSubjectC1EP20_PolkitSystemBusName@Base 0.99.0
- _ZN9PolkitQt118UnixSessionSubjectC1ERK7QString@Base 0.99.0
- _ZN9PolkitQt118UnixSessionSubjectC1Ex@Base 0.99.0
- _ZN9PolkitQt118UnixSessionSubjectC2EP20_PolkitSystemBusName@Base 0.99.0
- _ZN9PolkitQt118UnixSessionSubjectC2ERK7QString@Base 0.99.0
- _ZN9PolkitQt118UnixSessionSubjectC2Ex@Base 0.99.0
- _ZN9PolkitQt120SystemBusNameSubject7setNameERK7QString@Base 0.99.0
- _ZN9PolkitQt120SystemBusNameSubjectC1EP20_PolkitSystemBusName@Base 0.99.0
- _ZN9PolkitQt120SystemBusNameSubjectC1ERK7QString@Base 0.99.0
- _ZN9PolkitQt120SystemBusNameSubjectC2EP20_PolkitSystemBusName@Base 0.99.0
- _ZN9PolkitQt120SystemBusNameSubjectC2ERK7QString@Base 0.99.0
- _ZN9PolkitQt122TemporaryAuthorization6revokeEv@Base 0.99.0
- _ZN9PolkitQt122TemporaryAuthorizationC1EP29_PolkitTemporaryAuthorization@Base 0.99.0
- _ZN9PolkitQt122TemporaryAuthorizationC1ERKS0_@Base 0.99.0
- _ZN9PolkitQt122TemporaryAuthorizationC1Ev@Base 0.99.0
- _ZN9PolkitQt122TemporaryAuthorizationC2EP29_PolkitTemporaryAuthorization@Base 0.99.0
- _ZN9PolkitQt122TemporaryAuthorizationC2ERKS0_@Base 0.99.0
- _ZN9PolkitQt122TemporaryAuthorizationC2Ev@Base 0.99.0
- _ZN9PolkitQt122TemporaryAuthorizationD1Ev@Base 0.99.0
- _ZN9PolkitQt122TemporaryAuthorizationD2Ev@Base 0.99.0
- _ZN9PolkitQt122TemporaryAuthorizationaSERKS0_@Base 0.99.0
- _ZN9PolkitQt17Details6insertERK7QStringS3_@Base 0.99.0
- _ZN9PolkitQt17DetailsC1EP14_PolkitDetails@Base 0.99.0
- _ZN9PolkitQt17DetailsC1Ev@Base 0.99.0
- _ZN9PolkitQt17DetailsC2EP14_PolkitDetails@Base 0.99.0
- _ZN9PolkitQt17DetailsC2Ev@Base 0.99.0
- _ZN9PolkitQt17DetailsD1Ev@Base 0.99.0
- _ZN9PolkitQt17DetailsD2Ev@Base 0.99.0
- _ZN9PolkitQt17DetailsaSERKS0_@Base 0.99.0
- _ZN9PolkitQt17Subject10fromStringERK7QString@Base 0.99.0
- _ZN9PolkitQt17Subject10setSubjectEP14_PolkitSubject@Base 0.99.0
- _ZN9PolkitQt17SubjectC1EP14_PolkitSubject@Base 0.99.0
- _ZN9PolkitQt17SubjectC1ERKS0_@Base 0.99.0
- _ZN9PolkitQt17SubjectC1Ev@Base 0.99.0
- _ZN9PolkitQt17SubjectC2EP14_PolkitSubject@Base 0.99.0
- _ZN9PolkitQt17SubjectC2ERKS0_@Base 0.99.0
- _ZN9PolkitQt17SubjectC2Ev@Base 0.99.0
- _ZN9PolkitQt17SubjectD1Ev@Base 0.99.0
- _ZN9PolkitQt17SubjectD2Ev@Base 0.99.0
- _ZN9PolkitQt17SubjectaSERKS0_@Base 0.99.0
- _ZN9PolkitQt18Identity10fromStringERK7QString@Base 0.99.0
- _ZN9PolkitQt18Identity11setIdentityEP15_PolkitIdentity@Base 0.99.0
- _ZN9PolkitQt18Identity18toUnixUserIdentityEv@Base 0.99.0
- _ZN9PolkitQt18Identity19toUnixGroupIdentityEv@Base 0.99.0
- _ZN9PolkitQt18IdentityC1EP15_PolkitIdentity@Base 0.99.0
- _ZN9PolkitQt18IdentityC1ERKS0_@Base 0.99.0
- _ZN9PolkitQt18IdentityC1Ev@Base 0.99.0
- _ZN9PolkitQt18IdentityC2EP15_PolkitIdentity@Base 0.99.0
- _ZN9PolkitQt18IdentityC2ERKS0_@Base 0.99.0
- _ZN9PolkitQt18IdentityC2Ev@Base 0.99.0
- _ZN9PolkitQt18IdentityD1Ev@Base 0.99.0
- _ZN9PolkitQt18IdentityD2Ev@Base 0.99.0
- _ZN9PolkitQt18IdentityaSERKS0_@Base 0.99.0
- _ZN9PolkitQt19Authority10clearErrorEv@Base 0.99.0
- _ZN9PolkitQt19Authority11qt_metacallEN11QMetaObject4CallEiPPv@Base 0.99.0
- _ZN9PolkitQt19Authority11qt_metacastEPKc@Base 0.99.0
- _ZN9PolkitQt19Authority13configChangedEv@Base 0.99.0
- _ZN9PolkitQt19Authority16enumerateActionsEv@Base 0.99.0
- _ZN9PolkitQt19Authority16staticMetaObjectE@Base 0.99.0
- _ZN9PolkitQt19Authority18checkAuthorizationERK7QStringRKNS_7SubjectE6QFlagsINS0_17AuthorizationFlagEE@Base 0.99.0
- _ZN9PolkitQt19Authority19consoleKitDBChangedEv@Base 0.99.0
- _ZN9PolkitQt19Authority20enumerateActionsSyncEv@Base 0.99.0
- _ZN9PolkitQt19Authority22checkAuthorizationSyncERK7QStringRKNS_7SubjectE6QFlagsINS0_17AuthorizationFlagEE@Base 0.99.0
- _ZN9PolkitQt19Authority22enumerateActionsCancelEv@Base 0.99.0
- _ZN9PolkitQt19Authority24checkAuthorizationCancelEv@Base 0.99.0
- _ZN9PolkitQt19Authority24enumerateActionsFinishedE5QListINS_17ActionDescriptionEE@Base 0.99.0
- _ZN9PolkitQt19Authority26checkAuthorizationFinishedENS0_6ResultE@Base 0.99.0
- _ZN9PolkitQt19Authority27authenticationAgentResponseERK7QStringRKNS_8IdentityE@Base 0.99.0
- _ZN9PolkitQt19Authority27registerAuthenticationAgentERKNS_7SubjectERK7QStringS6_@Base 0.99.0
- _ZN9PolkitQt19Authority28revokeTemporaryAuthorizationERK7QString@Base 0.99.0
- _ZN9PolkitQt19Authority29revokeTemporaryAuthorizationsERKNS_7SubjectE@Base 0.99.0
- _ZN9PolkitQt19Authority29unregisterAuthenticationAgentERKNS_7SubjectERK7QString@Base 0.99.0
- _ZN9PolkitQt19Authority31authenticationAgentResponseSyncERK7QStringRKNS_8IdentityE@Base 0.99.0
- _ZN9PolkitQt19Authority31registerAuthenticationAgentSyncERKNS_7SubjectERK7QStringS6_@Base 0.99.0
- _ZN9PolkitQt19Authority32revokeTemporaryAuthorizationSyncERK7QString@Base 0.99.0
- _ZN9PolkitQt19Authority33authenticationAgentResponseCancelEv@Base 0.99.0
- _ZN9PolkitQt19Authority33registerAuthenticationAgentCancelEv@Base 0.99.0
- _ZN9PolkitQt19Authority33revokeTemporaryAuthorizationsSyncERKNS_7SubjectE@Base 0.99.0
- _ZN9PolkitQt19Authority33unregisterAuthenticationAgentSyncERKNS_7SubjectERK7QString@Base 0.99.0
- _ZN9PolkitQt19Authority34revokeTemporaryAuthorizationCancelEv@Base 0.99.0
- _ZN9PolkitQt19Authority35authenticationAgentResponseFinishedEb@Base 0.99.0
- _ZN9PolkitQt19Authority35registerAuthenticationAgentFinishedEb@Base 0.99.0
- _ZN9PolkitQt19Authority35revokeTemporaryAuthorizationsCancelEv@Base 0.99.0
- _ZN9PolkitQt19Authority35unregisterAuthenticationAgentCancelEv@Base 0.99.0
- _ZN9PolkitQt19Authority36enumerateTemporaryAuthorizationsSyncERKNS_7SubjectE@Base 0.99.0
- _ZN9PolkitQt19Authority36revokeTemporaryAuthorizationFinishedEb@Base 0.99.0
- _ZN9PolkitQt19Authority37revokeTemporaryAuthorizationsFinishedEb@Base 0.99.0
- _ZN9PolkitQt19Authority37unregisterAuthenticationAgentFinishedEb@Base 0.99.0
- _ZN9PolkitQt19Authority38enumerateTemporaryAuthorizationsCancelEv@Base 0.99.0
- _ZN9PolkitQt19Authority40enumerateTemporaryAuthorizationsFinishedE5QListINS_22TemporaryAuthorizationEE@Base 0.99.0
- _ZN9PolkitQt19Authority7Private10dbusFilterERK12QDBusMessage@Base 0.99.0
- _ZN9PolkitQt19Authority7Private13dbusSignalAddERK7QStringS4_S4_S4_@Base 0.99.0
- _ZN9PolkitQt19Authority7Private17pk_config_changedEv@Base 0.99.0
- _ZN9PolkitQt19Authority7Private18seatSignalsConnectERK7QString@Base 0.99.0
- _ZN9PolkitQt19Authority7Private24enumerateActionsCallbackEP8_GObjectP13_GAsyncResultPv@Base 0.99.0
- _ZN9PolkitQt19Authority7Private26checkAuthorizationCallbackEP8_GObjectP13_GAsyncResultPv@Base 0.99.0
- _ZN9PolkitQt19Authority7Private35authenticationAgentResponseCallbackEP8_GObjectP13_GAsyncResultPv@Base 0.99.0
- _ZN9PolkitQt19Authority7Private35registerAuthenticationAgentCallbackEP8_GObjectP13_GAsyncResultPv@Base 0.99.0
- _ZN9PolkitQt19Authority7Private36revokeTemporaryAuthorizationCallbackEP8_GObjectP13_GAsyncResultPv@Base 0.99.0
- _ZN9PolkitQt19Authority7Private37revokeTemporaryAuthorizationsCallbackEP8_GObjectP13_GAsyncResultPv@Base 0.99.0
- _ZN9PolkitQt19Authority7Private37unregisterAuthenticationAgentCallbackEP8_GObjectP13_GAsyncResultPv@Base 0.99.0
- _ZN9PolkitQt19Authority7Private40enumerateTemporaryAuthorizationsCallbackEP8_GObjectP13_GAsyncResultPv@Base 0.99.0
- _ZN9PolkitQt19Authority7Private4initEv@Base 0.99.0
- _ZN9PolkitQt19Authority7Private8setErrorENS0_9ErrorCodeERK7QStringb@Base 0.99.0
- _ZN9PolkitQt19Authority7PrivateD1Ev@Base 0.99.0
- _ZN9PolkitQt19Authority7PrivateD2Ev@Base 0.99.0
- _ZN9PolkitQt19Authority8instanceEP16_PolkitAuthority@Base 0.99.0
- _ZN9PolkitQt19AuthorityC1EP16_PolkitAuthorityP7QObject@Base 0.99.0
- _ZN9PolkitQt19AuthorityC2EP16_PolkitAuthorityP7QObject@Base 0.99.0
- _ZN9PolkitQt19AuthorityD0Ev@Base 0.99.0
- _ZN9PolkitQt19AuthorityD1Ev@Base 0.99.0
- _ZN9PolkitQt19AuthorityD2Ev@Base 0.99.0
- _ZNK9PolkitQt116UnixUserIdentity3uidEv@Base 0.99.0
- _ZNK9PolkitQt117ActionDescription10vendorNameEv@Base 0.99.0
- _ZNK9PolkitQt117ActionDescription11descriptionEv@Base 0.99.0
- _ZNK9PolkitQt117ActionDescription11implicitAnyEv@Base 0.99.0
- _ZNK9PolkitQt117ActionDescription14implicitActiveEv@Base 0.99.0
- _ZNK9PolkitQt117ActionDescription16implicitInactiveEv@Base 0.99.0
- _ZNK9PolkitQt117ActionDescription7messageEv@Base 0.99.0
- _ZNK9PolkitQt117ActionDescription8actionIdEv@Base 0.99.0
- _ZNK9PolkitQt117ActionDescription8iconNameEv@Base 0.99.0
- _ZNK9PolkitQt117ActionDescription9vendorUrlEv@Base 0.99.0
- _ZNK9PolkitQt117UnixGroupIdentity3gidEv@Base 0.99.0
- _ZNK9PolkitQt118UnixProcessSubject3pidEv@Base 0.99.0
- _ZNK9PolkitQt118UnixProcessSubject9startTimeEv@Base 0.99.0
- _ZNK9PolkitQt118UnixSessionSubject9sessionIdEv@Base 0.99.0
- _ZNK9PolkitQt120SystemBusNameSubject4nameEv@Base 0.99.0
- _ZNK9PolkitQt122TemporaryAuthorization10obtainedAtEv@Base 0.99.0
- _ZNK9PolkitQt122TemporaryAuthorization14expirationTimeEv@Base 0.99.0
- _ZNK9PolkitQt122TemporaryAuthorization2idEv@Base 0.99.0
- _ZNK9PolkitQt122TemporaryAuthorization7subjectEv@Base 0.99.0
- _ZNK9PolkitQt122TemporaryAuthorization8actionIdEv@Base 0.99.0
- _ZNK9PolkitQt17Details4keysEv@Base 0.99.0
- _ZNK9PolkitQt17Details6lookupERK7QString@Base 0.99.0
- _ZNK9PolkitQt17Subject7isValidEv@Base 0.99.0
- _ZNK9PolkitQt17Subject7subjectEv@Base 0.99.0
- _ZNK9PolkitQt17Subject8toStringEv@Base 0.99.0
- _ZNK9PolkitQt18Identity7isValidEv@Base 0.99.0
- _ZNK9PolkitQt18Identity8identityEv@Base 0.99.0
- _ZNK9PolkitQt18Identity8toStringEv@Base 0.99.0
- _ZNK9PolkitQt19Authority10metaObjectEv@Base 0.99.0
- _ZNK9PolkitQt19Authority12errorDetailsEv@Base 0.99.0
- _ZNK9PolkitQt19Authority15polkitAuthorityEv@Base 0.99.0
- _ZNK9PolkitQt19Authority8hasErrorEv@Base 0.99.0
- _ZNK9PolkitQt19Authority9lastErrorEv@Base 0.99.0
- _ZTIN9PolkitQt117ActionDescription4DataE@Base 0.99.0
- _ZTIN9PolkitQt19AuthorityE@Base 0.99.0
- _ZTSN9PolkitQt117ActionDescription4DataE@Base 0.99.0
- _ZTSN9PolkitQt19AuthorityE@Base 0.99.0
- _ZTVN9PolkitQt117ActionDescription4DataE@Base 0.99.0
- _ZTVN9PolkitQt19AuthorityE@Base 0.99.0
-libpolkit-qt-gui-1.so.1 libpolkit-qt-1-1 #MINVER#
-* Build-Depends-Package: libpolkit-qt-1-dev
- _ZN9PolkitQt13Gui12ActionButton11qt_metacallEN11QMetaObject4CallEiPPv@Base 0.99.0
- _ZN9PolkitQt13Gui12ActionButton11qt_metacastEPKc@Base 0.99.0
- _ZN9PolkitQt13Gui12ActionButton16staticMetaObjectE@Base 0.99.0
- _ZN9PolkitQt13Gui12ActionButton7clickedEP15QAbstractButtonb@Base 0.99.0
- _ZN9PolkitQt13Gui12ActionButton8activateEv@Base 0.99.0
- _ZN9PolkitQt13Gui12ActionButton9setButtonEP15QAbstractButton@Base 0.99.0
- _ZN9PolkitQt13Gui12ActionButtonC1EP15QAbstractButtonRK7QStringP7QObject@Base 0.99.0
- _ZN9PolkitQt13Gui12ActionButtonC1ERNS0_19ActionButtonPrivateERK7QStringP7QObject@Base 0.99.0
- _ZN9PolkitQt13Gui12ActionButtonC2EP15QAbstractButtonRK7QStringP7QObject@Base 0.99.0
- _ZN9PolkitQt13Gui12ActionButtonC2ERNS0_19ActionButtonPrivateERK7QStringP7QObject@Base 0.99.0
- _ZN9PolkitQt13Gui12ActionButtonD0Ev@Base 0.99.0
- _ZN9PolkitQt13Gui12ActionButtonD1Ev@Base 0.99.0
- _ZN9PolkitQt13Gui12ActionButtonD2Ev@Base 0.99.0
- _ZN9PolkitQt13Gui6Action10authorizedEv@Base 0.99.0
- _ZN9PolkitQt13Gui6Action10setCheckedEb@Base 0.99.0
- _ZN9PolkitQt13Gui6Action10setEnabledEb6QFlagsINS1_5StateEE@Base 0.99.0
- _ZN9PolkitQt13Gui6Action10setToolTipERK7QString6QFlagsINS1_5StateEE@Base 0.99.0
- _ZN9PolkitQt13Gui6Action10setVisibleEb6QFlagsINS1_5StateEE@Base 0.99.0
- _ZN9PolkitQt13Gui6Action11dataChangedEv@Base 0.99.0
- _ZN9PolkitQt13Gui6Action11qt_metacallEN11QMetaObject4CallEiPPv@Base 0.99.0
- _ZN9PolkitQt13Gui6Action11qt_metacastEPKc@Base 0.99.0
- _ZN9PolkitQt13Gui6Action12setTargetPIDEx@Base 0.99.0
- _ZN9PolkitQt13Gui6Action12setWhatsThisERK7QString6QFlagsINS1_5StateEE@Base 0.99.0
- _ZN9PolkitQt13Gui6Action15setPolkitActionERK7QString@Base 0.99.0
- _ZN9PolkitQt13Gui6Action16staticMetaObjectE@Base 0.99.0
- _ZN9PolkitQt13Gui6Action6revokeEv@Base 0.99.0
- _ZN9PolkitQt13Gui6Action7Private12updateActionEv@Base 0.99.0
- _ZN9PolkitQt13Gui6Action7Private13configChangedEv@Base 0.99.0
- _ZN9PolkitQt13Gui6Action7Private15computePkResultEv@Base 0.99.0
- _ZN9PolkitQt13Gui6Action7PrivateC1EPS1_@Base 0.99.0
- _ZN9PolkitQt13Gui6Action7PrivateC2EPS1_@Base 0.99.0
- _ZN9PolkitQt13Gui6Action7setIconERK5QIcon6QFlagsINS1_5StateEE@Base 0.99.0
- _ZN9PolkitQt13Gui6Action7setTextERK7QString6QFlagsINS1_5StateEE@Base 0.99.0
- _ZN9PolkitQt13Gui6Action8activateEv@Base 0.99.0
- _ZN9PolkitQt13Gui6ActionC1ERK7QStringP7QObject@Base 0.99.0
- _ZN9PolkitQt13Gui6ActionC2ERK7QStringP7QObject@Base 0.99.0
- _ZN9PolkitQt13Gui6ActionD0Ev@Base 0.99.0
- _ZN9PolkitQt13Gui6ActionD1Ev@Base 0.99.0
- _ZN9PolkitQt13Gui6ActionD2Ev@Base 0.99.0
- _ZNK9PolkitQt13Gui12ActionButton10metaObjectEv@Base 0.99.0
- _ZNK9PolkitQt13Gui12ActionButton6buttonEv@Base 0.99.0
- _ZNK9PolkitQt13Gui6Action10metaObjectEv@Base 0.99.0
- _ZNK9PolkitQt13Gui6Action2isERK7QString@Base 0.99.0
- _ZNK9PolkitQt13Gui6Action4iconENS1_5StateE@Base 0.99.0
- _ZNK9PolkitQt13Gui6Action4textENS1_5StateE@Base 0.99.0
- _ZNK9PolkitQt13Gui6Action7toolTipENS1_5StateE@Base 0.99.0
- _ZNK9PolkitQt13Gui6Action8actionIdEv@Base 0.99.0
- _ZNK9PolkitQt13Gui6Action9isAllowedEv@Base 0.99.0
- _ZNK9PolkitQt13Gui6Action9isEnabledENS1_5StateE@Base 0.99.0
- _ZNK9PolkitQt13Gui6Action9isVisibleENS1_5StateE@Base 0.99.0
- _ZNK9PolkitQt13Gui6Action9targetPIDEv@Base 0.99.0
- _ZNK9PolkitQt13Gui6Action9whatsThisENS1_5StateE@Base 0.99.0
- _ZTIN9PolkitQt13Gui12ActionButtonE@Base 0.99.0
- _ZTIN9PolkitQt13Gui6ActionE@Base 0.99.0
- _ZTSN9PolkitQt13Gui12ActionButtonE@Base 0.99.0
- _ZTSN9PolkitQt13Gui6ActionE@Base 0.99.0
- _ZTVN9PolkitQt13Gui12ActionButtonE@Base 0.99.0
- _ZTVN9PolkitQt13Gui6ActionE@Base 0.99.0
diff --git a/debian/libpolkit-qt-1-dev.install b/debian/libpolkit-qt-1-dev.install
deleted file mode 100644
index 337a7a0a2..000000000
--- a/debian/libpolkit-qt-1-dev.install
+++ /dev/null
@@ -1,33 +0,0 @@
-usr/include/polkit-qt-1/PolkitQt1/ActionDescription
-usr/include/polkit-qt-1/PolkitQt1/Agent/Listener
-usr/include/polkit-qt-1/PolkitQt1/Agent/Session
-usr/include/polkit-qt-1/PolkitQt1/Authority
-usr/include/polkit-qt-1/PolkitQt1/Details
-usr/include/polkit-qt-1/PolkitQt1/Gui/Action
-usr/include/polkit-qt-1/PolkitQt1/Gui/ActionButton
-usr/include/polkit-qt-1/PolkitQt1/Gui/ActionButtons
-usr/include/polkit-qt-1/PolkitQt1/Identity
-usr/include/polkit-qt-1/PolkitQt1/Subject
-usr/include/polkit-qt-1/PolkitQt1/TemporaryAuthorization
-usr/include/polkit-qt-1/polkitqt1-actiondescription.h
-usr/include/polkit-qt-1/polkitqt1-agent-listener.h
-usr/include/polkit-qt-1/polkitqt1-agent-session.h
-usr/include/polkit-qt-1/polkitqt1-authority.h
-usr/include/polkit-qt-1/polkitqt1-details.h
-usr/include/polkit-qt-1/polkitqt1-export.h
-usr/include/polkit-qt-1/polkitqt1-gui-action.h
-usr/include/polkit-qt-1/polkitqt1-gui-actionbutton.h
-usr/include/polkit-qt-1/polkitqt1-gui-actionbuttons.h
-usr/include/polkit-qt-1/polkitqt1-identity.h
-usr/include/polkit-qt-1/polkitqt1-subject.h
-usr/include/polkit-qt-1/polkitqt1-temporaryauthorization.h
-usr/include/polkit-qt-1/polkitqt1-version.h
-usr/lib/cmake/PolkitQt-1/PolkitQt-1Config.cmake
-usr/lib/cmake/PolkitQt-1/PolkitQt-1ConfigVersion.cmake
-usr/lib/libpolkit-qt-agent-1.so
-usr/lib/libpolkit-qt-core-1.so
-usr/lib/libpolkit-qt-gui-1.so
-usr/lib/pkgconfig/polkit-qt-1.pc
-usr/lib/pkgconfig/polkit-qt-agent-1.pc
-usr/lib/pkgconfig/polkit-qt-core-1.pc
-usr/lib/pkgconfig/polkit-qt-gui-1.pc
diff --git a/debian/libpolkit-tqt-1-1.install b/debian/libpolkit-tqt-1-1.install
new file mode 100644
index 000000000..661ce7afe
--- /dev/null
+++ b/debian/libpolkit-tqt-1-1.install
@@ -0,0 +1,3 @@
+usr/lib/libpolkit-tqt-agent-1.so.1*
+usr/lib/libpolkit-tqt-core-1.so.1*
+usr/lib/libpolkit-tqt-gui-1.so.1*
diff --git a/debian/libpolkit-tqt-1-1.lintian-overrides b/debian/libpolkit-tqt-1-1.lintian-overrides
new file mode 100644
index 000000000..0a9d86566
--- /dev/null
+++ b/debian/libpolkit-tqt-1-1.lintian-overrides
@@ -0,0 +1 @@
+libpolkit-tqt-1-1: package-name-doesnt-match-sonames libpolkit-tqt-agent-1-1 libpolkit-tqt-core-1-1 libpolkit-tqt-gui-1-1
diff --git a/debian/libpolkit-tqt-1-dev.install b/debian/libpolkit-tqt-1-dev.install
new file mode 100644
index 000000000..a25b331f7
--- /dev/null
+++ b/debian/libpolkit-tqt-1-dev.install
@@ -0,0 +1,33 @@
+usr/include/polkit-tqt-1/PolkitTQt1/ActionDescription
+usr/include/polkit-tqt-1/PolkitTQt1/Agent/Listener
+usr/include/polkit-tqt-1/PolkitTQt1/Agent/Session
+usr/include/polkit-tqt-1/PolkitTQt1/Authority
+usr/include/polkit-tqt-1/PolkitTQt1/Details
+usr/include/polkit-tqt-1/PolkitTQt1/Gui/Action
+usr/include/polkit-tqt-1/PolkitTQt1/Gui/ActionButton
+usr/include/polkit-tqt-1/PolkitTQt1/Gui/ActionButtons
+usr/include/polkit-tqt-1/PolkitTQt1/Identity
+usr/include/polkit-tqt-1/PolkitTQt1/Subject
+usr/include/polkit-tqt-1/PolkitTQt1/TemporaryAuthorization
+usr/include/polkit-tqt-1/polkittqt1-actiondescription.h
+usr/include/polkit-tqt-1/polkittqt1-agent-listener.h
+usr/include/polkit-tqt-1/polkittqt1-agent-session.h
+usr/include/polkit-tqt-1/polkittqt1-authority.h
+usr/include/polkit-tqt-1/polkittqt1-details.h
+usr/include/polkit-tqt-1/polkittqt1-export.h
+usr/include/polkit-tqt-1/polkittqt1-gui-action.h
+usr/include/polkit-tqt-1/polkittqt1-gui-actionbutton.h
+usr/include/polkit-tqt-1/polkittqt1-gui-actionbuttons.h
+usr/include/polkit-tqt-1/polkittqt1-identity.h
+usr/include/polkit-tqt-1/polkittqt1-subject.h
+usr/include/polkit-tqt-1/polkittqt1-temporaryauthorization.h
+usr/include/polkit-tqt-1/polkittqt1-version.h
+usr/lib/cmake/PolkitTQt-1/PolkitTQt-1Config.cmake
+usr/lib/cmake/PolkitTQt-1/PolkitTQt-1ConfigVersion.cmake
+usr/lib/libpolkit-tqt-agent-1.so
+usr/lib/libpolkit-tqt-core-1.so
+usr/lib/libpolkit-tqt-gui-1.so
+usr/lib/pkgconfig/polkit-tqt-1.pc
+usr/lib/pkgconfig/polkit-tqt-agent-1.pc
+usr/lib/pkgconfig/polkit-tqt-core-1.pc
+usr/lib/pkgconfig/polkit-tqt-gui-1.pc
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" />
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index 44abb7582..ca420fb79 100644
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -3,24 +3,24 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
)
-set(polkit_qt_gui_SRCS
- polkitqt1-gui-action.cpp
- polkitqt1-gui-actionbutton.cpp
- polkitqt1-gui-actionbuttons.cpp
+set(polkit_tqt_gui_SRCS
+ polkittqt1-gui-action.cpp
+ polkittqt1-gui-actionbutton.cpp
+ polkittqt1-gui-actionbuttons.cpp
)
-automoc4_add_library(polkit-qt-gui-1 SHARED ${polkit_qt_gui_SRCS})
+automoc4_add_library(polkit-tqt-gui-1 SHARED ${polkit_tqt_gui_SRCS})
-target_link_libraries(polkit-qt-gui-1
- ${QT_QTCORE_LIBRARY}
- ${QT_QTGUI_LIBRARY}
- ${QT_QTDBUS_LIBRARY}
+target_link_libraries(polkit-tqt-gui-1
+ ${TQT_TQTCORE_LIBRARY}
+ ${TQT_TQTGUI_LIBRARY}
+ ${TQT_TQTDBUS_LIBRARY}
${POLKIT_LIBRARIES}
- polkit-qt-core-1
+ polkit-tqt-core-1
)
-set_target_properties(polkit-qt-gui-1 PROPERTIES VERSION ${POLKITQT-1_LIBRARY_VERSION}
- SOVERSION ${POLKITQT-1_ABI_VERSION}
- DEFINE_SYMBOL MAKE_POLKITQT1_LIB)
+set_target_properties(polkit-tqt-gui-1 PROPERTIES VERSION ${POLKITTQT-1_LIBRARY_VERSION}
+ SOVERSION ${POLKITTQT-1_ABI_VERSION}
+ DEFINE_SYMBOL MAKE_POLKITTQT1_LIB)
-install(TARGETS polkit-qt-gui-1 ${INSTALL_TARGETS_DEFAULT_ARGS})
+install(TARGETS polkit-tqt-gui-1 ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/gui/polkitqt1-gui-action.cpp b/gui/polkittqt1-gui-action.cpp
index d591c7b52..31f01cfb7 100644
--- a/gui/polkitqt1-gui-action.cpp
+++ b/gui/polkittqt1-gui-action.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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* Copyright (C) 2009 Dario Freddi <drf@kde.org>
* Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com>
@@ -20,9 +20,9 @@
* Boston, MA 02110-1301, USA.
*/
-#include "polkitqt1-gui-action.h"
-#include "polkitqt1-authority.h"
-#include "polkitqt1-subject.h"
+#include "polkittqt1-gui-action.h"
+#include "polkittqt1-authority.h"
+#include "polkittqt1-subject.h"
#include <TQtCore/TQCoreApplication>
@@ -44,7 +44,7 @@ public:
TQString actionId;
Authority::Result pkResult;
- qint64 targetPID;
+ tqint64 targetPID;
void updateAction();
bool computePkResult();
@@ -128,7 +128,7 @@ bool Action::activate()
case Authority::Yes:
case Authority::Challenge:
// just Q_EMIT the 'activated' signal
- Q_EMIT authorized();
+ TQ_EMIT authorized();
return true;
break;
default:
@@ -141,7 +141,7 @@ bool Action::activate()
* Hence, they probably have a good reason for doing
* this so do let the 'activate' signal propagate..
*/
- Q_EMIT authorized();
+ TQ_EMIT authorized();
return true;
}
break;
@@ -207,7 +207,7 @@ void Action::Private::updateAction()
}
break;
}
- Q_EMIT parent->dataChanged();
+ TQ_EMIT parent->dataChanged();
}
void Action::Private::configChanged()
@@ -232,7 +232,7 @@ bool Action::Private::computePkResult()
return old_result != pkResult;
}
-qint64 Action::targetPID() const
+tqint64 Action::targetPID() const
{
if (d->targetPID != 0) {
return d->targetPID;
@@ -241,7 +241,7 @@ qint64 Action::targetPID() const
}
}
-void Action::setTargetPID(qint64 pid)
+void Action::setTargetPID(tqint64 pid)
{
d->targetPID = pid;
@@ -512,4 +512,4 @@ TQString Action::actionId() const
}
-#include "polkitqt1-gui-action.moc"
+#include "polkittqt1-gui-action.moc"
diff --git a/gui/polkitqt1-gui-action.h b/gui/polkittqt1-gui-action.h
index 0b8763e8d..6ee42179c 100644
--- a/gui/polkitqt1-gui-action.h
+++ b/gui/polkittqt1-gui-action.h
@@ -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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* Copyright (C) 2009 Dario Freddi <drf@kde.org>
*
@@ -19,10 +19,10 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef POLKITQT1_GUI_ACTION_H
-#define POLKITQT1_GUI_ACTION_H
+#ifndef POLKITTQT1_GUI_ACTION_H
+#define POLKITTQT1_GUI_ACTION_H
-#include "polkitqt1-export.h"
+#include "polkittqt1-export.h"
#include <TQtGui/TQAction>
@@ -33,7 +33,7 @@ namespace Gui
{
/**
- * \class Action polkitqt1-gui-action.h Action
+ * \class Action polkittqt1-gui-action.h Action
* \author Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* \author Dario Freddi <drf@kde.org>
*
@@ -50,7 +50,7 @@ namespace Gui
*
* \see ActionButton
*/
-class POLKITQT1_EXPORT Action : public TQAction
+class POLKITTQT1_EXPORT Action : public TQAction
{
Q_OBJECT
TQ_DISABLE_COPY(Action)
@@ -69,7 +69,7 @@ public:
// Future usage = 256,
All = 512
};
- Q_DECLARE_FLAGS(States, State)
+ TQ_DECLARE_FLAGS(States, State)
/**
* Constructs a new Action item
@@ -207,7 +207,7 @@ public:
*
* \param pid The target process id; 0 if it is the current process
*/
- void setTargetPID(qint64 pid);
+ void setTargetPID(tqint64 pid);
/**
* Gets the text of the action when it is in the specified state
@@ -265,7 +265,7 @@ public:
/**
* \see setTargetPID
*/
- qint64 targetPID() const;
+ tqint64 targetPID() const;
/**
* This method can be used to check the if the current action
@@ -299,6 +299,6 @@ private:
}
-Q_DECLARE_OPERATORS_FOR_FLAGS(PolkitTQt1::Gui::Action::States)
+TQ_DECLARE_OPERATORS_FOR_FLAGS(PolkitTQt1::Gui::Action::States)
#endif
diff --git a/gui/polkitqt1-gui-actionbutton.cpp b/gui/polkittqt1-gui-actionbutton.cpp
index fefb831cf..f817088c1 100644
--- a/gui/polkitqt1-gui-actionbutton.cpp
+++ b/gui/polkittqt1-gui-actionbutton.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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* Copyright (C) 2009 Dario Freddi <drf@kde.org>
*
@@ -19,9 +19,9 @@
* Boston, MA 02110-1301, USA.
*/
-#include "polkitqt1-gui-actionbutton.h"
+#include "polkittqt1-gui-actionbutton.h"
-#include "polkitqt1-gui-actionbutton_p.h"
+#include "polkittqt1-gui-actionbutton_p.h"
namespace PolkitTQt1
{
@@ -55,9 +55,9 @@ ActionButton::~ActionButton()
void ActionButtonPrivate::updateButton()
{
- Q_Q(ActionButton);
+ TQ_Q(ActionButton);
- Q_FOREACH(TQAbstractButton *ent, buttons) {
+ TQ_FOREACH(TQAbstractButton *ent, buttons) {
ent->setVisible(q->isVisible());
ent->setEnabled(q->isEnabled());
ent->setText(q->text());
@@ -78,10 +78,10 @@ void ActionButtonPrivate::updateButton()
bool ActionButton::activate()
{
- Q_D(ActionButton);
+ TQ_D(ActionButton);
bool tg = false;
- Q_FOREACH(TQAbstractButton *ent, d->buttons) {
+ TQ_FOREACH(TQAbstractButton *ent, d->buttons) {
if (ent->isCheckable()) {
// we set the the current Action state
ent->setChecked(isChecked());
@@ -99,10 +99,10 @@ bool ActionButton::activate()
void ActionButton::setButton(TQAbstractButton *button)
{
- Q_D(ActionButton);
+ TQ_D(ActionButton);
// First, let's clear the list
- Q_FOREACH(TQAbstractButton *ent, d->buttons) {
+ TQ_FOREACH(TQAbstractButton *ent, d->buttons) {
d->removeButton(ent);
}
@@ -112,7 +112,7 @@ void ActionButton::setButton(TQAbstractButton *button)
void ActionButtonPrivate::addButton(TQAbstractButton *button)
{
- Q_Q(ActionButton);
+ TQ_Q(ActionButton);
buttons.append(button);
TQObject::connect(button, SIGNAL(clicked(bool)), q, SLOT(streamClicked(bool)));
@@ -124,7 +124,7 @@ void ActionButtonPrivate::addButton(TQAbstractButton *button)
// if we are not checkable BUT the button
// is (eg a TQCheckBox) we should set all buttons to
// checkable.
- Q_FOREACH(TQAbstractButton *ent, buttons) {
+ TQ_FOREACH(TQAbstractButton *ent, buttons) {
ent->setCheckable(true);
}
// set the checkable state of Action to store the initial state
@@ -136,7 +136,7 @@ void ActionButtonPrivate::addButton(TQAbstractButton *button)
void ActionButtonPrivate::removeButton(TQAbstractButton *button)
{
- Q_Q(ActionButton);
+ TQ_Q(ActionButton);
if (buttons.contains(button)) {
TQObject::disconnect(button, SIGNAL(clicked(bool)), q, SLOT(streamClicked(bool)));
@@ -147,20 +147,20 @@ void ActionButtonPrivate::removeButton(TQAbstractButton *button)
TQAbstractButton *ActionButton::button() const
{
- Q_D(const ActionButton);
+ TQ_D(const ActionButton);
return d->buttons.first();
}
void ActionButtonPrivate::streamClicked(bool c)
{
- Q_Q(ActionButton);
+ TQ_Q(ActionButton);
- Q_EMIT q->clicked(qobject_cast<TQAbstractButton *>(q->sender()), c);
+ TQ_EMIT q->clicked(qobject_cast<TQAbstractButton *>(q->sender()), c);
}
}
}
-#include "polkitqt1-gui-actionbutton.moc"
+#include "polkittqt1-gui-actionbutton.moc"
diff --git a/gui/polkitqt1-gui-actionbutton.h b/gui/polkittqt1-gui-actionbutton.h
index 67fdba347..c47a9bcc0 100644
--- a/gui/polkitqt1-gui-actionbutton.h
+++ b/gui/polkittqt1-gui-actionbutton.h
@@ -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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* Copyright (C) 2009 Dario Freddi <drf@kde.org>
*
@@ -19,11 +19,11 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef POLKITQT1_GUI_ACTIONBUTTON_H
-#define POLKITQT1_GUI_ACTIONBUTTON_H
+#ifndef POLKITTQT1_GUI_ACTIONBUTTON_H
+#define POLKITTQT1_GUI_ACTIONBUTTON_H
-#include "polkitqt1-export.h"
-#include "polkitqt1-gui-action.h"
+#include "polkittqt1-export.h"
+#include "polkittqt1-gui-action.h"
class TQAbstractButton;
@@ -35,7 +35,7 @@ namespace Gui
class ActionButtonPrivate;
/**
- * \class ActionButton polkitqt1-gui-actionbutton.h ActionButton
+ * \class ActionButton polkittqt1-gui-actionbutton.h ActionButton
* \author Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* \author Dario Freddi <drf@kde.org>
*
@@ -50,10 +50,10 @@ class ActionButtonPrivate;
* permission to perform the given action. If you set 'noEnabled'
* to \c true it will be emitted when PolKitResult is NO.
*/
-class POLKITQT1_EXPORT ActionButton : public Action
+class POLKITTQT1_EXPORT ActionButton : public Action
{
Q_OBJECT
- Q_DECLARE_PRIVATE(ActionButton)
+ TQ_DECLARE_PRIVATE(ActionButton)
TQ_DISABLE_COPY(ActionButton)
public:
diff --git a/gui/polkitqt1-gui-actionbutton_p.h b/gui/polkittqt1-gui-actionbutton_p.h
index fce14de64..5d4154ef1 100644
--- a/gui/polkitqt1-gui-actionbutton_p.h
+++ b/gui/polkittqt1-gui-actionbutton_p.h
@@ -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 Dario Freddi <drf@kde.org>
*
* This library is free software; you can redistribute it and/or
@@ -18,10 +18,10 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef POLKITQT1_GUI_ACTIONBUTTON_P_H
-#define POLKITQT1_GUI_ACTIONBUTTON_P_H
+#ifndef POLKITTQT1_GUI_ACTIONBUTTON_P_H
+#define POLKITTQT1_GUI_ACTIONBUTTON_P_H
-#include <polkitqt1-gui-actionbutton.h>
+#include <polkittqt1-gui-actionbutton.h>
#include <TQtCore/TQList>
#include <TQtGui/TQAbstractButton>
@@ -41,7 +41,7 @@ public:
void updateButton();
void streamClicked(bool);
- Q_DECLARE_PUBLIC(ActionButton)
+ TQ_DECLARE_PUBLIC(ActionButton)
ActionButton *q_ptr;
TQList<TQAbstractButton *> buttons;
diff --git a/gui/polkitqt1-gui-actionbuttons.cpp b/gui/polkittqt1-gui-actionbuttons.cpp
index 125c0959f..4a3def78b 100644
--- a/gui/polkitqt1-gui-actionbuttons.cpp
+++ b/gui/polkittqt1-gui-actionbuttons.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 Dario Freddi <drf@kde.org>
*
* This library is free software; you can redistribute it and/or
@@ -18,9 +18,9 @@
* Boston, MA 02110-1301, USA.
*/
-#include "polkitqt1-gui-actionbuttons.h"
+#include "polkittqt1-gui-actionbuttons.h"
-#include "polkitqt1-gui-actionbuttons_p.h"
+#include "polkittqt1-gui-actionbuttons_p.h"
namespace PolkitTQt1
{
@@ -40,28 +40,28 @@ ActionButtons::~ActionButtons()
void ActionButtons::setButtons(const TQList<TQAbstractButton *> &buttons)
{
- Q_FOREACH(TQAbstractButton *ent, buttons) {
+ TQ_FOREACH(TQAbstractButton *ent, buttons) {
addButton(ent);
}
}
TQList<TQAbstractButton *> ActionButtons::buttons() const
{
- Q_D(const ActionButtons);
+ TQ_D(const ActionButtons);
return d->buttons;
}
void ActionButtons::addButton(TQAbstractButton *button)
{
- Q_D(ActionButtons);
+ TQ_D(ActionButtons);
d->addButton(button);
}
void ActionButtons::removeButton(TQAbstractButton *button)
{
- Q_D(ActionButtons);
+ TQ_D(ActionButtons);
d->removeButton(button);
}
@@ -70,4 +70,4 @@ void ActionButtons::removeButton(TQAbstractButton *button)
}
-#include "polkitqt1-gui-actionbuttons.moc"
+#include "polkittqt1-gui-actionbuttons.moc"
diff --git a/gui/polkitqt1-gui-actionbuttons.h b/gui/polkittqt1-gui-actionbuttons.h
index 4e5988fd0..753a5e5c4 100644
--- a/gui/polkitqt1-gui-actionbuttons.h
+++ b/gui/polkittqt1-gui-actionbuttons.h
@@ -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 Dario Freddi <drf@kde.org>
*
* This library is free software; you can redistribute it and/or
@@ -18,10 +18,10 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef POLKITQT1_GUI_ACTIONBUTTONS_H
-#define POLKITQT1_GUI_ACTIONBUTTONS_H
+#ifndef POLKITTQT1_GUI_ACTIONBUTTONS_H
+#define POLKITTQT1_GUI_ACTIONBUTTONS_H
-#include "polkitqt1-gui-actionbutton.h"
+#include "polkittqt1-gui-actionbutton.h"
namespace PolkitTQt1
{
@@ -31,7 +31,7 @@ namespace Gui
class ActionButtonsPrivate;
/**
- * \class ActionButtons polkitqt1-gui-actionbuttons.h ActionButtons
+ * \class ActionButtons polkittqt1-gui-actionbuttons.h ActionButtons
* \author Dario Freddi <drf@kde.org>
*
* \brief Class used to hold and update a list of TQAbstractButtons
@@ -46,7 +46,7 @@ class ActionButtonsPrivate;
class ActionButtons : public ActionButton
{
Q_OBJECT
- Q_DECLARE_PRIVATE(ActionButtons)
+ TQ_DECLARE_PRIVATE(ActionButtons)
TQ_DISABLE_COPY(ActionButtons)
public:
diff --git a/gui/polkitqt1-gui-actionbuttons_p.h b/gui/polkittqt1-gui-actionbuttons_p.h
index b6b8518f4..433fb3a57 100644
--- a/gui/polkitqt1-gui-actionbuttons_p.h
+++ b/gui/polkittqt1-gui-actionbuttons_p.h
@@ -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 Dario Freddi <drf@kde.org>
*
* This library is free software; you can redistribute it and/or
@@ -18,10 +18,10 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef POLKITQT1_GUI_ACTIONBUTTONS_P_H
-#define POLKITQT1_GUI_ACTIONBUTTONS_P_H
+#ifndef POLKITTQT1_GUI_ACTIONBUTTONS_P_H
+#define POLKITTQT1_GUI_ACTIONBUTTONS_P_H
-#include "polkitqt1-gui-actionbutton_p.h"
+#include "polkittqt1-gui-actionbutton_p.h"
/**
* \internal
diff --git a/includes/PolkitQt1/ActionDescription b/includes/PolkitQt1/ActionDescription
deleted file mode 100644
index f6dff44c3..000000000
--- a/includes/PolkitQt1/ActionDescription
+++ /dev/null
@@ -1 +0,0 @@
-#include "../polkitqt1-actiondescription.h"
diff --git a/includes/PolkitQt1/Agent/Listener b/includes/PolkitQt1/Agent/Listener
deleted file mode 100644
index 3da871e04..000000000
--- a/includes/PolkitQt1/Agent/Listener
+++ /dev/null
@@ -1 +0,0 @@
-#include "../../polkitqt1-agent-listener.h"
diff --git a/includes/PolkitQt1/Agent/Session b/includes/PolkitQt1/Agent/Session
deleted file mode 100644
index 20eb9ffb8..000000000
--- a/includes/PolkitQt1/Agent/Session
+++ /dev/null
@@ -1 +0,0 @@
-#include "../../polkitqt1-agent-session.h"
diff --git a/includes/PolkitQt1/Authority b/includes/PolkitQt1/Authority
deleted file mode 100644
index 523b3c2c0..000000000
--- a/includes/PolkitQt1/Authority
+++ /dev/null
@@ -1 +0,0 @@
-#include "../polkitqt1-authority.h"
diff --git a/includes/PolkitQt1/Details b/includes/PolkitQt1/Details
deleted file mode 100644
index 27da49aa1..000000000
--- a/includes/PolkitQt1/Details
+++ /dev/null
@@ -1 +0,0 @@
-#include "../polkitqt1-details.h"
diff --git a/includes/PolkitQt1/Gui/Action b/includes/PolkitQt1/Gui/Action
deleted file mode 100644
index 210911de2..000000000
--- a/includes/PolkitQt1/Gui/Action
+++ /dev/null
@@ -1 +0,0 @@
-#include "../../polkitqt1-gui-action.h"
diff --git a/includes/PolkitQt1/Gui/ActionButton b/includes/PolkitQt1/Gui/ActionButton
deleted file mode 100644
index 2076f277e..000000000
--- a/includes/PolkitQt1/Gui/ActionButton
+++ /dev/null
@@ -1 +0,0 @@
-#include "../../polkitqt1-gui-actionbutton.h"
diff --git a/includes/PolkitQt1/Gui/ActionButtons b/includes/PolkitQt1/Gui/ActionButtons
deleted file mode 100644
index 555098f77..000000000
--- a/includes/PolkitQt1/Gui/ActionButtons
+++ /dev/null
@@ -1 +0,0 @@
-#include "../../polkitqt1-gui-actionbuttons.h"
diff --git a/includes/PolkitQt1/Identity b/includes/PolkitQt1/Identity
deleted file mode 100644
index 999f5ae88..000000000
--- a/includes/PolkitQt1/Identity
+++ /dev/null
@@ -1 +0,0 @@
-#include "../polkitqt1-identity.h"
diff --git a/includes/PolkitQt1/Subject b/includes/PolkitQt1/Subject
deleted file mode 100644
index 919a66f52..000000000
--- a/includes/PolkitQt1/Subject
+++ /dev/null
@@ -1 +0,0 @@
-#include "../polkitqt1-subject.h"
diff --git a/includes/PolkitQt1/TemporaryAuthorization b/includes/PolkitQt1/TemporaryAuthorization
deleted file mode 100644
index b676a19e5..000000000
--- a/includes/PolkitQt1/TemporaryAuthorization
+++ /dev/null
@@ -1 +0,0 @@
-#include "../polkitqt1-temporaryauthorization.h"
diff --git a/includes/PolkitTQt1/ActionDescription b/includes/PolkitTQt1/ActionDescription
new file mode 100644
index 000000000..5fe9e8e19
--- /dev/null
+++ b/includes/PolkitTQt1/ActionDescription
@@ -0,0 +1 @@
+#include "../polkittqt1-actiondescription.h"
diff --git a/includes/PolkitTQt1/Agent/Listener b/includes/PolkitTQt1/Agent/Listener
new file mode 100644
index 000000000..bb0ddc8b0
--- /dev/null
+++ b/includes/PolkitTQt1/Agent/Listener
@@ -0,0 +1 @@
+#include "../../polkittqt1-agent-listener.h"
diff --git a/includes/PolkitTQt1/Agent/Session b/includes/PolkitTQt1/Agent/Session
new file mode 100644
index 000000000..94601c8a5
--- /dev/null
+++ b/includes/PolkitTQt1/Agent/Session
@@ -0,0 +1 @@
+#include "../../polkittqt1-agent-session.h"
diff --git a/includes/PolkitTQt1/Authority b/includes/PolkitTQt1/Authority
new file mode 100644
index 000000000..de04f0e48
--- /dev/null
+++ b/includes/PolkitTQt1/Authority
@@ -0,0 +1 @@
+#include "../polkittqt1-authority.h"
diff --git a/includes/PolkitTQt1/Details b/includes/PolkitTQt1/Details
new file mode 100644
index 000000000..248de1843
--- /dev/null
+++ b/includes/PolkitTQt1/Details
@@ -0,0 +1 @@
+#include "../polkittqt1-details.h"
diff --git a/includes/PolkitTQt1/Gui/Action b/includes/PolkitTQt1/Gui/Action
new file mode 100644
index 000000000..4c711ca82
--- /dev/null
+++ b/includes/PolkitTQt1/Gui/Action
@@ -0,0 +1 @@
+#include "../../polkittqt1-gui-action.h"
diff --git a/includes/PolkitTQt1/Gui/ActionButton b/includes/PolkitTQt1/Gui/ActionButton
new file mode 100644
index 000000000..9e030b15d
--- /dev/null
+++ b/includes/PolkitTQt1/Gui/ActionButton
@@ -0,0 +1 @@
+#include "../../polkittqt1-gui-actionbutton.h"
diff --git a/includes/PolkitTQt1/Gui/ActionButtons b/includes/PolkitTQt1/Gui/ActionButtons
new file mode 100644
index 000000000..0c4440999
--- /dev/null
+++ b/includes/PolkitTQt1/Gui/ActionButtons
@@ -0,0 +1 @@
+#include "../../polkittqt1-gui-actionbuttons.h"
diff --git a/includes/PolkitTQt1/Identity b/includes/PolkitTQt1/Identity
new file mode 100644
index 000000000..d5e7a30c2
--- /dev/null
+++ b/includes/PolkitTQt1/Identity
@@ -0,0 +1 @@
+#include "../polkittqt1-identity.h"
diff --git a/includes/PolkitTQt1/Subject b/includes/PolkitTQt1/Subject
new file mode 100644
index 000000000..701a04727
--- /dev/null
+++ b/includes/PolkitTQt1/Subject
@@ -0,0 +1 @@
+#include "../polkittqt1-subject.h"
diff --git a/includes/PolkitTQt1/TemporaryAuthorization b/includes/PolkitTQt1/TemporaryAuthorization
new file mode 100644
index 000000000..c8cd55082
--- /dev/null
+++ b/includes/PolkitTQt1/TemporaryAuthorization
@@ -0,0 +1 @@
+#include "../polkittqt1-temporaryauthorization.h"
diff --git a/polkit-qt-1.pc.cmake b/polkit-tqt-1.pc.cmake
index 8daa5b193..550314a83 100644
--- a/polkit-qt-1.pc.cmake
+++ b/polkit-tqt-1.pc.cmake
@@ -3,9 +3,9 @@ exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@LIB_INSTALL_DIR@
includedir=@CMAKE_INSTALL_PREFIX@/include
-Name: polkit-qt-1
+Name: polkit-tqt-1
Description: Convenience library for using polkit with a TQt-styled API
-Version: @POLKITQT-1_VERSION_STRING@
-Requires: polkit-qt-core-1 polkit-qt-gui-1 polkit-qt-agent-1
-Libs: -L${libdir} -lpolkit-qt-core-1 -lpolkit-qt-gui-1 -lpolkit-qt-agent-1
+Version: @POLKITTQT-1_VERSION_STRING@
+Requires: polkit-tqt-core-1 polkit-tqt-gui-1 polkit-tqt-agent-1
+Libs: -L${libdir} -lpolkit-tqt-core-1 -lpolkit-tqt-gui-1 -lpolkit-tqt-agent-1
Cflags: -I${includedir}
diff --git a/polkit-qt-agent-1.pc.cmake b/polkit-tqt-agent-1.pc.cmake
index 5e794b973..1a52eea85 100644
--- a/polkit-qt-agent-1.pc.cmake
+++ b/polkit-tqt-agent-1.pc.cmake
@@ -3,9 +3,9 @@ exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@LIB_INSTALL_DIR@
includedir=@CMAKE_INSTALL_PREFIX@/include
-Name: polkit-qt-agent-1
+Name: polkit-tqt-agent-1
Description: Convenience library for using polkit Agent with a TQt-styled API
-Version: @POLKITQT-1_VERSION_STRING@
+Version: @POLKITTQT-1_VERSION_STRING@
Requires: TQtCore TQtGui
-Libs: -L${libdir} -lpolkit-qt-agent-1
+Libs: -L${libdir} -lpolkit-tqt-agent-1
Cflags: -I${includedir}
diff --git a/polkit-qt-core-1.pc.cmake b/polkit-tqt-core-1.pc.cmake
index de469b286..e497a8016 100644
--- a/polkit-qt-core-1.pc.cmake
+++ b/polkit-tqt-core-1.pc.cmake
@@ -3,9 +3,9 @@ exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@LIB_INSTALL_DIR@
includedir=@CMAKE_INSTALL_PREFIX@/include
-Name: polkit-qt-core-1
+Name: polkit-tqt-core-1
Description: Convenience library for using polkit with a TQt-styled API, non-GUI classes
-Version: @POLKITQT-1_VERSION_STRING@
+Version: @POLKITTQT-1_VERSION_STRING@
Requires: TQtCore
-Libs: -L${libdir} -lpolkit-qt-core-1
+Libs: -L${libdir} -lpolkit-tqt-core-1
Cflags: -I${includedir}
diff --git a/polkit-qt-gui-1.pc.cmake b/polkit-tqt-gui-1.pc.cmake
index 60e0a3f73..220eba3a8 100644
--- a/polkit-qt-gui-1.pc.cmake
+++ b/polkit-tqt-gui-1.pc.cmake
@@ -3,9 +3,9 @@ exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@LIB_INSTALL_DIR@
includedir=@CMAKE_INSTALL_PREFIX@/include
-Name: polkit-qt-gui-1
+Name: polkit-tqt-gui-1
Description: Convenience library for using polkit with a TQt-styled API, GUI classes
-Version: @POLKITQT-1_VERSION_STRING@
-Requires: TQtCore TQtGui polkit-qt-core-1
-Libs: -L${libdir} -lpolkit-qt-gui-1
+Version: @POLKITTQT-1_VERSION_STRING@
+Requires: TQtCore TQtGui polkit-tqt-core-1
+Libs: -L${libdir} -lpolkit-tqt-gui-1
Cflags: -I${includedir}
diff --git a/polkitqt1-export.h b/polkittqt1-export.h
index 4885e827b..0161cc66c 100644
--- a/polkitqt1-export.h
+++ b/polkittqt1-export.h
@@ -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 Dario Freddi <drf@kde.org>
* Copyright (C) 2007 David Faure <faure@kde.org>
*
@@ -19,10 +19,10 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef POLKITQT1_EXPORT_H
-#define POLKITQT1_EXPORT_H
+#ifndef POLKITTQT1_EXPORT_H
+#define POLKITTQT1_EXPORT_H
-/** \file polkitqt1-export.h
+/** \file polkittqt1-export.h
\brief Contains Macros for exporting symbols
This file contains macros needed for exporting/importing symbols
@@ -30,15 +30,15 @@
#include <TQtCore/TQtGlobal>
-#ifndef POLKITQT1_EXPORT
-# if defined(MAKE_POLKITQT1_LIB)
+#ifndef POLKITTQT1_EXPORT
+# if defined(MAKE_POLKITTQT1_LIB)
/* We are building this library */
-# define POLKITQT1_EXPORT Q_DECL_EXPORT
+# define POLKITTQT1_EXPORT Q_DECL_EXPORT
# else
/* We are using this library */
-# define POLKITQT1_EXPORT Q_DECL_IMPORT
+# define POLKITTQT1_EXPORT Q_DECL_IMPORT
# endif
#endif
-#endif /*POLKITQT1_EXPORT_H*/
+#endif /*POLKITTQT1_EXPORT_H*/
diff --git a/polkitqt1-version.h.cmake b/polkittqt1-version.h.cmake
index eaab33071..3fd1bb6cb 100644
--- a/polkitqt1-version.h.cmake
+++ b/polkittqt1-version.h.cmake
@@ -18,22 +18,22 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef _POLKITQT1_VERSION_H_
-#define _POLKITQT1_VERSION_H_
+#ifndef _POLKITTQT1_VERSION_H_
+#define _POLKITTQT1_VERSION_H_
-#include "polkitqt1-export.h"
+#include "polkittqt1-export.h"
/// @brief PolkitTQt-1 version as string at compile time.
-#define POLKITQT1_VERSION_STRING "${POLKITQT-1_VERSION_STRING}"
+#define POLKITTQT1_VERSION_STRING "${POLKITTQT-1_VERSION_STRING}"
/// @brief The major PolkitTQt-1 version number at compile time
-#define POLKITQT1_VERSION_MAJOR ${POLKITQT-1_VERSION_MAJOR}
+#define POLKITTQT1_VERSION_MAJOR ${POLKITTQT-1_VERSION_MAJOR}
/// @brief The minor PolkitTQt-1 version number at compile time
-#define POLKITQT1_VERSION_MINOR ${POLKITQT-1_VERSION_MINOR}
+#define POLKITTQT1_VERSION_MINOR ${POLKITTQT-1_VERSION_MINOR}
/// @brief The PolkitTQt-1 patch version number at compile time
-#define POLKITQT1_VERSION_PATCH ${POLKITQT-1_VERSION_PATCH}
+#define POLKITTQT1_VERSION_PATCH ${POLKITTQT-1_VERSION_PATCH}
/**
* \brief Create a unique number from the major, minor and release number of a %PolkitTQt-1 version
@@ -41,24 +41,24 @@
* This function can be used for preprocessing. For version information at runtime
* use the version methods in the PolkitTQt-1 namespace.
*/
-#define POLKITQT1_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))
+#define POLKITTQT1_MAKE_VERSION( a,b,c ) (((a) << 16) | ((b) << 8) | (c))
/**
* \brief %PolkitTQt-1 Version as a unique number at compile time
*
* This macro calculates the %PolkitTQt-1 version into a number. It is mainly used
- * through POLKITQT1_IS_VERSION in preprocessing. For version information at runtime
+ * through POLKITTQT1_IS_VERSION in preprocessing. For version information at runtime
* use the version methods in the PolkitTQt-1 namespace.
*/
-#define POLKITQT1_VERSION \
- POLKITQT1_MAKE_VERSION(POLKITQT1_VERSION_MAJOR,POLKITQT1_VERSION_MINOR,POLKITQT1_VERSION_PATCH)
+#define POLKITTQT1_VERSION \
+ POLKITTQT1_MAKE_VERSION(POLKITTQT1_VERSION_MAJOR,POLKITTQT1_VERSION_MINOR,POLKITTQT1_VERSION_PATCH)
/**
* \brief Check if the %PolkitTQt-1 version matches a certain version or is higher
*
* This macro is typically used to compile conditionally a part of code:
* \code
- * #if POLKITQT1_IS_VERSION(2,1)
+ * #if POLKITTQT1_IS_VERSION(2,1)
* // Code for PolkitTQt-1 2.1
* #else
* // Code for PolkitTQt-1 2.0
@@ -68,7 +68,7 @@
* For version information at runtime
* use the version methods in the PolkitTQt-1 namespace.
*/
-#define POLKITQT1_IS_VERSION(a,b,c) ( POLKITQT1_VERSION >= POLKITQT1_MAKE_VERSION(a,b,c) )
+#define POLKITTQT1_IS_VERSION(a,b,c) ( POLKITTQT1_VERSION >= POLKITTQT1_MAKE_VERSION(a,b,c) )
namespace PolkitTQt1 {
@@ -77,30 +77,30 @@ namespace PolkitTQt1 {
* 1 for %PolkitTQt-1 1.0.2.
* @return the major version number at runtime.
*/
- POLKITQT1_EXPORT unsigned int versionMajor();
+ POLKITTQT1_EXPORT unsigned int versionMajor();
/**
* @brief Returns the minor number of PolkitTQt-1's version, e.g.
* 0 for %PolkitTQt-1 1.0.2.
* @return the minor version number at runtime.
*/
- POLKITQT1_EXPORT unsigned int versionMinor();
+ POLKITTQT1_EXPORT unsigned int versionMinor();
/**
* @brief Returns the patch number of PolkitTQt-1's version, e.g.
* 2 for %PolkitTQt-1 1.0.2.
* @return the release number at runtime.
*/
- POLKITQT1_EXPORT unsigned int versionPatch();
+ POLKITTQT1_EXPORT unsigned int versionPatch();
/**
* @brief Returns the %PolkitTQt-1 version as string, e.g. "1.0.2".
*
- * On contrary to the macro POLKITQT1_VERSION_STRING this function returns
+ * On contrary to the macro POLKITTQT1_VERSION_STRING this function returns
* the version number of PolkitTQt-1 at runtime.
* @return the %PolkitTQt-1 version. You can keep the string forever
*/
- POLKITQT1_EXPORT const char* versionString();
+ POLKITTQT1_EXPORT const char* versionString();
}
#endif
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 7e7c9fd1f..f862c0b14 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -6,15 +6,15 @@ include_directories(
${CMAKE_SOURCE_DIR}/agent
)
-automoc4_add_executable(polkit-qt-test
+automoc4_add_executable(polkit-tqt-test
test.cpp
)
-target_link_libraries(polkit-qt-test
- ${QT_QTCORE_LIBRARY}
- ${QT_QTTEST_LIBRARY}
- ${QT_QTGUI_LIBRARY}
- polkit-qt-core-1
+target_link_libraries(polkit-tqt-test
+ ${TQT_TQTCORE_LIBRARY}
+ ${TQT_TQTTEST_LIBRARY}
+ ${TQT_TQTGUI_LIBRARY}
+ polkit-tqt-core-1
)
-add_test(BaseTest ${CMAKE_CURRENT_BINARY_DIR}/polkit-qt-test)
+add_test(BaseTest ${CMAKE_CURRENT_BINARY_DIR}/polkit-tqt-test)
diff --git a/test/test.cpp b/test/test.cpp
index 6112dc4f5..e2358f4e6 100644
--- a/test/test.cpp
+++ b/test/test.cpp
@@ -1,9 +1,9 @@
#include "test.h"
-#include "core/polkitqt1-authority.h"
-#include "agent/polkitqt1-agent-session.h"
-#include "core/polkitqt1-details.h"
+#include "core/polkittqt1-authority.h"
+#include "agent/polkittqt1-agent-session.h"
+#include "core/polkittqt1-details.h"
#include <stdlib.h>
#include <unistd.h>
#include <pwd.h>
@@ -22,25 +22,25 @@ void wait()
void TestAuth::test_Auth_checkAuthorization()
{
- // This needs the file org.qt.policykit.examples.policy from examples to be installed
+ // This needs the file org.tqt.policykit.examples.policy from examples to be installed
UnixProcessSubject process(TQCoreApplication::applicationPid());
Authority::Result result;
// Check if this method returns good authorization results
Authority *authority = Authority::instance();
- result = authority->checkAuthorizationSync("org.qt.policykit.examples.kick", process, Authority::None);
+ result = authority->checkAuthorizationSync("org.tqt.policykit.examples.kick", process, Authority::None);
TQCOMPARE(result, Authority::No);
TQVERIFY(!authority->hasError());
- result = authority->checkAuthorizationSync("org.qt.policykit.examples.cry", process, Authority::None);
+ result = authority->checkAuthorizationSync("org.tqt.policykit.examples.cry", process, Authority::None);
TQCOMPARE(result, Authority::Yes);
TQVERIFY(!authority->hasError());
- result = authority->checkAuthorizationSync("org.qt.policykit.examples.bleed", process, Authority::None);
+ result = authority->checkAuthorizationSync("org.tqt.policykit.examples.bleed", process, Authority::None);
TQCOMPARE(result, Authority::Challenge);
TQVERIFY(!authority->hasError());
// Now we try async methods
TQSignalSpy spy(authority, SIGNAL(checkAuthorizationFinished(PolkitTQt1::Authority::Result)));
// Call asynchronous checkAuthorization
- authority->checkAuthorization("org.qt.policykit.examples.kick", process, Authority::None);
+ authority->checkAuthorization("org.tqt.policykit.examples.kick", process, Authority::None);
// Give the polkit time to obtain the result and emit the signal with it
wait();
// Test if the signal was emitted
@@ -52,14 +52,14 @@ void TestAuth::test_Auth_checkAuthorization()
spy.clear();
// Let's test the cancellability
- authority->checkAuthorization("org.qt.policykit.examples.kick", process, Authority::None);
+ authority->checkAuthorization("org.tqt.policykit.examples.kick", process, Authority::None);
authority->checkAuthorizationCancel();
// Wait and check if the signal arrieved
wait();
TQCOMPARE(spy.count(), 0);
// Check if it can cancel user authentication dialog
- authority->checkAuthorization("org.qt.policykit.examples.bleed", process, Authority::AllowUserInteraction);
+ authority->checkAuthorization("org.tqt.policykit.examples.bleed", process, Authority::AllowUserInteraction);
// Show it for second
sleep(1);
// And now kill it
@@ -71,15 +71,15 @@ void TestAuth::test_Auth_checkAuthorization()
void TestAuth::test_Auth_enumerateActions()
{
- // This needs the file org.qt.policykit.examples.policy from examples to be installed
+ // This needs the file org.tqt.policykit.examples.policy from examples to be installed
ActionDescription::List list = Authority::instance()->enumerateActionsSync();
TQVERIFY(!Authority::instance()->hasError());
// Check whether enumerateAction returns at least example actions
int count = 0;
Q_FOREACH(const ActionDescription &ad, list) {
- if ((ad.actionId() == "org.qt.policykit.examples.kick") ||
- (ad.actionId() == "org.qt.policykit.examples.cry") ||
- (ad.actionId() == "org.qt.policykit.examples.bleed"))
+ if ((ad.actionId() == "org.tqt.policykit.examples.kick") ||
+ (ad.actionId() == "org.tqt.policykit.examples.cry") ||
+ (ad.actionId() == "org.tqt.policykit.examples.bleed"))
count++;
}
TQCOMPARE(count, 3);
@@ -95,9 +95,9 @@ void TestAuth::test_Auth_enumerateActions()
list = qVariantValue<PolkitTQt1::ActionDescription::List> (spy.takeFirst()[0]);
TQVERIFY(!Authority::instance()->hasError());
Q_FOREACH(const ActionDescription &ad, list) {
- if ((ad.actionId() == "org.qt.policykit.examples.kick") ||
- (ad.actionId() == "org.qt.policykit.examples.cry") ||
- (ad.actionId() == "org.qt.policykit.examples.bleed"))
+ if ((ad.actionId() == "org.tqt.policykit.examples.kick") ||
+ (ad.actionId() == "org.tqt.policykit.examples.cry") ||
+ (ad.actionId() == "org.tqt.policykit.examples.bleed"))
count++;
}
TQCOMPARE(count, 3);
@@ -176,7 +176,7 @@ void TestAuth::test_Authority()
void TestAuth::test_Subject()
{
// Get pid of this appication
- qint64 pid = TQCoreApplication::applicationPid();
+ tqint64 pid = TQCoreApplication::applicationPid();
// Create unix process for it
UnixProcessSubject *process = new UnixProcessSubject(pid);
// Test if pid doesn't differ
@@ -205,7 +205,7 @@ void TestAuth::test_Session()
TQCOMPARE(spy_completed.count(), 1);
//UnixProcess *process = new UnixProcess(TQCoreApplication::applicationPid());
- //Authority::instance()->checkAuthorization("org.qt.policykit.examples.kick", process, Authority::None);
+ //Authority::instance()->checkAuthorization("org.tqt.policykit.examples.kick", process, Authority::None);
tqDebug() << "COMPLETED:" << spy_completed.count();
tqDebug() << "REQUEST:" << spy_request.count();