summaryrefslogtreecommitdiffstats
path: root/core/polkitqt1-authority.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/polkitqt1-authority.h')
-rw-r--r--core/polkitqt1-authority.h64
1 files changed, 32 insertions, 32 deletions
diff --git a/core/polkitqt1-authority.h b/core/polkitqt1-authority.h
index 64ebb8f13..6a0bb1f8e 100644
--- a/core/polkitqt1-authority.h
+++ b/core/polkitqt1-authority.h
@@ -30,20 +30,20 @@
#include "polkitqt1-temporaryauthorization.h"
#include "polkitqt1-actiondescription.h"
-#include <QtCore/QObject>
-#include <QtCore/QMetaType>
+#include <TQtCore/TQObject>
+#include <TQtCore/TQMetaType>
typedef struct _PolkitAuthority PolkitAuthority;
-class QStringList;
+class TQStringList;
/**
- * \namespace PolkitQt1 PolkitQt
+ * \namespace PolkitTQt1 PolkitTQt
*
- * \brief Namespace wrapping Polkit-Qt classes
+ * \brief Namespace wrapping Polkit-TQt classes
*
- * This namespace wraps all Polkit-Qt classes.
+ * This namespace wraps all Polkit-TQt classes.
*/
-namespace PolkitQt1
+namespace PolkitTQt1
{
/**
@@ -52,7 +52,7 @@ namespace PolkitQt1
* \author Dario Freddi <drf@kde.org>
* \author Jaroslav Reznik <jreznik@redhat.com>
*
- * \brief Convenience class for Qt/KDE applications
+ * \brief Convenience class for TQt/KDE applications
*
* This class is a singleton that provides makes easy the usage
* of PolKitAuthority. It emits configChanged()
@@ -63,12 +63,12 @@ namespace PolkitQt1
* Call Authority::instance() to get an instance of the Authority object.
* Do not delete Authority::instance(), cleanup will be done automatically.
*/
-class POLKITQT1_EXPORT Authority : public QObject
+class POLKITQT1_EXPORT Authority : public TQObject
{
Q_OBJECT
- Q_DISABLE_COPY(Authority)
- Q_ENUMS(Result)
- Q_ENUMS(ErrorCode)
+ TQ_DISABLE_COPY(Authority)
+ TQ_ENUMS(Result)
+ TQ_ENUMS(ErrorCode)
public:
enum Result {
/** Result unknown */
@@ -161,7 +161,7 @@ public:
*
* \return detail message
*/
- const QString errorDetails() const;
+ const TQString errorDetails() const;
/**
* Use this method to clear the error message.
@@ -207,7 +207,7 @@ public:
* or an error has occurred
*
*/
- void checkAuthorization(const QString &actionId, const Subject &subject,
+ void checkAuthorization(const TQString &actionId, const Subject &subject,
AuthorizationFlags flags);
/**
@@ -219,7 +219,7 @@ public:
*
* \see checkAuthorization Asynchronous version of this method.
*/
- Result checkAuthorizationSync(const QString &actionId, const Subject &subject,
+ Result checkAuthorizationSync(const TQString &actionId, const Subject &subject,
AuthorizationFlags flags);
/**
@@ -264,8 +264,8 @@ public:
* \param locale the locale of the authentication agent
* \param objectPath the object path for the authentication agent
*/
- void registerAuthenticationAgent(const Subject &subject, const QString &locale,
- const QString &objectPath);
+ void registerAuthenticationAgent(const Subject &subject, const TQString &locale,
+ const TQString &objectPath);
/**
* Registers an authentication agent.
@@ -279,8 +279,8 @@ public:
* \return \c true if the Authentication agent has been successfully registered
* \c false if the Authentication agent registration failed
*/
- bool registerAuthenticationAgentSync(const Subject &subject, const QString &locale,
- const QString &objectPath);
+ bool registerAuthenticationAgentSync(const Subject &subject, const TQString &locale,
+ const TQString &objectPath);
/**
* This method can be used to cancel the registration of the authentication agent.
@@ -300,7 +300,7 @@ public:
* \return \c true if the Authentication agent has been successfully unregistered
* \c false if the Authentication agent unregistration failed
*/
- void unregisterAuthenticationAgent(const Subject &subject, const QString &objectPath);
+ void unregisterAuthenticationAgent(const Subject &subject, const TQString &objectPath);
/**
* Unregisters an Authentication agent.
@@ -313,7 +313,7 @@ public:
* \return \c true if the Authentication agent has been successfully unregistered
* \c false if the Authentication agent unregistration failed
*/
- bool unregisterAuthenticationAgentSync(const Subject &subject, const QString &objectPath);
+ bool unregisterAuthenticationAgentSync(const Subject &subject, const TQString &objectPath);
/**
* This method can be used to cancel the unregistration of the authentication agent.
@@ -330,7 +330,7 @@ public:
* \param cookie The cookie passed to the authentication agent from the authority.
* \param identity The identity that was authenticated.
*/
- void authenticationAgentResponse(const QString &cookie, const Identity &identity);
+ void authenticationAgentResponse(const TQString &cookie, const Identity &identity);
/**
* Provide response that \p identity successfully authenticated for the authentication request identified by \p cookie.
@@ -343,7 +343,7 @@ public:
* \return \c true if authority acknowledged the call, \c false if error is set.
*
*/
- bool authenticationAgentResponseSync(const QString& cookie, const PolkitQt1::Identity& identity);
+ bool authenticationAgentResponseSync(const TQString& cookie, const PolkitTQt1::Identity& identity);
/**
* This method can be used to cancel the authenticationAgentResponseAsync method.
@@ -417,7 +417,7 @@ public:
*
* \param id the identifier of the temporary authorization
*/
- void revokeTemporaryAuthorization(const QString &id);
+ void revokeTemporaryAuthorization(const TQString &id);
/**
* Revokes temporary authorization by \p id
@@ -429,7 +429,7 @@ public:
* \return \c true if the temporary authorization was revoked
* \c false if the revoking failed
*/
- bool revokeTemporaryAuthorizationSync(const QString &id);
+ bool revokeTemporaryAuthorizationSync(const TQString &id);
/**
* This method can be used to cancel the method revokeTemporaryAuthorizationAsync.
@@ -465,14 +465,14 @@ Q_SIGNALS:
*
* The argument is the result of authorization.
*/
- void checkAuthorizationFinished(PolkitQt1::Authority::Result);
+ void checkAuthorizationFinished(PolkitTQt1::Authority::Result);
/**
* This signal is emitted when asynchronous method enumerateActions finishes.
*
* The argument is the list of all Action IDs.
*/
- void enumerateActionsFinished(PolkitQt1::ActionDescription::List);
+ void enumerateActionsFinished(PolkitTQt1::ActionDescription::List);
/**
* This signal is emitted when asynchronous method registerAuthenticationAgent finishes.
@@ -504,7 +504,7 @@ Q_SIGNALS:
*
* \note Free all TemporaryAuthorization objects using \p delete operator.
*/
- void enumerateTemporaryAuthorizationsFinished(PolkitQt1::TemporaryAuthorization::List);
+ void enumerateTemporaryAuthorizationsFinished(PolkitTQt1::TemporaryAuthorization::List);
/**
* This signal is emmited when asynchronous method revokeTemporaryAuthorizations finishes.
@@ -522,18 +522,18 @@ Q_SIGNALS:
void revokeTemporaryAuthorizationFinished(bool);
private:
- explicit Authority(PolkitAuthority *context, QObject *parent = 0);
+ explicit Authority(PolkitAuthority *context, TQObject *parent = 0);
class Private;
friend class Private;
Private * const d;
- Q_PRIVATE_SLOT(d, void dbusFilter(const QDBusMessage &message))
+ Q_PRIVATE_SLOT(d, void dbusFilter(const TQDBusMessage &message))
};
}
-Q_DECLARE_OPERATORS_FOR_FLAGS(PolkitQt1::Authority::AuthorizationFlags)
-Q_DECLARE_METATYPE(PolkitQt1::Authority::Result)
+Q_DECLARE_OPERATORS_FOR_FLAGS(PolkitTQt1::Authority::AuthorizationFlags)
+Q_DECLARE_METATYPE(PolkitTQt1::Authority::Result)
#endif