More Qt->TQt conversion and some clean up.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 3 years ago
parent e8494e60ef
commit e8933e99b4
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1,3 +1,6 @@
Ported to TQt3 by Michele Calgaro <michele.calgaro@yahoo.it>
Polkit-Qt original authors and contributors:
Main Authors: Main Authors:
- Daniel Nicoletti <dantti85-dev@yahoo.com.br> - Daniel Nicoletti <dantti85-dev@yahoo.com.br>
- Dario Freddi <drf@kde.org> - Dario Freddi <drf@kde.org>

@ -1,11 +1,11 @@
## Polkit Qt Library ## Polkit TQt Library
project("PolkitQt-1") project("PolkitTQt-1")
cmake_minimum_required(VERSION 2.6.0) cmake_minimum_required(VERSION 2.6.0)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH}) 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(Qt4 REQUIRED)
find_package(Automoc4 REQUIRED) find_package(Automoc4 REQUIRED)
@ -13,9 +13,9 @@ find_package(Polkit REQUIRED)
find_package(GObject REQUIRED) find_package(GObject REQUIRED)
find_package(GIO 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 (InstallSettings)
include (MacroWriteBasicCMakeVersionFile) include (MacroWriteBasicCMakeVersionFile)
include (CheckFunctionExists) include (CheckFunctionExists)
@ -30,7 +30,7 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/core ${CMAKE_CURRENT_SOURCE_DIR}/core
${CMAKE_CURRENT_SOURCE_DIR}/includes ${CMAKE_CURRENT_SOURCE_DIR}/includes
${QT_QTXML_INCLUDE_DIR} ${TQT_TQTXML_INCLUDE_DIR}
) )
# Check for older polkit # 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) 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) 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") message(STATUS "You have an older polkit-1 version: Polkit-TQt-1 will be built in compatibility mode")
add_definitions(-DPOLKIT_QT_1_COMPATIBILITY_MODE) add_definitions(-DPOLKIT_TQT_1_COMPATIBILITY_MODE)
endif (NOT HAVE_POLKIT_AGENT_LISTENER_REGISTER OR NOT HAVE_POLKIT_AUTHORITY_GET_SYNC) 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) 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) 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) 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(POLKITTQT-1_VERSION_MAJOR 0 CACHE INT "PolkitTQt-1's major version number" FORCE)
set(POLKITQT-1_VERSION_MINOR 103 CACHE INT "PolkitQt-1's minor version number" FORCE) set(POLKITTQT-1_VERSION_MINOR 103 CACHE INT "PolkitTQt-1's minor version number" FORCE)
set(POLKITQT-1_VERSION_PATCH 0 CACHE INT "PolkitQt-1's release version number" FORCE) set(POLKITTQT-1_VERSION_PATCH 0 CACHE INT "PolkitTQt-1's release version number" FORCE)
set(POLKITQT-1_VERSION_STRING set(POLKITTQT-1_VERSION_STRING
"${POLKITQT-1_VERSION_MAJOR}.${POLKITQT-1_VERSION_MINOR}.${POLKITQT-1_VERSION_PATCH}") "${POLKITTQT-1_VERSION_MAJOR}.${POLKITTQT-1_VERSION_MINOR}.${POLKITTQT-1_VERSION_PATCH}")
# The SONUMBER of the polkit-qt-1 libraries # 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 # 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 install(FILES
gui/polkitqt1-gui-action.h gui/polkittqt1-gui-action.h
gui/polkitqt1-gui-actionbutton.h gui/polkittqt1-gui-actionbutton.h
gui/polkitqt1-gui-actionbuttons.h gui/polkittqt1-gui-actionbuttons.h
core/polkitqt1-authority.h core/polkittqt1-authority.h
core/polkitqt1-details.h core/polkittqt1-details.h
core/polkitqt1-identity.h core/polkittqt1-identity.h
core/polkitqt1-subject.h core/polkittqt1-subject.h
core/polkitqt1-temporaryauthorization.h core/polkittqt1-temporaryauthorization.h
core/polkitqt1-actiondescription.h core/polkittqt1-actiondescription.h
agent/polkitqt1-agent-listener.h agent/polkittqt1-agent-listener.h
agent/polkitqt1-agent-session.h agent/polkittqt1-agent-session.h
${CMAKE_CURRENT_BINARY_DIR}/polkitqt1-version.h ${CMAKE_CURRENT_BINARY_DIR}/polkittqt1-version.h
polkitqt1-export.h polkittqt1-export.h
DESTINATION DESTINATION
${INCLUDE_INSTALL_DIR}/polkit-qt-1 COMPONENT Devel) ${INCLUDE_INSTALL_DIR}/polkit-qt-1 COMPONENT Devel)
install(FILES install(FILES
includes/PolkitQt1/Authority includes/PolkitTQt1/Authority
includes/PolkitQt1/Details includes/PolkitTQt1/Details
includes/PolkitQt1/Identity includes/PolkitTQt1/Identity
includes/PolkitQt1/Subject includes/PolkitTQt1/Subject
includes/PolkitQt1/TemporaryAuthorization includes/PolkitTQt1/TemporaryAuthorization
includes/PolkitQt1/ActionDescription includes/PolkitTQt1/ActionDescription
DESTINATION DESTINATION
${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitQt1 COMPONENT Devel) ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitTQt1 COMPONENT Devel)
install(FILES install(FILES
includes/PolkitQt1/Gui/Action includes/PolkitTQt1/Gui/Action
includes/PolkitQt1/Gui/ActionButton includes/PolkitTQt1/Gui/ActionButton
includes/PolkitQt1/Gui/ActionButtons includes/PolkitTQt1/Gui/ActionButtons
DESTINATION DESTINATION
${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitQt1/Gui COMPONENT Devel) ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitTQt1/Gui COMPONENT Devel)
install(FILES install(FILES
includes/PolkitQt1/Agent/Listener includes/PolkitTQt1/Agent/Listener
includes/PolkitQt1/Agent/Session includes/PolkitTQt1/Agent/Session
DESTINATION DESTINATION
${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitQt1/Agent COMPONENT Devel) ${INCLUDE_INSTALL_DIR}/polkit-qt-1/PolkitTQt1/Agent COMPONENT Devel)
if(NOT WIN32) if(NOT WIN32)
# Pkgconfig # Pkgconfig
@ -120,21 +120,21 @@ if(NOT WIN32)
endif(NOT WIN32) endif(NOT WIN32)
# CMake Config files # 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. # 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 macro_write_basic_cmake_version_file(${CMAKE_BINARY_DIR}/PolkitTQt-1ConfigVersion.cmake
${POLKITQT-1_VERSION_MAJOR} ${POLKITQT-1_VERSION_MINOR} ${POLKITQT-1_VERSION_PATCH}) ${POLKITTQT-1_VERSION_MAJOR} ${POLKITTQT-1_VERSION_MINOR} ${POLKITTQT-1_VERSION_PATCH})
if(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR) 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) 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) endif(USE_COMMON_CMAKE_PACKAGE_CONFIG_DIR)
install(FILES ${CMAKE_BINARY_DIR}/PolkitQt-1ConfigVersion.cmake install(FILES ${CMAKE_BINARY_DIR}/PolkitTQt-1ConfigVersion.cmake
${CMAKE_BINARY_DIR}/PolkitQt-1Config.cmake ${CMAKE_BINARY_DIR}/PolkitTQt-1Config.cmake
DESTINATION ${_PolkitQt-1Config_INSTALL_DIR} ) DESTINATION ${_PolkitTQt-1Config_INSTALL_DIR} )
option(BUILD_EXAMPLES "Builds a set of examples for polkit-qt-1" OFF) option(BUILD_EXAMPLES "Builds a set of examples for polkit-qt-1" OFF)
if (BUILD_EXAMPLES) if (BUILD_EXAMPLES)
@ -153,4 +153,4 @@ add_subdirectory(gui)
add_subdirectory(agent) add_subdirectory(agent)
# Always last! # Always last!
include (PolkitQt-1Dist) include (PolkitTQt-1Dist)

@ -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 mkdir build
cd 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) want to install missing dependancies (if you do, remove the CMakeCache.txt)
and run cmake again. and run cmake again.
Finally build Polkit-qt: Finally build Polkit-tqt:
make make

@ -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 polkit-tqt-1 aims to make it easy for TQt developers to take advantage of
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 API. It is a convenience wrapper around QAction and QAbstractButton polkit API. It is a convenience wrapper around QAction and QAbstractButton
that lets you integrate those two components easily with polkit. 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 polkit-tqt-1 is split in three libraries: polkit-tqt-core-1, polkit-tqt-gui-1 and polkit-tqt-agent-1
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
\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 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. 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, 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 and get their properties changed accordingly to polkit's result. It includes the classes
Action, ActionButton and ActionButtons 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="classes.html">Alphabetical Class List</a>
\li <a href="hierarchy.html">Class Hierarchy</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 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 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: polkit support in an existing application. Let's see some details about it:
\code \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)"); bt->setText("Kick... (long)");
// here we set the behavior of PolKitResul = No // here we set the behavior of PolKitResul = No
bt->setVisible(true, Action::No); bt->setVisible(true, Action::No);
bt->setEnabled(true, Action::No); bt->setEnabled(true, Action::No);
bt->setText("Kick (long)", 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); bt->setToolTip("If your admin wasn't annoying, you could do this", Action::No);
// here we set the behavior of PolKitResul = Auth // here we set the behavior of PolKitResul = Auth
bt->setVisible(true, Action::Auth); bt->setVisible(true, Action::Auth);
bt->setEnabled(true, Action::Auth); bt->setEnabled(true, Action::Auth);
bt->setText("Kick... (long)", 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); bt->setToolTip("Only card carrying tweakers can do this!", Action::Auth);
// here we set the behavior of PolKitResul = Yes // here we set the behavior of PolKitResul = Yes
bt->setVisible(true, Action::Yes); bt->setVisible(true, Action::Yes);
bt->setEnabled(true, Action::Yes); bt->setEnabled(true, Action::Yes);
bt->setText("Kick! (long)", 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); bt->setToolTip("Go ahead, kick kick kick!", Action::Yes);
\endcode \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 on the action status/result. The code is mostly self-explainatory
\code \code
bt = new ActionButtons(QList<QAbstractButton*>() << listenPB << listenCB, bt = new ActionButtons(TQList<TQAbstractButton*>() << listenPB << listenCB,
"org.qt.policykit.examples.listen", this); "org.tqt.policykit.examples.listen", this);
bt->setIcon(QPixmap(":/Icons/action-locked.png")); bt->setIcon(TQPixmap(":/Icons/action-locked.png"));
bt->setIcon(QPixmap(":/Icons/action-unlocked.png"), Action::Yes); bt->setIcon(TQPixmap(":/Icons/action-unlocked.png"), Action::Yes);
bt->setText("Click to make changes..."); bt->setText("Click to make changes...");
\endcode \endcode
@ -83,7 +75,7 @@ are kept in sync with the action.
\code \code
connect(bt, SIGNAL(triggered(bool)), this, SLOT(activateAction())); 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())); connect(bt, SIGNAL(authorized()), this, SLOT(actionActivated()));
\endcode \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 to understand why this connection doesn't happen automatically), and Action::authorized() signal notifies
you when polkit has authorized you to perform the action. 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. and to the API Docs for more details.
*/ */
// DOXYGEN_PROJECTVERSION=0.96.1 // DOXYGEN_PROJECTVERSION=0.96.1
// DOXYGEN_PROJECTNAME=PolkitQt-1 // DOXYGEN_PROJECTNAME=polkittqt-1
// DOXYGEN_ENABLE=YES // DOXYGEN_ENABLE=YES
// vim:ts=4:sw=4:expandtab:filetype=doxygen

@ -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})

@ -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})

@ -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 Polkit-tqt 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 TQt-styled API. It is mainly a wrapper around TQAction and TQAbstractButton that
lets you integrate those two component easily with PolicyKit lets you integrate those two component easily with PolicyKit
This directory contains the sources of the library. This directory contains the sources of the library.
@ -14,7 +14,7 @@ Structure
* cmake/ * cmake/
Contains the cmake checks that are needed to build the library, 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 Contains the sources of the library

@ -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

11
TODO

@ -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.

@ -3,23 +3,23 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
) )
set(polkit_qt_agent_SRCS set(polkit_tqt_agent_SRCS
polkitqt1-agent-session.cpp polkittqt1-agent-session.cpp
polkitqt1-agent-listener.cpp polkittqt1-agent-listener.cpp
listeneradapter.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} ${POLKIT_LIBRARIES}
${QT_QTCORE_LIBRARY} ${TQT_TQTCORE_LIBRARY}
${POLKIT_AGENT_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} set_target_properties(polkit-tqt-agent-1 PROPERTIES VERSION ${POLKITTQT-1_LIBRARY_VERSION}
SOVERSION ${POLKITQT-1_ABI_VERSION} SOVERSION ${POLKITTQT-1_ABI_VERSION}
DEFINE_SYMBOL MAKE_POLKITQT1_LIB) 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})

@ -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) 2009 Jaroslav Reznik <jreznik@redhat.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -39,7 +39,7 @@ public:
ListenerAdapter *q; ListenerAdapter *q;
}; };
Q_GLOBAL_STATIC(ListenerAdapterHelper, s_globalListenerAdapter) TQ_GLOBAL_STATIC(ListenerAdapterHelper, s_globalListenerAdapter)
ListenerAdapter *ListenerAdapter::instance() ListenerAdapter *ListenerAdapter::instance()
{ {
@ -61,7 +61,7 @@ Listener* ListenerAdapter::findListener(PolkitAgentListener *listener)
{ {
Listener *listItem; Listener *listItem;
Q_FOREACH(listItem, m_listeners) { TQ_FOREACH(listItem, m_listeners) {
Q_ASSERT(listItem); Q_ASSERT(listItem);
if (listItem->listener() == listener) { if (listItem->listener() == listener) {
@ -72,7 +72,7 @@ Listener* ListenerAdapter::findListener(PolkitAgentListener *listener)
return NULL; 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 *action_id,
const gchar *message, const gchar *message,
const gchar *icon_name, const gchar *icon_name,
@ -82,7 +82,7 @@ void ListenerAdapter::polkit_qt_listener_initiate_authentication(PolkitAgentList
GCancellable *cancellable, GCancellable *cancellable,
GSimpleAsyncResult *result) 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::Identity::List idents;
PolkitTQt1::Details dets(details); PolkitTQt1::Details dets(details);
@ -102,11 +102,11 @@ void ListenerAdapter::polkit_qt_listener_initiate_authentication(PolkitAgentList
new AsyncResult(result)); 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, GAsyncResult *res,
GError **error) 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); GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT(res);
if (g_simple_async_result_propagate_error(simple, error)) { if (g_simple_async_result_propagate_error(simple, error)) {

@ -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) 2009 Jaroslav Reznik <jreznik@redhat.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -23,9 +23,9 @@
#include <TQtCore/TQObject> #include <TQtCore/TQObject>
#include "polkitqt1-agent-listener.h" #include "polkittqt1-agent-listener.h"
#include "polkitqt1-identity.h" #include "polkittqt1-identity.h"
#include "polkitqt1-details.h" #include "polkittqt1-details.h"
typedef struct _GList GList; typedef struct _GList GList;
typedef struct _GCancellable GCancellable; typedef struct _GCancellable GCancellable;
@ -51,7 +51,7 @@ public:
static ListenerAdapter* instance(); static ListenerAdapter* instance();
~ListenerAdapter() {} ~ListenerAdapter() {}
void polkit_qt_listener_initiate_authentication(PolkitAgentListener *listener, void polkit_tqt_listener_initiate_authentication(PolkitAgentListener *listener,
const gchar *action_id, const gchar *action_id,
const gchar *message, const gchar *message,
const gchar *icon_name, const gchar *icon_name,
@ -61,7 +61,7 @@ public:
GCancellable *cancellable, GCancellable *cancellable,
GSimpleAsyncResult *result); GSimpleAsyncResult *result);
gboolean polkit_qt_listener_initiate_authentication_finish(PolkitAgentListener *listener, gboolean polkit_tqt_listener_initiate_authentication_finish(PolkitAgentListener *listener,
GAsyncResult *res, GAsyncResult *res,
GError **error); GError **error);
void cancelled_cb(PolkitAgentListener *listener); void cancelled_cb(PolkitAgentListener *listener);

@ -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) 2009 Jaroslav Reznik <jreznik@redhat.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,16 +18,16 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#include "polkitqt1-agent-listener.h" #include "polkittqt1-agent-listener.h"
#include <TQtCore/TQDebug> #include <TQtCore/TQDebug>
#include "polkitqtlistener_p.h" #include "polkittqtlistener_p.h"
#include "polkitqt1-authority.h" #include "polkittqt1-authority.h"
#include "polkitqt1-subject.h" #include "polkittqt1-subject.h"
#include "polkitqt1-identity.h" #include "polkittqt1-identity.h"
#include "polkitqt1-details.h" #include "polkittqt1-details.h"
namespace PolkitTQt1 namespace PolkitTQt1
{ {
@ -39,7 +39,7 @@ class ListenerPrivate
{ {
public: public:
PolkitAgentListener *listener; PolkitAgentListener *listener;
#ifndef POLKIT_QT_1_COMPATIBILITY_MODE #ifndef POLKIT_TQT_1_COMPATIBILITY_MODE
void *registeredHandle; void *registeredHandle;
#endif #endif
}; };
@ -49,7 +49,7 @@ Listener::Listener(TQObject *parent)
{ {
g_type_init(); g_type_init();
d->listener = polkit_qt_listener_new(); d->listener = polkit_tqt_listener_new();
tqDebug() << "New PolkitAgentListener " << d->listener; tqDebug() << "New PolkitAgentListener " << d->listener;
@ -69,7 +69,7 @@ Listener::~Listener()
tqDebug("Destroying listener"); tqDebug("Destroying listener");
ListenerAdapter::instance()->removeListener(this); ListenerAdapter::instance()->removeListener(this);
#ifndef POLKIT_QT_1_COMPATIBILITY_MODE #ifndef POLKIT_TQT_1_COMPATIBILITY_MODE
if (d->registeredHandle) { if (d->registeredHandle) {
polkit_agent_listener_unregister(d->registeredHandle); polkit_agent_listener_unregister(d->registeredHandle);
} }
@ -83,7 +83,7 @@ bool Listener::registerListener(const PolkitTQt1::Subject &subject, const TQStri
{ {
GError *error = NULL; GError *error = NULL;
#ifndef POLKIT_QT_1_COMPATIBILITY_MODE #ifndef POLKIT_TQT_1_COMPATIBILITY_MODE
d->registeredHandle = polkit_agent_listener_register(d->listener, d->registeredHandle = polkit_agent_listener_register(d->listener,
POLKIT_AGENT_REGISTER_FLAGS_NONE, POLKIT_AGENT_REGISTER_FLAGS_NONE,
#else #else
@ -91,7 +91,7 @@ bool Listener::registerListener(const PolkitTQt1::Subject &subject, const TQStri
#endif #endif
subject.subject(), subject.subject(),
objectPath.toAscii().data(), objectPath.toAscii().data(),
#ifndef POLKIT_QT_1_COMPATIBILITY_MODE #ifndef POLKIT_TQT_1_COMPATIBILITY_MODE
NULL, NULL,
#endif #endif
&error); &error);
@ -101,7 +101,7 @@ bool Listener::registerListener(const PolkitTQt1::Subject &subject, const TQStri
g_error_free(error); g_error_free(error);
return false; return false;
} }
#ifndef POLKIT_QT_1_COMPATIBILITY_MODE #ifndef POLKIT_TQT_1_COMPATIBILITY_MODE
if (d->registeredHandle == NULL) { if (d->registeredHandle == NULL) {
tqWarning() << TQString("Cannot register authentication agent!"); tqWarning() << TQString("Cannot register authentication agent!");
return false; return false;
@ -121,4 +121,4 @@ const PolkitAgentListener *Listener::listener()
} }
#include "polkitqt1-agent-listener.moc" #include "polkittqt1-agent-listener.moc"

@ -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) 2009 Jaroslav Reznik <jreznik@redhat.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,14 +18,14 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKITQT1_AGENT_LISTENER_H #ifndef POLKITTQT1_AGENT_LISTENER_H
#define POLKITQT1_AGENT_LISTENER_H #define POLKITTQT1_AGENT_LISTENER_H
#include "polkitqt1-export.h" #include "polkittqt1-export.h"
#include <TQtCore/TQObject> #include <TQtCore/TQObject>
#include "polkitqt1-agent-session.h" #include "polkittqt1-agent-session.h"
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1 #define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1
@ -46,7 +46,7 @@ namespace Agent
class ListenerPrivate; class ListenerPrivate;
/** /**
* \class Listener polkitqt1-agent-listener.h Listener * \class Listener polkittqt1-agent-listener.h Listener
* \author Jaroslav Reznik <jreznik@redhat.com> * \author Jaroslav Reznik <jreznik@redhat.com>
* *
* \brief Listener is abstract class used for implementing authentication agents. * \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. * You can also use Session class to authenticate users however it isn't required.
* \sa Session * \sa Session
*/ */
class POLKITQT1_EXPORT Listener : public TQObject class POLKITTQT1_EXPORT Listener : public TQObject
{ {
Q_OBJECT Q_OBJECT
TQ_DISABLE_COPY(Listener) TQ_DISABLE_COPY(Listener)
@ -91,7 +91,7 @@ public:
* *
* \param subject Subject that listener will be registered for * \param subject Subject that listener will be registered for
* \param objectPath DBus object path * \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); bool registerListener(const PolkitTQt1::Subject &subject, const TQString &objectPath);

@ -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> * Copyright (C) 2009 Radek Novacek <rnovacek@redhat.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,11 +18,11 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#include "polkitqt1-agent-session.h" #include "polkittqt1-agent-session.h"
#include <TQtCore/TQDebug> #include <TQtCore/TQDebug>
#include "polkitqt1-identity.h" #include "polkittqt1-identity.h"
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1 #define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1
#include <polkitagent/polkitagent.h> #include <polkitagent/polkitagent.h>
@ -104,7 +104,7 @@ void Session::Private::completed(PolkitAgentSession *s, gboolean gained_authoriz
{ {
tqDebug() << "COMPLETED"; tqDebug() << "COMPLETED";
Session *session = (Session *)user_data; Session *session = (Session *)user_data;
Q_EMIT(session)->completed(gained_authorization); TQ_EMIT(session)->completed(gained_authorization);
//free session here as polkit documentation asks //free session here as polkit documentation asks
g_object_unref(session->d->polkitAgentSession); 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) void Session::Private::request(PolkitAgentSession *s, gchar *request, gboolean echo_on, gpointer user_data)
{ {
tqDebug() << "REQUEST"; 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) void Session::Private::showError(PolkitAgentSession *s, gchar *text, gpointer user_data)
{ {
tqDebug() << "showError"; 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) void Session::Private::showInfo(PolkitAgentSession *s, gchar *text, gpointer user_data)
{ {
tqDebug() << "showInfo"; 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()); 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"

@ -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> * Copyright (C) 2009 Radek Novacek <rnovacek@redhat.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,11 +18,11 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKITQT1_AGENT_SESSION_H #ifndef POLKITTQT1_AGENT_SESSION_H
#define POLKITQT1_AGENT_SESSION_H #define POLKITTQT1_AGENT_SESSION_H
#include <TQtCore/TQObject> #include <TQtCore/TQObject>
#include "polkitqt1-identity.h" #include "polkittqt1-identity.h"
typedef struct _GSimpleAsyncResult GSimpleAsyncResult; typedef struct _GSimpleAsyncResult GSimpleAsyncResult;
typedef struct _PolkitAgentSession PolkitAgentSession; typedef struct _PolkitAgentSession PolkitAgentSession;
@ -45,7 +45,7 @@ namespace Agent
* \internal * \internal
* \brief Encapsulation of GSimpleAsyncResult to TQObject class * \brief Encapsulation of GSimpleAsyncResult to TQObject class
*/ */
class POLKITQT1_EXPORT AsyncResult class POLKITTQT1_EXPORT AsyncResult
{ {
public: public:
explicit AsyncResult(GSimpleAsyncResult *result); 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> * \author Radek Novacek <rnovacek@redhat.com>
* *
* This class is interface for interacting with native * This class is interface for interacting with native
* authentication system for obtaining authorizations. * authentication system for obtaining authorizations.
* *
*/ */
class POLKITQT1_EXPORT Session : public TQObject class POLKITTQT1_EXPORT Session : public TQObject
{ {
Q_OBJECT Q_OBJECT
TQ_DISABLE_COPY(Session) TQ_DISABLE_COPY(Session)
@ -137,7 +137,7 @@ public:
Q_SIGNALS: Q_SIGNALS:
/** /**
* This signal will be emitted when the authentication * 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. * \param gainedAuthorization \c True if authorization was successfully obtained.
*/ */

@ -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) 2009 Jaroslav Reznik <jreznik@redhat.com>
* *
* This library is free software; you can redistribute it and/or * 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, * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA. * 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 <stdio.h>
#include <TQtCore/TQDebug> #include <TQtCore/TQDebug>
@ -44,7 +44,7 @@ struct _PolkitTQtListenerClass {
PolkitAgentListenerClass parent_class; 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 *action_id,
const gchar *message, const gchar *message,
const gchar *icon_name, const gchar *icon_name,
@ -55,29 +55,29 @@ static void polkit_qt_listener_initiate_authentication(PolkitAgentListener *lis
GAsyncReadyCallback callback, GAsyncReadyCallback callback,
gpointer user_data); 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, GAsyncResult *res,
GError **error); 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(); g_type_init();
} }
static void polkit_qt_listener_finalize(GObject *object) static void polkit_tqt_listener_finalize(GObject *object)
{ {
PolkitTQtListener *listener; PolkitTQtListener *listener;
listener = POLKIT_QT_LISTENER(object); listener = POLKIT_TQT_LISTENER(object);
if (G_OBJECT_CLASS(polkit_qt_listener_parent_class)->finalize != NULL) { if (G_OBJECT_CLASS(polkit_tqt_listener_parent_class)->finalize != NULL) {
G_OBJECT_CLASS(polkit_qt_listener_parent_class)->finalize(object); 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; GObjectClass *gobject_class;
PolkitAgentListenerClass *listener_class; PolkitAgentListenerClass *listener_class;
@ -85,15 +85,15 @@ static void polkit_qt_listener_class_init(PolkitTQtListenerClass *klass)
gobject_class = G_OBJECT_CLASS(klass); gobject_class = G_OBJECT_CLASS(klass);
listener_class = POLKIT_AGENT_LISTENER_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 = polkit_tqt_listener_initiate_authentication;
listener_class->initiate_authentication_finish = polkit_qt_listener_initiate_authentication_finish; 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) 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); 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 *action_id,
const gchar *message, const gchar *message,
const gchar *icon_name, const gchar *icon_name,
@ -112,14 +112,14 @@ static void polkit_qt_listener_initiate_authentication(PolkitAgentListener *age
GAsyncReadyCallback callback, GAsyncReadyCallback callback,
gpointer user_data) gpointer user_data)
{ {
tqDebug() << "Listener adapter polkit_qt_listener_initiate_authentication"; tqDebug() << "Listener adapter polkit_tqt_listener_initiate_authentication";
PolkitTQtListener *listener = POLKIT_QT_LISTENER(agent_listener); PolkitTQtListener *listener = POLKIT_TQT_LISTENER(agent_listener);
// The result of asynchronous method will be created here and it will be pushed to the 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); GSimpleAsyncResult *result = g_simple_async_result_new((GObject *) listener, callback, user_data, agent_listener);
tqDebug() << "GSimpleAsyncResult:" << result; tqDebug() << "GSimpleAsyncResult:" << result;
ListenerAdapter::instance()->polkit_qt_listener_initiate_authentication(agent_listener, ListenerAdapter::instance()->polkit_tqt_listener_initiate_authentication(agent_listener,
action_id, action_id,
message, message,
icon_name, 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, GAsyncResult *res,
GError **error) GError **error)
{ {
tqDebug() << "Listener adapter polkit_qt_listener_initiate_authentication_finish"; tqDebug() << "Listener adapter polkit_tqt_listener_initiate_authentication_finish";
return ListenerAdapter::instance()->polkit_qt_listener_initiate_authentication_finish(listener, return ListenerAdapter::instance()->polkit_tqt_listener_initiate_authentication_finish(listener,
res, res,
error); error);
} }

@ -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) 2009 Jaroslav Reznik <jreznik@redhat.com>
* *
* This library is free software; you can redistribute it and/or * 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, * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA. * 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 #ifndef POLKITTQT_LISTENER_P_H
#define POLKIQT_LISTENER_P_H #define POLKITTQT_LISTENER_P_H
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1 #define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1
@ -31,19 +31,19 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define POLKIT_QT_TYPE_LISTENER (polkit_qt_listener_get_type()) #define POLKIT_TQT_TYPE_LISTENER (polkit_tqt_listener_get_type())
#define POLKIT_QT_LISTENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_QT_TYPE_LISTENER, PolkitTQtListener)) #define POLKIT_TQT_LISTENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_TQT_TYPE_LISTENER, PolkitTQtListener))
#define POLKIT_QT_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_QT_TYPE_LISTENER, PolkitTQtListenerClass)) #define POLKIT_TQT_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_TQT_TYPE_LISTENER, PolkitTQtListenerClass))
#define POLKIT_QT_LISTENER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_QT_TYPE_LISTENER, PolkitTQtListenerClass)) #define POLKIT_TQT_LISTENER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_TQT_TYPE_LISTENER, PolkitTQtListenerClass))
#define POLKIT_QT_IS_LISTENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_QT_TYPE_LISTENER)) #define POLKIT_TQT_IS_LISTENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_TQT_TYPE_LISTENER))
#define POLKIT_QT_IS_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_QT_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 _PolkitTQtListener PolkitTQtListener;
typedef struct _PolkitTQtListenerClass PolkitTQtListenerClass; typedef struct _PolkitTQtListenerClass PolkitTQtListenerClass;
GType polkit_qt_listener_get_type(void) G_GNUC_CONST; GType polkit_tqt_listener_get_type(void) G_GNUC_CONST;
PolkitAgentListener *polkit_qt_listener_new(void); PolkitAgentListener *polkit_tqt_listener_new(void);
G_END_DECLS G_END_DECLS
#endif /* POLKIT_QT_LISTENER_H */ #endif /* POLKIT_TQT_LISTENER_H */

@ -1,7 +1,7 @@
## install the cmake files ## install the cmake files
#file( GLOB cmakeFiles FindPolkitQt.cmake ) #file( GLOB cmakeFiles FindPolkitTQt.cmake )
#set(module_install_dir ${CMAKE_ROOT}/Modules ) #set(module_install_dir ${CMAKE_ROOT}/Modules )
#install( FILES ${cmakeFiles} #install( FILES ${cmakeFiles}

@ -1,13 +1,13 @@
# - Try to find PolkitTQt-1 # - Try to find PolkitTQt-1
# Once done this will define # Once done this will define
# #
# POLKITQT-1_FOUND - system has Polkit-qt # POLKITTQT-1_FOUND - system has Polkit-tqt
# POLKITQT-1_INCLUDE_DIR - the Polkit-qt include directory # POLKITTQT-1_INCLUDE_DIR - the Polkit-tqt include directory
# POLKITQT-1_LIBRARIES - Link these to use all Polkit-qt libs # POLKITTQT-1_LIBRARIES - Link these to use all Polkit-tqt libs
# POLKITQT-1_CORE_LIBRARY - Link this to use the polkit-qt-core library only # POLKITTQT-1_CORE_LIBRARY - Link this to use the polkit-tqt-core library only
# POLKITQT-1_GUI_LIBRARY - Link this to use GUI elements in polkit-qt (polkit-qt-gui) # POLKITTQT-1_GUI_LIBRARY - Link this to use GUI elements in polkit-tqt (polkit-tqt-gui)
# POLKITQT-1_AGENT_LIBRARY - Link this to use the agent wrapper in polkit-qt # POLKITTQT-1_AGENT_LIBRARY - Link this to use the agent wrapper in polkit-tqt
# POLKITQT-1_DEFINITIONS - Compiler switches required for using Polkit-qt # POLKITTQT-1_DEFINITIONS - Compiler switches required for using Polkit-tqt
# #
# The minimum required version of PolkitTQt-1 can be specified using the # The minimum required version of PolkitTQt-1 can be specified using the
# standard syntax, e.g. find_package(PolkitTQt-1 1.0) # 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. # Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
# Support POLKITQT-1_MIN_VERSION for compatibility: # Support POLKITTQT-1_MIN_VERSION for compatibility:
if ( NOT PolkitTQt-1_FIND_VERSION AND POLKITQT-1_MIN_VERSION ) if ( NOT PolkitTQt-1_FIND_VERSION AND POLKITTQT-1_MIN_VERSION )
set ( PolkitTQt-1_FIND_VERSION ${POLKITQT-1_MIN_VERSION} ) set ( PolkitTQt-1_FIND_VERSION ${POLKITTQT-1_MIN_VERSION} )
endif ( NOT PolkitTQt-1_FIND_VERSION AND POLKITQT-1_MIN_VERSION ) endif ( NOT PolkitTQt-1_FIND_VERSION AND POLKITTQT-1_MIN_VERSION )
set( _PolkitTQt-1_FIND_QUIETLY ${PolkitTQt-1_FIND_QUIETLY} ) 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 ) 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 ) include( FindPackageHandleStandardArgs )
find_package_handle_standard_args( PolkitTQt-1 DEFAULT_MSG PolkitTQt-1_CONFIG ) find_package_handle_standard_args( PolkitTQt-1 DEFAULT_MSG PolkitTQt-1_CONFIG )
if (POLKITQT-1_FOUND) if (POLKITTQT-1_FOUND)
if (NOT POLKITQT-1_INSTALL_DIR STREQUAL CMAKE_INSTALL_PREFIX) 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 " 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") "in POLICY_FILES_INSTALL_DIR and by dbus_add_activation_system_service to the ${POLKITTQT-1_INSTALL_DIR} prefix")
endif (NOT POLKITQT-1_INSTALL_DIR STREQUAL CMAKE_INSTALL_PREFIX) endif (NOT POLKITTQT-1_INSTALL_DIR STREQUAL CMAKE_INSTALL_PREFIX)
endif (POLKITQT-1_FOUND) endif (POLKITTQT-1_FOUND)

@ -1,13 +1,13 @@
SET(CPACK_PACKAGE_NAME "polkit-qt-1") SET(CPACK_PACKAGE_NAME "polkit-tqt-1")
SET(CPACK_PACKAGE_VERSION_MAJOR "${POLKITQT-1_VERSION_MAJOR}") SET(CPACK_PACKAGE_VERSION_MAJOR "${POLKITTQT-1_VERSION_MAJOR}")
SET(CPACK_PACKAGE_VERSION_MINOR "${POLKITQT-1_VERSION_MINOR}") SET(CPACK_PACKAGE_VERSION_MINOR "${POLKITTQT-1_VERSION_MINOR}")
SET(CPACK_PACKAGE_VERSION_PATCH "${POLKITQT-1_VERSION_PATCH}") SET(CPACK_PACKAGE_VERSION_PATCH "${POLKITTQT-1_VERSION_PATCH}")
set(CPACK_SOURCE_GENERATOR "TBZ2") 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(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 add_custom_target(dist
COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD
| bzip2 > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2 | bzip2 > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2

@ -3,29 +3,29 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
) )
set(polkit_qt_core_SRCS set(polkit_tqt_core_SRCS
polkitqt1-authority.cpp polkittqt1-authority.cpp
polkitqt1-identity.cpp polkittqt1-identity.cpp
polkitqt1-subject.cpp polkittqt1-subject.cpp
polkitqt1-temporaryauthorization.cpp polkittqt1-temporaryauthorization.cpp
polkitqt1-details.cpp polkittqt1-details.cpp
polkitqt1-actiondescription.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 target_link_libraries(polkit-tqt-core-1
${QT_QTCORE_LIBRARY} ${TQT_TQTCORE_LIBRARY}
${QT_QTDBUS_LIBRARY} ${TQT_TQTDBUS_LIBRARY}
${QT_QTXML_LIBRARY} ${TQT_TQTXML_LIBRARY}
${POLKIT_LIBRARIES} ${POLKIT_LIBRARIES}
${GLIB2_LIBRARIES} ${GLIB2_LIBRARIES}
${GOBJECT_LIBRARIES} ${GOBJECT_LIBRARIES}
${GIO_LIBRARIES} ${GIO_LIBRARIES}
) )
set_target_properties(polkit-qt-core-1 PROPERTIES VERSION ${POLKITQT-1_LIBRARY_VERSION} set_target_properties(polkit-tqt-core-1 PROPERTIES VERSION ${POLKITTQT-1_LIBRARY_VERSION}
SOVERSION ${POLKITQT-1_ABI_VERSION} SOVERSION ${POLKITTQT-1_ABI_VERSION}
DEFINE_SYMBOL MAKE_POLKITQT1_LIB) 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})

@ -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) 2009 Jaroslav Reznik <jreznik@redhat.com>
* Copyright (C) 2010 Dario Freddi <drf@kde.org> * Copyright (C) 2010 Dario Freddi <drf@kde.org>
* *
@ -19,7 +19,7 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#include "polkitqt1-actiondescription.h" #include "polkittqt1-actiondescription.h"
#include <TQtCore/TQString> #include <TQtCore/TQString>

@ -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) 2009 Jaroslav Reznik <jreznik@redhat.com>
* Copyright (C) 2010 Dario Freddi <drf@kde.org> * Copyright (C) 2010 Dario Freddi <drf@kde.org>
* *
@ -19,10 +19,10 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKITQT1_ACTION_DESCRIPTION_H #ifndef POLKITTQT1_ACTION_DESCRIPTION_H
#define POLKITQT1_ACTION_DESCRIPTION_H #define POLKITTQT1_ACTION_DESCRIPTION_H
#include "polkitqt1-export.h" #include "polkittqt1-export.h"
#include <TQtCore/TQList> #include <TQtCore/TQList>
#include <TQtCore/TQMetaType> #include <TQtCore/TQMetaType>
@ -33,13 +33,13 @@ typedef struct _PolkitActionDescription PolkitActionDescription;
namespace PolkitTQt1 namespace PolkitTQt1
{ {
/** /**
* \class ActionDescription polkitqt1-actiondescription.h ActionDescription * \class ActionDescription polkittqt1-actiondescription.h ActionDescription
* \author Jaroslav Reznik <jreznik@redhat.com> * \author Jaroslav Reznik <jreznik@redhat.com>
* \author Dario Freddi <drf@kde.org> * \author Dario Freddi <drf@kde.org>
* *
* \brief Class used to encapsulate a registered action. * \brief Class used to encapsulate a registered action.
*/ */
class POLKITQT1_EXPORT ActionDescription class POLKITTQT1_EXPORT ActionDescription
{ {
public: public:
enum ImplicitAuthorization { 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

@ -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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* Copyright (C) 2009 Dario Freddi <drf@kde.org> * Copyright (C) 2009 Dario Freddi <drf@kde.org>
* Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com> * Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com>
@ -21,7 +21,7 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#include "polkitqt1-authority.h" #include "polkittqt1-authority.h"
#include <TQtDBus/TQDBusInterface> #include <TQtDBus/TQDBusInterface>
#include <TQtDBus/TQDBusReply> #include <TQtDBus/TQDBusReply>
@ -41,7 +41,7 @@ public:
Authority *q; Authority *q;
}; };
Q_GLOBAL_STATIC(AuthorityHelper, s_globalAuthority) TQ_GLOBAL_STATIC(AuthorityHelper, s_globalAuthority)
Authority *Authority::instance(PolkitAuthority *authority) Authority *Authority::instance(PolkitAuthority *authority)
{ {
@ -178,11 +178,11 @@ void Authority::Private::init()
m_revokeTemporaryAuthorizationsCancellable = g_cancellable_new(); m_revokeTemporaryAuthorizationsCancellable = g_cancellable_new();
m_revokeTemporaryAuthorizationCancellable = g_cancellable_new(); m_revokeTemporaryAuthorizationCancellable = g_cancellable_new();
#ifndef POLKIT_QT_1_COMPATIBILITY_MODE #ifndef POLKIT_TQT_1_COMPATIBILITY_MODE
GError *gerror = NULL; GError *gerror = NULL;
#endif #endif
if (pkAuthority == NULL) { if (pkAuthority == NULL) {
#ifndef POLKIT_QT_1_COMPATIBILITY_MODE #ifndef POLKIT_TQT_1_COMPATIBILITY_MODE
pkAuthority = polkit_authority_get_sync(NULL, &gerror); pkAuthority = polkit_authority_get_sync(NULL, &gerror);
if (gerror != NULL) { if (gerror != NULL) {
setError(E_GetAuthority, gerror->message); setError(E_GetAuthority, gerror->message);
@ -195,7 +195,7 @@ void Authority::Private::init()
} }
if (pkAuthority == NULL) { if (pkAuthority == NULL) {
#ifdef POLKIT_QT_1_COMPATIBILITY_MODE #ifdef POLKIT_TQT_1_COMPATIBILITY_MODE
(E_GetAuthority); (E_GetAuthority);
#endif #endif
return; return;
@ -224,7 +224,7 @@ void Authority::Private::init()
TQList<TQString> seats; TQList<TQString> seats;
qVariantValue<TQDBusArgument> (msg.arguments()[0]) >> seats; qVariantValue<TQDBusArgument> (msg.arguments()[0]) >> seats;
// it can be multiple seats present so connect all their signals // 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); seatSignalsConnect(seat);
} }
} }
@ -262,7 +262,7 @@ void Authority::Private::dbusSignalAdd(const TQString &service, const TQString &
void Authority::Private::dbusFilter(const TQDBusMessage &message) void Authority::Private::dbusFilter(const TQDBusMessage &message)
{ {
if (message.type() == TQDBusMessage::SignalMessage) { if (message.type() == TQDBusMessage::SignalMessage) {
Q_EMIT q->consoleKitDBChanged(); TQ_EMIT q->consoleKitDBChanged();
// TODO: Test this with the multiseat support // TODO: Test this with the multiseat support
if (message.member() == "SeatAdded") { if (message.member() == "SeatAdded") {
@ -298,7 +298,7 @@ void Authority::clearError()
void Authority::Private::pk_config_changed() void Authority::Private::pk_config_changed()
{ {
Q_EMIT Authority::instance()->configChanged(); TQ_EMIT Authority::instance()->configChanged();
} }
PolkitAuthority *Authority::polkitAuthority() const PolkitAuthority *Authority::polkitAuthority() const
@ -444,7 +444,7 @@ void Authority::Private::enumerateActionsCallback(GObject *object, GAsyncResult
return; return;
} }
Q_EMIT authority->enumerateActionsFinished(actionsToListAndFree(list)); TQ_EMIT authority->enumerateActionsFinished(actionsToListAndFree(list));
} }
void Authority::enumerateActionsCancel() void Authority::enumerateActionsCancel()
@ -516,7 +516,7 @@ void Authority::Private::registerAuthenticationAgentCallback(GObject *object, GA
return; return;
} }
Q_EMIT authority->registerAuthenticationAgentFinished(res); TQ_EMIT authority->registerAuthenticationAgentFinished(res);
} }
void Authority::registerAuthenticationAgentCancel() void Authority::registerAuthenticationAgentCancel()
@ -588,7 +588,7 @@ void Authority::Private::unregisterAuthenticationAgentCallback(GObject *object,
return; return;
} }
Q_EMIT authority->unregisterAuthenticationAgentFinished(res); TQ_EMIT authority->unregisterAuthenticationAgentFinished(res);
} }
void Authority::unregisterAuthenticationAgentCancel() void Authority::unregisterAuthenticationAgentCancel()
@ -659,7 +659,7 @@ void Authority::Private::authenticationAgentResponseCallback(GObject *object, GA
return; return;
} }
Q_EMIT authority->authenticationAgentResponseFinished(res); TQ_EMIT authority->authenticationAgentResponseFinished(res);
} }
void Authority::authenticationAgentResponseCancel() void Authority::authenticationAgentResponseCancel()
@ -720,7 +720,7 @@ void Authority::Private::enumerateTemporaryAuthorizationsCallback(GObject *objec
g_list_free(glist); g_list_free(glist);
Q_EMIT authority->enumerateTemporaryAuthorizationsFinished(res); TQ_EMIT authority->enumerateTemporaryAuthorizationsFinished(res);
} }
void Authority::enumerateTemporaryAuthorizationsCancel() void Authority::enumerateTemporaryAuthorizationsCancel()
@ -780,7 +780,7 @@ void Authority::Private::revokeTemporaryAuthorizationsCallback(GObject *object,
return; return;
} }
Q_EMIT authority->revokeTemporaryAuthorizationsFinished(res); TQ_EMIT authority->revokeTemporaryAuthorizationsFinished(res);
} }
void Authority::revokeTemporaryAuthorizationsCancel() void Authority::revokeTemporaryAuthorizationsCancel()
@ -840,7 +840,7 @@ void Authority::Private::revokeTemporaryAuthorizationCallback(GObject *object, G
return; return;
} }
Q_EMIT authority->revokeTemporaryAuthorizationFinished(res); TQ_EMIT authority->revokeTemporaryAuthorizationFinished(res);
} }
void Authority::revokeTemporaryAuthorizationCancel() void Authority::revokeTemporaryAuthorizationCancel()
@ -852,4 +852,4 @@ void Authority::revokeTemporaryAuthorizationCancel()
} }
#include "polkitqt1-authority.moc" #include "polkittqt1-authority.moc"

@ -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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* Copyright (C) 2009 Dario Freddi <drf@kde.org> * Copyright (C) 2009 Dario Freddi <drf@kde.org>
* Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com> * Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com>
@ -21,14 +21,14 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKITQT1_AUTHORITY_H #ifndef POLKITTQT1_AUTHORITY_H
#define POLKITQT1_AUTHORITY_H #define POLKITTQT1_AUTHORITY_H
#include "polkitqt1-export.h" #include "polkittqt1-export.h"
#include "polkitqt1-identity.h" #include "polkittqt1-identity.h"
#include "polkitqt1-subject.h" #include "polkittqt1-subject.h"
#include "polkitqt1-temporaryauthorization.h" #include "polkittqt1-temporaryauthorization.h"
#include "polkitqt1-actiondescription.h" #include "polkittqt1-actiondescription.h"
#include <TQtCore/TQObject> #include <TQtCore/TQObject>
#include <TQtCore/TQMetaType> #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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* \author Dario Freddi <drf@kde.org> * \author Dario Freddi <drf@kde.org>
* \author Jaroslav Reznik <jreznik@redhat.com> * \author Jaroslav Reznik <jreznik@redhat.com>
@ -63,7 +63,7 @@ namespace PolkitTQt1
* Call Authority::instance() to get an instance of the Authority object. * Call Authority::instance() to get an instance of the Authority object.
* Do not delete Authority::instance(), cleanup will be done automatically. * Do not delete Authority::instance(), cleanup will be done automatically.
*/ */
class POLKITQT1_EXPORT Authority : public TQObject class POLKITTQT1_EXPORT Authority : public TQObject
{ {
Q_OBJECT Q_OBJECT
TQ_DISABLE_COPY(Authority) TQ_DISABLE_COPY(Authority)
@ -91,7 +91,7 @@ public:
* to block for a long time. **/ * to block for a long time. **/
AllowUserInteraction = 0x01 AllowUserInteraction = 0x01
}; };
Q_DECLARE_FLAGS(AuthorizationFlags, AuthorizationFlag) TQ_DECLARE_FLAGS(AuthorizationFlags, AuthorizationFlag)
/** Error codes for the authority class */ /** Error codes for the authority class */
enum ErrorCode { enum ErrorCode {
@ -111,7 +111,7 @@ public:
E_RegisterFailed = 0x06, E_RegisterFailed = 0x06,
/** Unregistration of authentication agent failed **/ /** Unregistration of authentication agent failed **/
E_UnregisterFailed = 0x07, 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, E_CookieOrIdentityEmpty = 0x08,
/** Response of auth agent failed **/ /** Response of auth agent failed **/
E_AgentResponseFailed = 0x09, E_AgentResponseFailed = 0x09,
@ -125,7 +125,7 @@ public:
* Returns the current instance of Authority. Call this function whenever * Returns the current instance of Authority. Call this function whenever
* you need to access the Authority class. * 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. * need to call this function to get a working instance of Authority.
* Don't delete the object after having used it. * Don't delete the object after having used it.
* *
@ -170,7 +170,7 @@ public:
/** /**
* Returns the current instance of PolkitAuthority. If you are handling * 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 * 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 * 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. * of the possible consequencies. Use this instance only to gather information.

@ -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> * Copyright (C) 2009 Radek Novacek <rnovacek@redhat.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,7 +18,7 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#include "polkitqt1-details.h" #include "polkittqt1-details.h"
#include <TQtCore/TQStringList> #include <TQtCore/TQStringList>

@ -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> * Copyright (C) 2009 Radek Novacek <rnovacek@redhat.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,10 +18,10 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKITQT1_DETAILS_H #ifndef POLKITTQT1_DETAILS_H
#define POLKITQT1_DETAILS_H #define POLKITTQT1_DETAILS_H
#include "polkitqt1-export.h" #include "polkittqt1-export.h"
#include <TQtCore/TQObject> #include <TQtCore/TQObject>
#include <TQtCore/TQSharedData> #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> * \author Radek Novacek <rnovacek@redhat.com>
* *
* \brief Class used for passing details around. * \brief Class used for passing details around.
*/ */
class POLKITQT1_EXPORT Details class POLKITTQT1_EXPORT Details
{ {
public: public:
/** /**

@ -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> * Copyright (C) 2009 Lukas Tinkl <ltinkl@redhat.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,7 +18,7 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#include "polkitqt1-identity.h" #include "polkittqt1-identity.h"
#include <polkit/polkit.h> #include <polkit/polkit.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> * Copyright (C) 2009 Lukas Tinkl <ltinkl@redhat.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,10 +18,10 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKITQT1_IDENTITY_H #ifndef POLKITTQT1_IDENTITY_H
#define POLKITQT1_IDENTITY_H #define POLKITTQT1_IDENTITY_H
#include "polkitqt1-export.h" #include "polkittqt1-export.h"
#include <unistd.h> #include <unistd.h>
@ -46,7 +46,7 @@ class UnixUserIdentity;
class UnixGroupIdentity; class UnixGroupIdentity;
/** /**
* \class Identity polkitqt1-identity.h Identity * \class Identity polkittqt1-identity.h Identity
* \author Lukas Tinkl <ltinkl@redhat.com> * \author Lukas Tinkl <ltinkl@redhat.com>
* *
* This class encapsulates the PolkitIdentity interface. * This class encapsulates the PolkitIdentity interface.
@ -56,7 +56,7 @@ class UnixGroupIdentity;
* \see UnixGroup * \see UnixGroup
* \see UnixUser * \see UnixUser
*/ */
class POLKITQT1_EXPORT Identity class POLKITTQT1_EXPORT Identity
{ {
public: public:
typedef TQList< Identity > List; 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. * An object representing a user identity on a UNIX system.
* *
* \brief UNIX user identity * \brief UNIX user identity
* \sa Identity * \sa Identity
*/ */
class POLKITQT1_EXPORT UnixUserIdentity : public Identity class POLKITTQT1_EXPORT UnixUserIdentity : public Identity
{ {
public: public:
UnixUserIdentity(); 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. * An object representing a group identity on a UNIX system.
* *
* \brief UNIX group identity * \brief UNIX group identity
* \sa Identity * \sa Identity
*/ */
class POLKITQT1_EXPORT UnixGroupIdentity : public Identity class POLKITTQT1_EXPORT UnixGroupIdentity : public Identity
{ {
public: public:
UnixGroupIdentity(); UnixGroupIdentity();
@ -208,4 +208,4 @@ public:
} }
#endif // POLKIT_QT_IDENTITY_H #endif // POLKIT_TQT_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 Jaroslav Reznik <jreznik@redhat.com> * Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,7 +18,7 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#include "polkitqt1-subject.h" #include "polkittqt1-subject.h"
#include <TQtCore/TQDebug> #include <TQtCore/TQDebug>
#include <polkit/polkit.h> #include <polkit/polkit.h>
@ -112,13 +112,13 @@ Subject Subject::fromString(const TQString &string)
return subject; return subject;
} }
UnixProcessSubject::UnixProcessSubject(qint64 pid) UnixProcessSubject::UnixProcessSubject(tqint64 pid)
: Subject() : Subject()
{ {
setSubject(polkit_unix_process_new(pid)); setSubject(polkit_unix_process_new(pid));
} }
UnixProcessSubject::UnixProcessSubject(qint64 pid, tquint64 startTime) UnixProcessSubject::UnixProcessSubject(tqint64 pid, tquint64 startTime)
: Subject() : Subject()
{ {
setSubject(polkit_unix_process_new_full(pid, startTime)); 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()); 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()); 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); 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())); setSubject(polkit_unix_session_new(sessionId.toUtf8().data()));
} }
UnixSessionSubject::UnixSessionSubject(qint64 pid) UnixSessionSubject::UnixSessionSubject(tqint64 pid)
: Subject() : Subject()
{ {
GError *error = NULL; GError *error = NULL;

@ -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> * Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,10 +18,10 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKITQT1_SUBJECT_H #ifndef POLKITTQT1_SUBJECT_H
#define POLKITQT1_SUBJECT_H #define POLKITTQT1_SUBJECT_H
#include "polkitqt1-export.h" #include "polkittqt1-export.h"
#include <TQtCore/TQObject> #include <TQtCore/TQObject>
#include <TQtCore/TQSharedData> #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> * \author Jaroslav Reznik <jreznik@redhat.com>
* *
* \brief This class represents PolicyKit subjects * \brief This class represents PolicyKit subjects
@ -52,7 +52,7 @@ namespace PolkitTQt1
* \see SystemBusName * \see SystemBusName
* \see UnixSession * \see UnixSession
*/ */
class POLKITQT1_EXPORT Subject class POLKITTQT1_EXPORT Subject
{ {
public: public:
Subject(); Subject();
@ -99,7 +99,7 @@ private:
}; };
/** /**
* \class UnixProcessSubject polkitqt1-subject.h Subject * \class UnixProcessSubject polkittqt1-subject.h Subject
* \author Jaroslav Reznik <jreznik@redhat.com> * \author Jaroslav Reznik <jreznik@redhat.com>
* *
* \brief A class for representing a UNIX process. * \brief A class for representing a UNIX process.
@ -111,7 +111,7 @@ private:
* *
* \sa Subject * \sa Subject
*/ */
class POLKITQT1_EXPORT UnixProcessSubject : public Subject class POLKITTQT1_EXPORT UnixProcessSubject : public Subject
{ {
public: public:
/** /**
@ -120,7 +120,7 @@ public:
* *
* \param pid An Unix process PID. * \param pid An Unix process PID.
*/ */
explicit UnixProcessSubject(qint64 pid); explicit UnixProcessSubject(tqint64 pid);
/** /**
* Subject constructor, takes two parameters - PID and start time. * Subject constructor, takes two parameters - PID and start time.
@ -128,7 +128,7 @@ public:
* \param pid An Unix process PID. * \param pid An Unix process PID.
* \param startTime An Unix process start time. * \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 * Subject constructor, it creates UnixProcess object from PolkitUnixProcess object
@ -144,32 +144,32 @@ public:
* *
* \return A PID of associated Unix process. * \return A PID of associated Unix process.
*/ */
qint64 pid() const; tqint64 pid() const;
/** /**
* Returns Unix process start time. * Returns Unix process start time.
* *
* \return A start time of associated Unix process. * \return A start time of associated Unix process.
*/ */
qint64 startTime() const; tqint64 startTime() const;
/** /**
* Sets Unix process PID. * Sets Unix process PID.
* *
* \param pid An 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> * \author Jaroslav Reznik <jreznik@redhat.com>
* *
* \brief A class for representing a process owning a unique name on the system bus. * \brief A class for representing a process owning a unique name on the system bus.
* *
* \sa Subject * \sa Subject
*/ */
class POLKITQT1_EXPORT SystemBusNameSubject : public Subject class POLKITTQT1_EXPORT SystemBusNameSubject : public Subject
{ {
public: public:
/** /**
@ -204,7 +204,7 @@ public:
}; };
/** /**
* \class UnixSessionSubject polkitqt1-subject.h Subject * \class UnixSessionSubject polkittqt1-subject.h Subject
* \author Jaroslav Reznik <jreznik@redhat.com> * \author Jaroslav Reznik <jreznik@redhat.com>
* *
* \brief A class for representing unix session. * \brief A class for representing unix session.
@ -214,7 +214,7 @@ public:
* *
* \sa Subject * \sa Subject
*/ */
class POLKITQT1_EXPORT UnixSessionSubject : public Subject class POLKITTQT1_EXPORT UnixSessionSubject : public Subject
{ {
public: public:
/** /**
@ -231,7 +231,7 @@ public:
* *
* \param pid The session's process pid. * \param pid The session's process pid.
*/ */
explicit UnixSessionSubject(qint64 pid); explicit UnixSessionSubject(tqint64 pid);
/** /**
* Subject constructor, it creates UnixSession object from PolkitUnixSession object * Subject constructor, it creates UnixSession object from PolkitUnixSession object

@ -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> * Copyright (C) 2009 Radek Novacek <rnovacek@redhat.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,8 +18,8 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#include "polkitqt1-temporaryauthorization.h" #include "polkittqt1-temporaryauthorization.h"
#include "polkitqt1-authority.h" #include "polkittqt1-authority.h"
#include <polkit/polkit.h> #include <polkit/polkit.h>

@ -18,10 +18,10 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKITQT1_TEMPORARYAUTHORIZATION_H #ifndef POLKITTQT1_TEMPORARYAUTHORIZATION_H
#define POLKITQT1_TEMPORARYAUTHORIZATION_H #define POLKITTQT1_TEMPORARYAUTHORIZATION_H
#include "polkitqt1-subject.h" #include "polkittqt1-subject.h"
#include <TQtCore/TQObject> #include <TQtCore/TQObject>
#include <TQtCore/TQDateTime> #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> * \author Radek Novacek <rnovacek@redhat.com>
* *
* \brief This class represents PolicyKit temporary authorization * \brief This class represents PolicyKit temporary authorization
* *
* This class encapsulates the PolkitTemporaryAuthorization interface. * This class encapsulates the PolkitTemporaryAuthorization interface.
*/ */
class POLKITQT1_EXPORT TemporaryAuthorization class POLKITTQT1_EXPORT TemporaryAuthorization
{ {
public: public:
typedef TQList< TemporaryAuthorization > List; typedef TQList< TemporaryAuthorization > List;
@ -119,6 +119,6 @@ private:
}; };
} }
Q_DECLARE_METATYPE(PolkitTQt1::TemporaryAuthorization::List) TQ_DECLARE_METATYPE(PolkitTQt1::TemporaryAuthorization::List)
#endif // TEMPORARYAUTHORIZATION_H #endif // TEMPORARYAUTHORIZATION_H

18
debian/changelog vendored

@ -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. * New upstream release.
- fix annoying crash on shutdown. (Closes: #651815) - 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 -- 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 ] [ Modestas Vainius ]
* Update symbol files. * Update symbol files.
-- Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Thu, 26 May 2011 00:31:01 +0300 -- 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. * Bump Standards-Version to 3.9.2: no changes needed.
* Build library with -fvisibility=hidden -fvisibility-inlines-hidden. * 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 -- 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. * 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. * Bump Standards-Version to 3.9.1: no changes needed.
* Remove dupe "Section" field from debian/control. * Remove dupe "Section" field from debian/control.
* Include verbatim BSD license to debian/copyright. * Include verbatim BSD license to debian/copyright.
* Override lintian libpolkit-qt-1-0: package-name-doesnt-match-sonames. * Override lintian libpolkit-tqt-1-0: package-name-doesnt-match-sonames.
* Use more failsafe wildcards in libpolkit-qt-1-0.install. * Use more failsafe wildcards in libpolkit-tqt-1-0.install.
* Add myself to Uploaders. * Add myself to Uploaders.
* SONAME bumped: rename libpolkit-qt-1-0 to libpolkit-qt-1-1. * SONAME bumped: rename libpolkit-tqt-1-0 to libpolkit-tqt-1-1.
* Add symbol file for libpolkit-qt-1-1. * Add symbol file for libpolkit-tqt-1-1.
* Update debian/copyright. * Update debian/copyright.
[ Didier Raboud ] [ 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 -- 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) * Initial release. (Closes: #565395)

22
debian/control vendored

@ -1,4 +1,4 @@
Source: polkit-qt-1 Source: polkit-tqt-1
Priority: extra Priority: extra
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Uploaders: Fathi Boudra <fabo@debian.org>, Modestas Vainius <modax@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) pkg-kde-tools (>= 0.11)
Standards-Version: 3.9.2 Standards-Version: 3.9.2
Section: libs Section: libs
Vcs-Git: git://git.debian.org/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-qt-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 Section: libdevel
Architecture: any Architecture: any
Depends: libpolkit-qt-1-1 (= ${binary:Version}), libqt4-dev, ${misc:Depends} Depends: libpolkit-tqt-1-1 (= ${binary:Version}), libqt4-dev, ${misc:Depends}
Description: PolicyKit-qt-1 development files Description: PolicyKit-tqt-1 development files
PolicyKit is an application-level toolkit for defining and handling the policy PolicyKit is an application-level toolkit for defining and handling the policy
that allows unprivileged processes to speak to privileged processes. 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) granting access to privileged operations (like calling the HAL Mount() method)
for unprivileged (desktop) applications. 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. applications that want to use PolicyKit-1.
. .
This package contains the development libraries and headers. This package contains the development libraries and headers.
Package: libpolkit-qt-1-1 Package: libpolkit-tqt-1-1
Architecture: any Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends} 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 PolicyKit is an application-level toolkit for defining and handling the policy
that allows unprivileged processes to speak to privileged processes. 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) granting access to privileged operations (like calling the HAL Mount() method)
for unprivileged (desktop) applications. 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. applications that want to use PolicyKit.
. .
This package contains the files necessary for running applications that use This package contains the files necessary for running applications that use
the libpolkit-qt-1 library. the libpolkit-tqt-1 library.

4
debian/copyright vendored

@ -21,12 +21,12 @@ Copyright:
Copyright (C) 2009 Radek Novacek Copyright (C) 2009 Radek Novacek
Copyright (C) 2009 Lukas Tinkl 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) 2009 Dario Freddi <drf@kde.org>
Copyright (C) 2007 David Faure <faure@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) 2009 Dario Freddi <drf@kde.org>
Copyright (C) 2007 Sebastian Trueg <trueg@kde.org> Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>

@ -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*

@ -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

@ -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

@ -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

@ -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*

@ -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

@ -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

@ -22,7 +22,7 @@
#include "PkExampleHelper.h" #include "PkExampleHelper.h"
#include "examplesadaptor.h" #include "examplesadaptor.h"
#include "polkitqt1-authority.h" #include "polkittqt-authority.h"
#include <TQtDBus/TQDBusConnection> #include <TQtDBus/TQDBusConnection>
#include <TQtCore/TQTimer> #include <TQtCore/TQTimer>
@ -39,7 +39,7 @@ PkExampleHelper::PkExampleHelper(int &argc, char **argv)
tqDebug() << "Creating Helper"; tqDebug() << "Creating Helper";
(void) new ExamplesAdaptor(this); (void) new ExamplesAdaptor(this);
// Register the DBus service // 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();; tqDebug() << TQDBusConnection::systemBus().lastError().message();;
TQTimer::singleShot(0, this, SLOT(quit())); TQTimer::singleShot(0, this, SLOT(quit()));
return; return;
@ -68,7 +68,7 @@ bool PkExampleHelper::set(const TQString &action)
Authority::Result result; Authority::Result result;
SystemBusNameSubject subject(message().service()); 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); subject , Authority::AllowUserInteraction);
if (result == Authority::Yes) { if (result == Authority::Yes) {
tqDebug() << message().service() << TQString("Implicit authorization set to") << action; 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 // This action must be authorized first. It will set the implicit
// authorization for the Shout action by editing the .policy file // authorization for the Shout action by editing the .policy file
TQDomDocument doc = TQDomDocument("policy"); 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)) if (!file.open(TQIODevice::ReadOnly))
return false; return false;
doc.setContent(&file); doc.setContent(&file);
file.close(); file.close();
TQDomElement el = doc.firstChildElement("policyconfig"). TQDomElement el = doc.firstChildElement("policyconfig").
firstChildElement("action"); 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.nextSiblingElement("action");
} }
el = el.firstChildElement("defaults"); el = el.firstChildElement("defaults");

@ -28,7 +28,7 @@
class PkExampleHelper : public TQCoreApplication, protected TQDBusContext class PkExampleHelper : public TQCoreApplication, protected TQDBusContext
{ {
Q_OBJECT Q_OBJECT
TQ_CLASSINFO("D-Bus Interface", "org.qt.policykit.examples") TQ_CLASSINFO("D-Bus Interface", "org.tqt.policykit.examples")
public: public:
PkExampleHelper(int &argc, char **argv); PkExampleHelper(int &argc, char **argv);
~PkExampleHelper(); ~PkExampleHelper();

@ -17,8 +17,8 @@ add_executable(polkit-agent-example
) )
target_link_libraries(polkit-agent-example target_link_libraries(polkit-agent-example
${QT_QTCORE_LIBRARY} ${TQT_TQTCORE_LIBRARY}
${QT_QTGUI_LIBRARY} ${TQT_TQTGUI_LIBRARY}
polkit-qt-agent-1 polkit-tqt-agent-1
polkit-qt-core-1 polkit-tqt-core-1
) )

@ -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) 2009 Jaroslav Reznik <jreznik@redhat.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -22,7 +22,7 @@
#include <TQInputDialog> #include <TQInputDialog>
#include "klistener.h" #include "klistener.h"
#include "agent/polkitqt1-agent-session.h" #include "agent/polkittqt1-agent-session.h"
using namespace PolkitTQt1::Agent; using namespace PolkitTQt1::Agent;
@ -47,7 +47,7 @@ void KListener::initiateAuthentication(const TQString &actionId,
tqDebug() << details.keys(); tqDebug() << details.keys();
tqDebug() << "cookie" << cookie; tqDebug() << "cookie" << cookie;
Q_FOREACH (const PolkitTQt1::Identity &identity, identities) { TQ_FOREACH (const PolkitTQt1::Identity &identity, identities) {
tqDebug() << identity.toString(); tqDebug() << identity.toString();
Session *session; Session *session;
session = new Session(identity, cookie, result); session = new Session(identity, cookie, result);

@ -18,16 +18,16 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKIT_QT_AGENT_KDE_LISTENER_H #ifndef POLKIT_TQT_AGENT_KDE_LISTENER_H
#define POLKIT_QT_AGENT_KDE_LISTENER_H #define POLKIT_TQT_AGENT_KDE_LISTENER_H
#include <TQtCore/TQObject> #include <TQtCore/TQObject>
#include <TQtCore/TQString> #include <TQtCore/TQString>
#include "agent/polkitqt1-agent-listener.h" #include "agent/polkittqt1-agent-listener.h"
#include "core/polkitqt1-identity.h" #include "core/polkittqt1-identity.h"
#include "core/polkitqt1-details.h" #include "core/polkittqt1-details.h"
#include "agent/polkitqt1-agent-session.h" #include "agent/polkittqt1-agent-session.h"
class KListener : public PolkitTQt1::Agent::Listener class KListener : public PolkitTQt1::Agent::Listener
{ {

@ -4,7 +4,7 @@
#include "pkagentexample.h" #include "pkagentexample.h"
#include <glib-object.h> #include <glib-object.h>
#include <TQtCore/TQDebug> #include <TQtCore/TQDebug>
#include "polkitqt1-subject.h" #include "polkittqt1-subject.h"
PkAgentExample::PkAgentExample(int &argc, char **argv) PkAgentExample::PkAgentExample(int &argc, char **argv)
: TQCoreApplication(argc, argv) : TQCoreApplication(argc, argv)

@ -8,12 +8,12 @@
<!-- Only user root can own the PackageKit service --> <!-- Only user root can own the PackageKit service -->
<policy user="root"> <policy user="root">
<allow own="org.qt.policykit.examples"/> <allow own="org.tqt.policykit.examples"/>
</policy> </policy>
<!-- Allow anyone to call into the service - we'll reject callers using PolicyKit --> <!-- Allow anyone to call into the service - we'll reject callers using PolicyKit -->
<policy context="default"> <policy context="default">
<allow send_destination="org.qt.policykit.examples"/> <allow send_destination="org.tqt.policykit.examples"/>
</policy> </policy>
</busconfig> </busconfig>

@ -6,76 +6,76 @@
<vendor>KDE</vendor> <vendor>KDE</vendor>
<vendor_url>http://www.kde.org</vendor_url> <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> <description>Kick</description>
<message>Prevents PolicyKit-Qt example from kicking</message> <message>Prevents PolicyKit-TQt example from kicking</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>no</allow_active> <allow_active>no</allow_active>
</defaults> </defaults>
</action> </action>
<action id="org.qt.policykit.examples.cry"> <action id="org.tqt.policykit.examples.cry">
<description>Cry</description> <description>Cry</description>
<message>Prevents PolicyKit-Qt example from crying</message> <message>Prevents PolicyKit-TQt example from crying</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active> <allow_active>yes</allow_active>
</defaults> </defaults>
</action> </action>
<action id="org.qt.policykit.examples.bleed"> <action id="org.tqt.policykit.examples.bleed">
<description>Bleed</description> <description>Bleed</description>
<message>Prevents PolicyKit-Qt example from bleeding</message> <message>Prevents PolicyKit-TQt example from bleeding</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>auth_self</allow_active> <allow_active>auth_self</allow_active>
</defaults> </defaults>
</action> </action>
<action id="org.qt.policykit.examples.play"> <action id="org.tqt.policykit.examples.play">
<description>Play</description> <description>Play</description>
<message>Prevents PolicyKit-Qt example from playing</message> <message>Prevents PolicyKit-TQt example from playing</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>auth_admin</allow_active> <allow_active>auth_admin</allow_active>
</defaults> </defaults>
</action> </action>
<action id="org.qt.policykit.examples.listen"> <action id="org.tqt.policykit.examples.listen">
<description>Listen</description> <description>Listen</description>
<message>Prevents PolicyKit-Qt example from listening</message> <message>Prevents PolicyKit-TQt example from listening</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>auth_self_keep</allow_active> <allow_active>auth_self_keep</allow_active>
</defaults> </defaults>
</action> </action>
<action id="org.qt.policykit.examples.delete"> <action id="org.tqt.policykit.examples.delete">
<description>Delete</description> <description>Delete</description>
<message>Prevents PolicyKit-Qt example from deleting</message> <message>Prevents PolicyKit-TQt example from deleting</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active> <allow_active>auth_admin_keep</allow_active>
</defaults> </defaults>
</action> </action>
<action id="org.qt.policykit.examples.set"> <action id="org.tqt.policykit.examples.set">
<description>Push</description> <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> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active> <allow_active>auth_admin_keep</allow_active>
</defaults> </defaults>
</action> </action>
<action id="org.qt.policykit.examples.shout"> <action id="org.tqt.policykit.examples.shout">
<description>Shout</description> <description>Shout</description>
<message>Prevents PolicyKit-Qt example from shouting</message> <message>Prevents PolicyKit-TQt example from shouting</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active> <allow_active>yes</allow_active>
</defaults> </defaults>
<annotate key="org.qt.policykit.examples.shout">foo</annotate> <annotate key="org.tqt.policykit.examples.shout">foo</annotate>
</action> </action>
</policyconfig> </policyconfig>

@ -5,81 +5,81 @@
<policyconfig> <policyconfig>
<vendor>KDE</vendor> <vendor>KDE</vendor>
<vendor_url>http://www.kde.org</vendor_url> <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> <description>Kick</description>
<message>Prevents PolicyKit-Qt example from kicking</message> <message>Prevents PolicyKit-TQt example from kicking</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>no</allow_active> <allow_active>no</allow_active>
</defaults> </defaults>
</action> </action>
<action id="org.qt.policykit.examples.cry"> <action id="org.tqt.policykit.examples.cry">
<description>Cry</description> <description>Cry</description>
<message>Prevents PolicyKit-Qt example from crying</message> <message>Prevents PolicyKit-TQt example from crying</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active> <allow_active>yes</allow_active>
</defaults> </defaults>
</action> </action>
<action id="org.qt.policykit.examples.play"> <action id="org.tqt.policykit.examples.play">
<description>Play</description> <description>Play</description>
<message>Prevents PolicyKit-Qt example from playing</message> <message>Prevents PolicyKit-TQt example from playing</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>auth_self</allow_active> <allow_active>auth_self</allow_active>
</defaults> </defaults>
</action> </action>
<action id="org.qt.policykit.examples.bleed"> <action id="org.tqt.policykit.examples.bleed">
<description>Bleed</description> <description>Bleed</description>
<message>Prevents PolicyKit-Qt example from bleeding</message> <message>Prevents PolicyKit-TQt example from bleeding</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>auth_admin</allow_active> <allow_active>auth_admin</allow_active>
</defaults> </defaults>
</action> </action>
<action id="org.qt.policykit.examples.listen"> <action id="org.tqt.policykit.examples.listen">
<description>Listen</description> <description>Listen</description>
<message>Prevents PolicyKit-Qt example from listening</message> <message>Prevents PolicyKit-TQt example from listening</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>auth_self_keep</allow_active> <allow_active>auth_self_keep</allow_active>
</defaults> </defaults>
</action> </action>
<action id="org.qt.policykit.examples.delete"> <action id="org.tqt.policykit.examples.delete">
<description>Delete</description> <description>Delete</description>
<message>Prevents PolicyKit-Qt example from deleting</message> <message>Prevents PolicyKit-TQt example from deleting</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active> <allow_active>auth_admin_keep</allow_active>
</defaults> </defaults>
</action> </action>
<!-- <!--
<action id="org.qt.policykit.examples.shout"> <action id="org.tqt.policykit.examples.shout">
<description>Shout</description> <description>Shout</description>
<message>Prevents PolicyKit-Qt example from shouting</message> <message>Prevents PolicyKit-TQt example from shouting</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active> <allow_active>yes</allow_active>
</defaults> </defaults>
<annotate key="org.qt.policykit.examples.shout">foo</annotate> <annotate key="org.tqt.policykit.examples.shout">foo</annotate>
</action> </action>
<action id="org.qt.policykit.examples.push"> <action id="org.tqt.policykit.examples.push">
<description>Push</description> <description>Push</description>
<message>Prevents PolicyKit-Qt example from pushing</message> <message>Prevents PolicyKit-TQt example from pushing</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active> <allow_active>yes</allow_active>
</defaults> </defaults>
<annotate key="org.qt.policykit.examples.push">bar</annotate> <annotate key="org.tqt.policykit.examples.push">bar</annotate>
</action> </action>
<action id="org.qt.policykit.examples.blow-up"> <action id="org.tqt.policykit.examples.blow-up">
<description>Blow Up</description> <description>Blow Up</description>
<message>Prevents PolicyKit-Qt example from blowing up</message> <message>Prevents PolicyKit-TQt example from blowing up</message>
<defaults> <defaults>
<allow_inactive>no</allow_inactive> <allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active> <allow_active>yes</allow_active>
</defaults> </defaults>
<annotate key="org.qt.policykit.examples.blow-up">booo</annotate> <annotate key="org.tqt.policykit.examples.blow-up">booo</annotate>
</action> </action>
--> -->
</policyconfig> </policyconfig>

@ -1,5 +1,5 @@
[D-BUS Service] [D-BUS Service]
Name=org.qt.policykit.examples Name=org.tqt.policykit.examples
Exec=@BIN_INSTALL_DIR@/polkit-example-helper Exec=@BIN_INSTALL_DIR@/polkit-example-helper
User=root User=root

@ -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"> <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node> <node>
<interface name="org.qt.policykit.examples"> <interface name="org.tqt.policykit.examples">
<method name="set" > <method name="set" >
<!-- IN: system user --> <!-- IN: system user -->
<arg direction="in" type="s" name="user" /> <arg direction="in" type="s" name="user" />

@ -3,24 +3,24 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
) )
set(polkit_qt_gui_SRCS set(polkit_tqt_gui_SRCS
polkitqt1-gui-action.cpp polkittqt1-gui-action.cpp
polkitqt1-gui-actionbutton.cpp polkittqt1-gui-actionbutton.cpp
polkitqt1-gui-actionbuttons.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 target_link_libraries(polkit-tqt-gui-1
${QT_QTCORE_LIBRARY} ${TQT_TQTCORE_LIBRARY}
${QT_QTGUI_LIBRARY} ${TQT_TQTGUI_LIBRARY}
${QT_QTDBUS_LIBRARY} ${TQT_TQTDBUS_LIBRARY}
${POLKIT_LIBRARIES} ${POLKIT_LIBRARIES}
polkit-qt-core-1 polkit-tqt-core-1
) )
set_target_properties(polkit-qt-gui-1 PROPERTIES VERSION ${POLKITQT-1_LIBRARY_VERSION} set_target_properties(polkit-tqt-gui-1 PROPERTIES VERSION ${POLKITTQT-1_LIBRARY_VERSION}
SOVERSION ${POLKITQT-1_ABI_VERSION} SOVERSION ${POLKITTQT-1_ABI_VERSION}
DEFINE_SYMBOL MAKE_POLKITQT1_LIB) 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})

@ -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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* Copyright (C) 2009 Dario Freddi <drf@kde.org> * Copyright (C) 2009 Dario Freddi <drf@kde.org>
* Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com> * Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com>
@ -20,9 +20,9 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#include "polkitqt1-gui-action.h" #include "polkittqt1-gui-action.h"
#include "polkitqt1-authority.h" #include "polkittqt1-authority.h"
#include "polkitqt1-subject.h" #include "polkittqt1-subject.h"
#include <TQtCore/TQCoreApplication> #include <TQtCore/TQCoreApplication>
@ -44,7 +44,7 @@ public:
TQString actionId; TQString actionId;
Authority::Result pkResult; Authority::Result pkResult;
qint64 targetPID; tqint64 targetPID;
void updateAction(); void updateAction();
bool computePkResult(); bool computePkResult();
@ -128,7 +128,7 @@ bool Action::activate()
case Authority::Yes: case Authority::Yes:
case Authority::Challenge: case Authority::Challenge:
// just Q_EMIT the 'activated' signal // just Q_EMIT the 'activated' signal
Q_EMIT authorized(); TQ_EMIT authorized();
return true; return true;
break; break;
default: default:
@ -141,7 +141,7 @@ bool Action::activate()
* Hence, they probably have a good reason for doing * Hence, they probably have a good reason for doing
* this so do let the 'activate' signal propagate.. * this so do let the 'activate' signal propagate..
*/ */
Q_EMIT authorized(); TQ_EMIT authorized();
return true; return true;
} }
break; break;
@ -207,7 +207,7 @@ void Action::Private::updateAction()
} }
break; break;
} }
Q_EMIT parent->dataChanged(); TQ_EMIT parent->dataChanged();
} }
void Action::Private::configChanged() void Action::Private::configChanged()
@ -232,7 +232,7 @@ bool Action::Private::computePkResult()
return old_result != pkResult; return old_result != pkResult;
} }
qint64 Action::targetPID() const tqint64 Action::targetPID() const
{ {
if (d->targetPID != 0) { if (d->targetPID != 0) {
return d->targetPID; return d->targetPID;
@ -241,7 +241,7 @@ qint64 Action::targetPID() const
} }
} }
void Action::setTargetPID(qint64 pid) void Action::setTargetPID(tqint64 pid)
{ {
d->targetPID = pid; d->targetPID = pid;
@ -512,4 +512,4 @@ TQString Action::actionId() const
} }
#include "polkitqt1-gui-action.moc" #include "polkittqt1-gui-action.moc"

@ -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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* Copyright (C) 2009 Dario Freddi <drf@kde.org> * Copyright (C) 2009 Dario Freddi <drf@kde.org>
* *
@ -19,10 +19,10 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKITQT1_GUI_ACTION_H #ifndef POLKITTQT1_GUI_ACTION_H
#define POLKITQT1_GUI_ACTION_H #define POLKITTQT1_GUI_ACTION_H
#include "polkitqt1-export.h" #include "polkittqt1-export.h"
#include <TQtGui/TQAction> #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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* \author Dario Freddi <drf@kde.org> * \author Dario Freddi <drf@kde.org>
* *
@ -50,7 +50,7 @@ namespace Gui
* *
* \see ActionButton * \see ActionButton
*/ */
class POLKITQT1_EXPORT Action : public TQAction class POLKITTQT1_EXPORT Action : public TQAction
{ {
Q_OBJECT Q_OBJECT
TQ_DISABLE_COPY(Action) TQ_DISABLE_COPY(Action)
@ -69,7 +69,7 @@ public:
// Future usage = 256, // Future usage = 256,
All = 512 All = 512
}; };
Q_DECLARE_FLAGS(States, State) TQ_DECLARE_FLAGS(States, State)
/** /**
* Constructs a new Action item * Constructs a new Action item
@ -207,7 +207,7 @@ public:
* *
* \param pid The target process id; 0 if it is the current process * \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 * Gets the text of the action when it is in the specified state
@ -265,7 +265,7 @@ public:
/** /**
* \see setTargetPID * \see setTargetPID
*/ */
qint64 targetPID() const; tqint64 targetPID() const;
/** /**
* This method can be used to check the if the current action * 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 #endif

@ -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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* Copyright (C) 2009 Dario Freddi <drf@kde.org> * Copyright (C) 2009 Dario Freddi <drf@kde.org>
* *
@ -19,9 +19,9 @@
* Boston, MA 02110-1301, USA. * 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 namespace PolkitTQt1
{ {
@ -55,9 +55,9 @@ ActionButton::~ActionButton()
void ActionButtonPrivate::updateButton() void ActionButtonPrivate::updateButton()
{ {
Q_Q(ActionButton); TQ_Q(ActionButton);
Q_FOREACH(TQAbstractButton *ent, buttons) { TQ_FOREACH(TQAbstractButton *ent, buttons) {
ent->setVisible(q->isVisible()); ent->setVisible(q->isVisible());
ent->setEnabled(q->isEnabled()); ent->setEnabled(q->isEnabled());
ent->setText(q->text()); ent->setText(q->text());
@ -78,10 +78,10 @@ void ActionButtonPrivate::updateButton()
bool ActionButton::activate() bool ActionButton::activate()
{ {
Q_D(ActionButton); TQ_D(ActionButton);
bool tg = false; bool tg = false;
Q_FOREACH(TQAbstractButton *ent, d->buttons) { TQ_FOREACH(TQAbstractButton *ent, d->buttons) {
if (ent->isCheckable()) { if (ent->isCheckable()) {
// we set the the current Action state // we set the the current Action state
ent->setChecked(isChecked()); ent->setChecked(isChecked());
@ -99,10 +99,10 @@ bool ActionButton::activate()
void ActionButton::setButton(TQAbstractButton *button) void ActionButton::setButton(TQAbstractButton *button)
{ {
Q_D(ActionButton); TQ_D(ActionButton);
// First, let's clear the list // First, let's clear the list
Q_FOREACH(TQAbstractButton *ent, d->buttons) { TQ_FOREACH(TQAbstractButton *ent, d->buttons) {
d->removeButton(ent); d->removeButton(ent);
} }
@ -112,7 +112,7 @@ void ActionButton::setButton(TQAbstractButton *button)
void ActionButtonPrivate::addButton(TQAbstractButton *button) void ActionButtonPrivate::addButton(TQAbstractButton *button)
{ {
Q_Q(ActionButton); TQ_Q(ActionButton);
buttons.append(button); buttons.append(button);
TQObject::connect(button, SIGNAL(clicked(bool)), q, SLOT(streamClicked(bool))); 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 // if we are not checkable BUT the button
// is (eg a TQCheckBox) we should set all buttons to // is (eg a TQCheckBox) we should set all buttons to
// checkable. // checkable.
Q_FOREACH(TQAbstractButton *ent, buttons) { TQ_FOREACH(TQAbstractButton *ent, buttons) {
ent->setCheckable(true); ent->setCheckable(true);
} }
// set the checkable state of Action to store the initial state // 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) void ActionButtonPrivate::removeButton(TQAbstractButton *button)
{ {
Q_Q(ActionButton); TQ_Q(ActionButton);
if (buttons.contains(button)) { if (buttons.contains(button)) {
TQObject::disconnect(button, SIGNAL(clicked(bool)), q, SLOT(streamClicked(bool))); TQObject::disconnect(button, SIGNAL(clicked(bool)), q, SLOT(streamClicked(bool)));
@ -147,20 +147,20 @@ void ActionButtonPrivate::removeButton(TQAbstractButton *button)
TQAbstractButton *ActionButton::button() const TQAbstractButton *ActionButton::button() const
{ {
Q_D(const ActionButton); TQ_D(const ActionButton);
return d->buttons.first(); return d->buttons.first();
} }
void ActionButtonPrivate::streamClicked(bool c) 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"

@ -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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* Copyright (C) 2009 Dario Freddi <drf@kde.org> * Copyright (C) 2009 Dario Freddi <drf@kde.org>
* *
@ -19,11 +19,11 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKITQT1_GUI_ACTIONBUTTON_H #ifndef POLKITTQT1_GUI_ACTIONBUTTON_H
#define POLKITQT1_GUI_ACTIONBUTTON_H #define POLKITTQT1_GUI_ACTIONBUTTON_H
#include "polkitqt1-export.h" #include "polkittqt1-export.h"
#include "polkitqt1-gui-action.h" #include "polkittqt1-gui-action.h"
class TQAbstractButton; class TQAbstractButton;
@ -35,7 +35,7 @@ namespace Gui
class ActionButtonPrivate; 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 Daniel Nicoletti <dantti85-pk@yahoo.com.br>
* \author Dario Freddi <drf@kde.org> * \author Dario Freddi <drf@kde.org>
* *
@ -50,10 +50,10 @@ class ActionButtonPrivate;
* permission to perform the given action. If you set 'noEnabled' * permission to perform the given action. If you set 'noEnabled'
* to \c true it will be emitted when PolKitResult is NO. * 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_OBJECT
Q_DECLARE_PRIVATE(ActionButton) TQ_DECLARE_PRIVATE(ActionButton)
TQ_DISABLE_COPY(ActionButton) TQ_DISABLE_COPY(ActionButton)
public: public:

@ -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) 2009 Dario Freddi <drf@kde.org>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,10 +18,10 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKITQT1_GUI_ACTIONBUTTON_P_H #ifndef POLKITTQT1_GUI_ACTIONBUTTON_P_H
#define POLKITQT1_GUI_ACTIONBUTTON_P_H #define POLKITTQT1_GUI_ACTIONBUTTON_P_H
#include <polkitqt1-gui-actionbutton.h> #include <polkittqt1-gui-actionbutton.h>
#include <TQtCore/TQList> #include <TQtCore/TQList>
#include <TQtGui/TQAbstractButton> #include <TQtGui/TQAbstractButton>
@ -41,7 +41,7 @@ public:
void updateButton(); void updateButton();
void streamClicked(bool); void streamClicked(bool);
Q_DECLARE_PUBLIC(ActionButton) TQ_DECLARE_PUBLIC(ActionButton)
ActionButton *q_ptr; ActionButton *q_ptr;
TQList<TQAbstractButton *> buttons; TQList<TQAbstractButton *> buttons;

@ -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) 2009 Dario Freddi <drf@kde.org>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,9 +18,9 @@
* Boston, MA 02110-1301, USA. * 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 namespace PolkitTQt1
{ {
@ -40,28 +40,28 @@ ActionButtons::~ActionButtons()
void ActionButtons::setButtons(const TQList<TQAbstractButton *> &buttons) void ActionButtons::setButtons(const TQList<TQAbstractButton *> &buttons)
{ {
Q_FOREACH(TQAbstractButton *ent, buttons) { TQ_FOREACH(TQAbstractButton *ent, buttons) {
addButton(ent); addButton(ent);
} }
} }
TQList<TQAbstractButton *> ActionButtons::buttons() const TQList<TQAbstractButton *> ActionButtons::buttons() const
{ {
Q_D(const ActionButtons); TQ_D(const ActionButtons);
return d->buttons; return d->buttons;
} }
void ActionButtons::addButton(TQAbstractButton *button) void ActionButtons::addButton(TQAbstractButton *button)
{ {
Q_D(ActionButtons); TQ_D(ActionButtons);
d->addButton(button); d->addButton(button);
} }
void ActionButtons::removeButton(TQAbstractButton *button) void ActionButtons::removeButton(TQAbstractButton *button)
{ {
Q_D(ActionButtons); TQ_D(ActionButtons);
d->removeButton(button); d->removeButton(button);
} }
@ -70,4 +70,4 @@ void ActionButtons::removeButton(TQAbstractButton *button)
} }
#include "polkitqt1-gui-actionbuttons.moc" #include "polkittqt1-gui-actionbuttons.moc"

@ -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) 2009 Dario Freddi <drf@kde.org>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,10 +18,10 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKITQT1_GUI_ACTIONBUTTONS_H #ifndef POLKITTQT1_GUI_ACTIONBUTTONS_H
#define POLKITQT1_GUI_ACTIONBUTTONS_H #define POLKITTQT1_GUI_ACTIONBUTTONS_H
#include "polkitqt1-gui-actionbutton.h" #include "polkittqt1-gui-actionbutton.h"
namespace PolkitTQt1 namespace PolkitTQt1
{ {
@ -31,7 +31,7 @@ namespace Gui
class ActionButtonsPrivate; class ActionButtonsPrivate;
/** /**
* \class ActionButtons polkitqt1-gui-actionbuttons.h ActionButtons * \class ActionButtons polkittqt1-gui-actionbuttons.h ActionButtons
* \author Dario Freddi <drf@kde.org> * \author Dario Freddi <drf@kde.org>
* *
* \brief Class used to hold and update a list of TQAbstractButtons * \brief Class used to hold and update a list of TQAbstractButtons
@ -46,7 +46,7 @@ class ActionButtonsPrivate;
class ActionButtons : public ActionButton class ActionButtons : public ActionButton
{ {
Q_OBJECT Q_OBJECT
Q_DECLARE_PRIVATE(ActionButtons) TQ_DECLARE_PRIVATE(ActionButtons)
TQ_DISABLE_COPY(ActionButtons) TQ_DISABLE_COPY(ActionButtons)
public: public:

@ -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) 2009 Dario Freddi <drf@kde.org>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
@ -18,10 +18,10 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKITQT1_GUI_ACTIONBUTTONS_P_H #ifndef POLKITTQT1_GUI_ACTIONBUTTONS_P_H
#define POLKITQT1_GUI_ACTIONBUTTONS_P_H #define POLKITTQT1_GUI_ACTIONBUTTONS_P_H
#include "polkitqt1-gui-actionbutton_p.h" #include "polkittqt1-gui-actionbutton_p.h"
/** /**
* \internal * \internal

@ -1 +0,0 @@
#include "../polkitqt1-actiondescription.h"

@ -1 +0,0 @@
#include "../../polkitqt1-agent-listener.h"

@ -1 +0,0 @@
#include "../../polkitqt1-agent-session.h"

@ -1 +0,0 @@
#include "../polkitqt1-authority.h"

@ -1 +0,0 @@
#include "../polkitqt1-details.h"

@ -1 +0,0 @@
#include "../../polkitqt1-gui-action.h"

@ -1 +0,0 @@
#include "../../polkitqt1-gui-actionbutton.h"

@ -1 +0,0 @@
#include "../../polkitqt1-gui-actionbuttons.h"

@ -1 +0,0 @@
#include "../polkitqt1-identity.h"

@ -1 +0,0 @@
#include "../polkitqt1-subject.h"

@ -1 +0,0 @@
#include "../polkitqt1-temporaryauthorization.h"

@ -0,0 +1 @@
#include "../polkittqt1-actiondescription.h"

@ -0,0 +1 @@
#include "../../polkittqt1-agent-listener.h"

@ -0,0 +1 @@
#include "../../polkittqt1-agent-session.h"

@ -0,0 +1 @@
#include "../polkittqt1-authority.h"

@ -0,0 +1 @@
#include "../polkittqt1-details.h"

@ -0,0 +1 @@
#include "../../polkittqt1-gui-action.h"

@ -0,0 +1 @@
#include "../../polkittqt1-gui-actionbutton.h"

@ -0,0 +1 @@
#include "../../polkittqt1-gui-actionbuttons.h"

@ -0,0 +1 @@
#include "../polkittqt1-identity.h"

@ -0,0 +1 @@
#include "../polkittqt1-subject.h"

@ -0,0 +1 @@
#include "../polkittqt1-temporaryauthorization.h"

@ -3,9 +3,9 @@ exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@LIB_INSTALL_DIR@ libdir=@LIB_INSTALL_DIR@
includedir=@CMAKE_INSTALL_PREFIX@/include includedir=@CMAKE_INSTALL_PREFIX@/include
Name: polkit-qt-1 Name: polkit-tqt-1
Description: Convenience library for using polkit with a TQt-styled API Description: Convenience library for using polkit with a TQt-styled API
Version: @POLKITQT-1_VERSION_STRING@ Version: @POLKITTQT-1_VERSION_STRING@
Requires: polkit-qt-core-1 polkit-qt-gui-1 polkit-qt-agent-1 Requires: polkit-tqt-core-1 polkit-tqt-gui-1 polkit-tqt-agent-1
Libs: -L${libdir} -lpolkit-qt-core-1 -lpolkit-qt-gui-1 -lpolkit-qt-agent-1 Libs: -L${libdir} -lpolkit-tqt-core-1 -lpolkit-tqt-gui-1 -lpolkit-tqt-agent-1
Cflags: -I${includedir} Cflags: -I${includedir}

@ -3,9 +3,9 @@ exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@LIB_INSTALL_DIR@ libdir=@LIB_INSTALL_DIR@
includedir=@CMAKE_INSTALL_PREFIX@/include 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 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 Requires: TQtCore TQtGui
Libs: -L${libdir} -lpolkit-qt-agent-1 Libs: -L${libdir} -lpolkit-tqt-agent-1
Cflags: -I${includedir} Cflags: -I${includedir}

@ -3,9 +3,9 @@ exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@LIB_INSTALL_DIR@ libdir=@LIB_INSTALL_DIR@
includedir=@CMAKE_INSTALL_PREFIX@/include 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 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 Requires: TQtCore
Libs: -L${libdir} -lpolkit-qt-core-1 Libs: -L${libdir} -lpolkit-tqt-core-1
Cflags: -I${includedir} Cflags: -I${includedir}

@ -3,9 +3,9 @@ exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@LIB_INSTALL_DIR@ libdir=@LIB_INSTALL_DIR@
includedir=@CMAKE_INSTALL_PREFIX@/include 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 Description: Convenience library for using polkit with a TQt-styled API, GUI classes
Version: @POLKITQT-1_VERSION_STRING@ Version: @POLKITTQT-1_VERSION_STRING@
Requires: TQtCore TQtGui polkit-qt-core-1 Requires: TQtCore TQtGui polkit-tqt-core-1
Libs: -L${libdir} -lpolkit-qt-gui-1 Libs: -L${libdir} -lpolkit-tqt-gui-1
Cflags: -I${includedir} Cflags: -I${includedir}

@ -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) 2009 Dario Freddi <drf@kde.org>
* Copyright (C) 2007 David Faure <faure@kde.org> * Copyright (C) 2007 David Faure <faure@kde.org>
* *
@ -19,10 +19,10 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef POLKITQT1_EXPORT_H #ifndef POLKITTQT1_EXPORT_H
#define POLKITQT1_EXPORT_H #define POLKITTQT1_EXPORT_H
/** \file polkitqt1-export.h /** \file polkittqt1-export.h
\brief Contains Macros for exporting symbols \brief Contains Macros for exporting symbols
This file contains macros needed for exporting/importing symbols This file contains macros needed for exporting/importing symbols
@ -30,15 +30,15 @@
#include <TQtCore/TQtGlobal> #include <TQtCore/TQtGlobal>
#ifndef POLKITQT1_EXPORT #ifndef POLKITTQT1_EXPORT
# if defined(MAKE_POLKITQT1_LIB) # if defined(MAKE_POLKITTQT1_LIB)
/* We are building this library */ /* We are building this library */
# define POLKITQT1_EXPORT Q_DECL_EXPORT # define POLKITTQT1_EXPORT Q_DECL_EXPORT
# else # else
/* We are using this library */ /* We are using this library */
# define POLKITQT1_EXPORT Q_DECL_IMPORT # define POLKITTQT1_EXPORT Q_DECL_IMPORT
# endif # endif
#endif #endif
#endif /*POLKITQT1_EXPORT_H*/ #endif /*POLKITTQT1_EXPORT_H*/

@ -18,22 +18,22 @@
* Boston, MA 02110-1301, USA. * Boston, MA 02110-1301, USA.
*/ */
#ifndef _POLKITQT1_VERSION_H_ #ifndef _POLKITTQT1_VERSION_H_
#define _POLKITQT1_VERSION_H_ #define _POLKITTQT1_VERSION_H_
#include "polkitqt1-export.h" #include "polkittqt1-export.h"
/// @brief PolkitTQt-1 version as string at compile time. /// @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 /// @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 /// @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 /// @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 * \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 * This function can be used for preprocessing. For version information at runtime
* use the version methods in the PolkitTQt-1 namespace. * 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 * \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 * 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. * use the version methods in the PolkitTQt-1 namespace.
*/ */
#define POLKITQT1_VERSION \ #define POLKITTQT1_VERSION \
POLKITQT1_MAKE_VERSION(POLKITQT1_VERSION_MAJOR,POLKITQT1_VERSION_MINOR,POLKITQT1_VERSION_PATCH) 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 * \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: * This macro is typically used to compile conditionally a part of code:
* \code * \code
* #if POLKITQT1_IS_VERSION(2,1) * #if POLKITTQT1_IS_VERSION(2,1)
* // Code for PolkitTQt-1 2.1 * // Code for PolkitTQt-1 2.1
* #else * #else
* // Code for PolkitTQt-1 2.0 * // Code for PolkitTQt-1 2.0
@ -68,7 +68,7 @@
* For version information at runtime * For version information at runtime
* use the version methods in the PolkitTQt-1 namespace. * 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 { namespace PolkitTQt1 {
@ -77,30 +77,30 @@ namespace PolkitTQt1 {
* 1 for %PolkitTQt-1 1.0.2. * 1 for %PolkitTQt-1 1.0.2.
* @return the major version number at runtime. * @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. * @brief Returns the minor number of PolkitTQt-1's version, e.g.
* 0 for %PolkitTQt-1 1.0.2. * 0 for %PolkitTQt-1 1.0.2.
* @return the minor version number at runtime. * @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. * @brief Returns the patch number of PolkitTQt-1's version, e.g.
* 2 for %PolkitTQt-1 1.0.2. * 2 for %PolkitTQt-1 1.0.2.
* @return the release number at runtime. * @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". * @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. * the version number of PolkitTQt-1 at runtime.
* @return the %PolkitTQt-1 version. You can keep the string forever * @return the %PolkitTQt-1 version. You can keep the string forever
*/ */
POLKITQT1_EXPORT const char* versionString(); POLKITTQT1_EXPORT const char* versionString();
} }
#endif #endif

@ -6,15 +6,15 @@ include_directories(
${CMAKE_SOURCE_DIR}/agent ${CMAKE_SOURCE_DIR}/agent
) )
automoc4_add_executable(polkit-qt-test automoc4_add_executable(polkit-tqt-test
test.cpp test.cpp
) )
target_link_libraries(polkit-qt-test target_link_libraries(polkit-tqt-test
${QT_QTCORE_LIBRARY} ${TQT_TQTCORE_LIBRARY}
${QT_QTTEST_LIBRARY} ${TQT_TQTTEST_LIBRARY}
${QT_QTGUI_LIBRARY} ${TQT_TQTGUI_LIBRARY}
polkit-qt-core-1 polkit-tqt-core-1
) )
add_test(BaseTest ${CMAKE_CURRENT_BINARY_DIR}/polkit-qt-test) add_test(BaseTest ${CMAKE_CURRENT_BINARY_DIR}/polkit-tqt-test)

@ -1,9 +1,9 @@
#include "test.h" #include "test.h"
#include "core/polkitqt1-authority.h" #include "core/polkittqt1-authority.h"
#include "agent/polkitqt1-agent-session.h" #include "agent/polkittqt1-agent-session.h"
#include "core/polkitqt1-details.h" #include "core/polkittqt1-details.h"
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <pwd.h> #include <pwd.h>
@ -22,25 +22,25 @@ void wait()
void TestAuth::test_Auth_checkAuthorization() 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()); UnixProcessSubject process(TQCoreApplication::applicationPid());
Authority::Result result; Authority::Result result;
// Check if this method returns good authorization results // Check if this method returns good authorization results
Authority *authority = Authority::instance(); 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); TQCOMPARE(result, Authority::No);
TQVERIFY(!authority->hasError()); 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); TQCOMPARE(result, Authority::Yes);
TQVERIFY(!authority->hasError()); 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); TQCOMPARE(result, Authority::Challenge);
TQVERIFY(!authority->hasError()); TQVERIFY(!authority->hasError());
// Now we try async methods // Now we try async methods
TQSignalSpy spy(authority, SIGNAL(checkAuthorizationFinished(PolkitTQt1::Authority::Result))); TQSignalSpy spy(authority, SIGNAL(checkAuthorizationFinished(PolkitTQt1::Authority::Result)));
// Call asynchronous checkAuthorization // 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 // Give the polkit time to obtain the result and emit the signal with it
wait(); wait();
// Test if the signal was emitted // Test if the signal was emitted
@ -52,14 +52,14 @@ void TestAuth::test_Auth_checkAuthorization()
spy.clear(); spy.clear();
// Let's test the cancellability // 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(); authority->checkAuthorizationCancel();
// Wait and check if the signal arrieved // Wait and check if the signal arrieved
wait(); wait();
TQCOMPARE(spy.count(), 0); TQCOMPARE(spy.count(), 0);
// Check if it can cancel user authentication dialog // 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 // Show it for second
sleep(1); sleep(1);
// And now kill it // And now kill it
@ -71,15 +71,15 @@ void TestAuth::test_Auth_checkAuthorization()
void TestAuth::test_Auth_enumerateActions() 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(); ActionDescription::List list = Authority::instance()->enumerateActionsSync();
TQVERIFY(!Authority::instance()->hasError()); TQVERIFY(!Authority::instance()->hasError());
// Check whether enumerateAction returns at least example actions // Check whether enumerateAction returns at least example actions
int count = 0; int count = 0;
Q_FOREACH(const ActionDescription &ad, list) { Q_FOREACH(const ActionDescription &ad, list) {
if ((ad.actionId() == "org.qt.policykit.examples.kick") || if ((ad.actionId() == "org.tqt.policykit.examples.kick") ||
(ad.actionId() == "org.qt.policykit.examples.cry") || (ad.actionId() == "org.tqt.policykit.examples.cry") ||
(ad.actionId() == "org.qt.policykit.examples.bleed")) (ad.actionId() == "org.tqt.policykit.examples.bleed"))
count++; count++;
} }
TQCOMPARE(count, 3); TQCOMPARE(count, 3);
@ -95,9 +95,9 @@ void TestAuth::test_Auth_enumerateActions()
list = qVariantValue<PolkitTQt1::ActionDescription::List> (spy.takeFirst()[0]); list = qVariantValue<PolkitTQt1::ActionDescription::List> (spy.takeFirst()[0]);
TQVERIFY(!Authority::instance()->hasError()); TQVERIFY(!Authority::instance()->hasError());
Q_FOREACH(const ActionDescription &ad, list) { Q_FOREACH(const ActionDescription &ad, list) {
if ((ad.actionId() == "org.qt.policykit.examples.kick") || if ((ad.actionId() == "org.tqt.policykit.examples.kick") ||
(ad.actionId() == "org.qt.policykit.examples.cry") || (ad.actionId() == "org.tqt.policykit.examples.cry") ||
(ad.actionId() == "org.qt.policykit.examples.bleed")) (ad.actionId() == "org.tqt.policykit.examples.bleed"))
count++; count++;
} }
TQCOMPARE(count, 3); TQCOMPARE(count, 3);
@ -176,7 +176,7 @@ void TestAuth::test_Authority()
void TestAuth::test_Subject() void TestAuth::test_Subject()
{ {
// Get pid of this appication // Get pid of this appication
qint64 pid = TQCoreApplication::applicationPid(); tqint64 pid = TQCoreApplication::applicationPid();
// Create unix process for it // Create unix process for it
UnixProcessSubject *process = new UnixProcessSubject(pid); UnixProcessSubject *process = new UnixProcessSubject(pid);
// Test if pid doesn't differ // Test if pid doesn't differ
@ -205,7 +205,7 @@ void TestAuth::test_Session()
TQCOMPARE(spy_completed.count(), 1); TQCOMPARE(spy_completed.count(), 1);
//UnixProcess *process = new UnixProcess(TQCoreApplication::applicationPid()); //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() << "COMPLETED:" << spy_completed.count();
tqDebug() << "REQUEST:" << spy_request.count(); tqDebug() << "REQUEST:" << spy_request.count();

Loading…
Cancel
Save