summaryrefslogtreecommitdiffstats
path: root/agent
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-10-30 13:47:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-10-30 13:47:29 +0900
commite8494e60efeb94c67c813d1c1c038031915e8c17 (patch)
tree3238b3e8ceeb577a8eda00da66704c7e5fc6f9f5 /agent
parent28de2ff84f59ac0b173670aa9c5331bc77c1e63f (diff)
downloadpolkit-tqt-e8494e60efeb94c67c813d1c1c038031915e8c17.tar.gz
polkit-tqt-e8494e60efeb94c67c813d1c1c038031915e8c17.zip
Raw Qt->TQt conversion using tde/scripts/conversions/qt3-tqt3/convert_existing_qt3_app_to_tqt3.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'agent')
-rw-r--r--agent/listeneradapter.cpp32
-rw-r--r--agent/listeneradapter_p.h12
-rw-r--r--agent/polkitqt1-agent-listener.cpp22
-rw-r--r--agent/polkitqt1-agent-listener.h28
-rw-r--r--agent/polkitqt1-agent-session.cpp30
-rw-r--r--agent/polkitqt1-agent-session.h28
-rw-r--r--agent/polkitqtlistener.cpp24
-rw-r--r--agent/polkitqtlistener_p.h14
8 files changed, 95 insertions, 95 deletions
diff --git a/agent/listeneradapter.cpp b/agent/listeneradapter.cpp
index b25449009..231d7d752 100644
--- a/agent/listeneradapter.cpp
+++ b/agent/listeneradapter.cpp
@@ -19,11 +19,11 @@
*/
#include "listeneradapter_p.h"
-#include <QtCore/QDebug>
+#include <TQtCore/TQDebug>
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1
#include <polkitagent/polkitagent.h>
-namespace PolkitQt1
+namespace PolkitTQt1
{
namespace Agent
@@ -50,8 +50,8 @@ ListenerAdapter *ListenerAdapter::instance()
return s_globalListenerAdapter()->q;
}
-ListenerAdapter::ListenerAdapter(QObject *parent)
- : QObject(parent)
+ListenerAdapter::ListenerAdapter(TQObject *parent)
+ : TQObject(parent)
{
Q_ASSERT(!s_globalListenerAdapter()->q);
s_globalListenerAdapter()->q = this;
@@ -82,22 +82,22 @@ void ListenerAdapter::polkit_qt_listener_initiate_authentication(PolkitAgentList
GCancellable *cancellable,
GSimpleAsyncResult *result)
{
- qDebug() << "polkit_qt_listener_initiate_authentication callback for " << listener;
+ tqDebug() << "polkit_qt_listener_initiate_authentication callback for " << listener;
- PolkitQt1::Identity::List idents;
- PolkitQt1::Details dets(details);
+ PolkitTQt1::Identity::List idents;
+ PolkitTQt1::Details dets(details);
Listener *list = findListener(listener);
for (GList *identity = g_list_first(identities); identity != NULL; identity = g_list_next(identity)) {
- idents.append(PolkitQt1::Identity((PolkitIdentity *)identity->data));
+ idents.append(PolkitTQt1::Identity((PolkitIdentity *)identity->data));
}
- list->initiateAuthentication(QString::fromUtf8(action_id),
- QString::fromUtf8(message),
- QString::fromUtf8(icon_name),
+ list->initiateAuthentication(TQString::fromUtf8(action_id),
+ TQString::fromUtf8(message),
+ TQString::fromUtf8(icon_name),
dets,
- QString::fromUtf8(cookie),
+ TQString::fromUtf8(cookie),
idents,
new AsyncResult(result));
}
@@ -106,7 +106,7 @@ gboolean ListenerAdapter::polkit_qt_listener_initiate_authentication_finish(Polk
GAsyncResult *res,
GError **error)
{
- qDebug() << "polkit_qt_listener_initiate_authentication_finish callback for " << listener;
+ tqDebug() << "polkit_qt_listener_initiate_authentication_finish callback for " << listener;
GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT(res);
if (g_simple_async_result_propagate_error(simple, error)) {
@@ -117,7 +117,7 @@ gboolean ListenerAdapter::polkit_qt_listener_initiate_authentication_finish(Polk
void ListenerAdapter::cancelled_cb(PolkitAgentListener *listener)
{
- qDebug() << "cancelled_cb for " << listener;
+ tqDebug() << "cancelled_cb for " << listener;
Listener *list = findListener(listener);
@@ -126,14 +126,14 @@ void ListenerAdapter::cancelled_cb(PolkitAgentListener *listener)
void ListenerAdapter::addListener(Listener *listener)
{
- qDebug() << "Adding new listener " << listener << "for " << listener->listener();
+ tqDebug() << "Adding new listener " << listener << "for " << listener->listener();
m_listeners.append(listener);
}
void ListenerAdapter::removeListener(Listener *listener)
{
- qDebug() << "Removing listener " << listener;
+ tqDebug() << "Removing listener " << listener;
// should be safe as we don't have more than one same listener registered in one time
m_listeners.removeOne(listener);
diff --git a/agent/listeneradapter_p.h b/agent/listeneradapter_p.h
index 126cd134c..4bf754694 100644
--- a/agent/listeneradapter_p.h
+++ b/agent/listeneradapter_p.h
@@ -21,7 +21,7 @@
#ifndef LISTENER_ADAPTER_P_H
#define LISTENER_ADAPTER_P_H
-#include <QtCore/QObject>
+#include <TQtCore/TQObject>
#include "polkitqt1-agent-listener.h"
#include "polkitqt1-identity.h"
@@ -35,7 +35,7 @@ typedef struct _GError GError;
typedef int gboolean;
typedef char gchar;
-namespace PolkitQt1
+namespace PolkitTQt1
{
namespace Agent
@@ -43,10 +43,10 @@ namespace Agent
class AsyncResult;
class Listener;
-class ListenerAdapter : public QObject
+class ListenerAdapter : public TQObject
{
Q_OBJECT
- Q_DISABLE_COPY(ListenerAdapter)
+ TQ_DISABLE_COPY(ListenerAdapter)
public:
static ListenerAdapter* instance();
~ListenerAdapter() {}
@@ -70,8 +70,8 @@ private:
void removeListener(Listener *listener);
Listener* findListener(PolkitAgentListener *listener);
- explicit ListenerAdapter(QObject *parent = 0);
- QList<Listener *> m_listeners;
+ explicit ListenerAdapter(TQObject *parent = 0);
+ TQList<Listener *> m_listeners;
friend class Listener;
};
diff --git a/agent/polkitqt1-agent-listener.cpp b/agent/polkitqt1-agent-listener.cpp
index 369dd7540..c6bf63cba 100644
--- a/agent/polkitqt1-agent-listener.cpp
+++ b/agent/polkitqt1-agent-listener.cpp
@@ -20,7 +20,7 @@
#include "polkitqt1-agent-listener.h"
-#include <QtCore/QDebug>
+#include <TQtCore/TQDebug>
#include "polkitqtlistener_p.h"
@@ -29,7 +29,7 @@
#include "polkitqt1-identity.h"
#include "polkitqt1-details.h"
-namespace PolkitQt1
+namespace PolkitTQt1
{
namespace Agent
@@ -44,20 +44,20 @@ public:
#endif
};
-Listener::Listener(QObject *parent)
- : QObject(parent), d(new ListenerPrivate)
+Listener::Listener(TQObject *parent)
+ : TQObject(parent), d(new ListenerPrivate)
{
g_type_init();
d->listener = polkit_qt_listener_new();
- qDebug() << "New PolkitAgentListener " << d->listener;
+ tqDebug() << "New PolkitAgentListener " << d->listener;
ListenerAdapter::instance()->addListener(this);
}
-Listener::Listener(PolkitAgentListener *listener, QObject *parent)
- : QObject(parent), d(new ListenerPrivate)
+Listener::Listener(PolkitAgentListener *listener, TQObject *parent)
+ : TQObject(parent), d(new ListenerPrivate)
{
g_type_init();
@@ -66,7 +66,7 @@ Listener::Listener(PolkitAgentListener *listener, QObject *parent)
Listener::~Listener()
{
- qDebug("Destroying listener");
+ tqDebug("Destroying listener");
ListenerAdapter::instance()->removeListener(this);
#ifndef POLKIT_QT_1_COMPATIBILITY_MODE
@@ -79,7 +79,7 @@ Listener::~Listener()
}
}
-bool Listener::registerListener(const PolkitQt1::Subject &subject, const QString &objectPath)
+bool Listener::registerListener(const PolkitTQt1::Subject &subject, const TQString &objectPath)
{
GError *error = NULL;
@@ -97,13 +97,13 @@ bool Listener::registerListener(const PolkitQt1::Subject &subject, const QString
&error);
if (error != NULL) {
- qWarning() << QString("Cannot register authentication agent: %1").arg(error->message);
+ tqWarning() << TQString("Cannot register authentication agent: %1").arg(error->message);
g_error_free(error);
return false;
}
#ifndef POLKIT_QT_1_COMPATIBILITY_MODE
if (d->registeredHandle == NULL) {
- qWarning() << QString("Cannot register authentication agent!");
+ tqWarning() << TQString("Cannot register authentication agent!");
return false;
}
return true;
diff --git a/agent/polkitqt1-agent-listener.h b/agent/polkitqt1-agent-listener.h
index 38c2ae46f..ed48509e1 100644
--- a/agent/polkitqt1-agent-listener.h
+++ b/agent/polkitqt1-agent-listener.h
@@ -23,7 +23,7 @@
#include "polkitqt1-export.h"
-#include <QtCore/QObject>
+#include <TQtCore/TQObject>
#include "polkitqt1-agent-session.h"
@@ -31,14 +31,14 @@
typedef struct _PolkitAgentListener PolkitAgentListener;
-namespace PolkitQt1
+namespace PolkitTQt1
{
class Subject;
class Identity;
class Details;
}
-namespace PolkitQt1
+namespace PolkitTQt1
{
namespace Agent
@@ -58,15 +58,15 @@ class ListenerPrivate;
* You can also use Session class to authenticate users however it isn't required.
* \sa Session
*/
-class POLKITQT1_EXPORT Listener : public QObject
+class POLKITQT1_EXPORT Listener : public TQObject
{
Q_OBJECT
- Q_DISABLE_COPY(Listener)
+ TQ_DISABLE_COPY(Listener)
public:
/**
* \brief Constructor of Listener class
*/
- Listener(QObject *parent = 0);
+ Listener(TQObject *parent = 0);
/**
* \brief Constructor of Listener class from PolkitAgentListener
@@ -76,7 +76,7 @@ public:
* \param listener Pointer to the PolkitAgentListener
* \param parent
*/
- explicit Listener(PolkitAgentListener *listener, QObject *parent = 0);
+ explicit Listener(PolkitAgentListener *listener, TQObject *parent = 0);
virtual ~Listener();
@@ -93,7 +93,7 @@ public:
* \param objectPath DBus object path
* \return \c True if the polkitqt1-agent-listener.has been registered, \c False otherwise
*/
- bool registerListener(const PolkitQt1::Subject &subject, const QString &objectPath);
+ bool registerListener(const PolkitTQt1::Subject &subject, const TQString &objectPath);
/**
* \brief Returns pointer to the PolkitAgentListener.
@@ -123,12 +123,12 @@ public Q_SLOTS:
* authentication is done. You can pass it to the constructor of the Session class
* and then call session->result()->complete() to mark the action as done.
*/
- virtual void initiateAuthentication(const QString &actionId,
- const QString &message,
- const QString &iconName,
- const PolkitQt1::Details &details,
- const QString &cookie,
- const PolkitQt1::Identity::List &identities,
+ virtual void initiateAuthentication(const TQString &actionId,
+ const TQString &message,
+ const TQString &iconName,
+ const PolkitTQt1::Details &details,
+ const TQString &cookie,
+ const PolkitTQt1::Identity::List &identities,
AsyncResult *result) = 0;
/**
diff --git a/agent/polkitqt1-agent-session.cpp b/agent/polkitqt1-agent-session.cpp
index 52ddacf5e..add3d95b1 100644
--- a/agent/polkitqt1-agent-session.cpp
+++ b/agent/polkitqt1-agent-session.cpp
@@ -20,14 +20,14 @@
#include "polkitqt1-agent-session.h"
-#include <QtCore/QDebug>
+#include <TQtCore/TQDebug>
#include "polkitqt1-identity.h"
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1
#include <polkitagent/polkitagent.h>
-using namespace PolkitQt1::Agent;
+using namespace PolkitTQt1::Agent;
class Session::Private
{
@@ -49,8 +49,8 @@ Session::Private::~Private()
// polkitAgentSession is freed in Session d'tor
}
-Session::Session(const PolkitQt1::Identity &identity, const QString &cookie, AsyncResult *result, QObject *parent)
- : QObject(parent)
+Session::Session(const PolkitTQt1::Identity &identity, const TQString &cookie, AsyncResult *result, TQObject *parent)
+ : TQObject(parent)
, d(new Private)
{
d->result = result;
@@ -61,8 +61,8 @@ Session::Session(const PolkitQt1::Identity &identity, const QString &cookie, Asy
g_signal_connect(G_OBJECT(d->polkitAgentSession), "show-info", G_CALLBACK(Private::showInfo), this);
}
-Session::Session(PolkitAgentSession *pkAgentSession, QObject *parent)
- : QObject(parent)
+Session::Session(PolkitAgentSession *pkAgentSession, TQObject *parent)
+ : TQObject(parent)
, d(new Private)
{
d->polkitAgentSession = pkAgentSession;
@@ -85,7 +85,7 @@ void Session::initiate()
polkit_agent_session_initiate(d->polkitAgentSession);
}
-void Session::setResponse(const QString &response)
+void Session::setResponse(const TQString &response)
{
polkit_agent_session_response(d->polkitAgentSession, response.toUtf8().data());
}
@@ -102,7 +102,7 @@ AsyncResult *Session::result()
void Session::Private::completed(PolkitAgentSession *s, gboolean gained_authorization, gpointer user_data)
{
- qDebug() << "COMPLETED";
+ tqDebug() << "COMPLETED";
Session *session = (Session *)user_data;
Q_EMIT(session)->completed(gained_authorization);
@@ -113,20 +113,20 @@ void Session::Private::completed(PolkitAgentSession *s, gboolean gained_authoriz
void Session::Private::request(PolkitAgentSession *s, gchar *request, gboolean echo_on, gpointer user_data)
{
- qDebug() << "REQUEST";
- Q_EMIT((Session *)user_data)->request(QString::fromUtf8(request), echo_on);
+ tqDebug() << "REQUEST";
+ Q_EMIT((Session *)user_data)->request(TQString::fromUtf8(request), echo_on);
}
void Session::Private::showError(PolkitAgentSession *s, gchar *text, gpointer user_data)
{
- qDebug() << "showError";
- Q_EMIT((Session *)user_data)->showError(QString::fromUtf8(text));
+ tqDebug() << "showError";
+ Q_EMIT((Session *)user_data)->showError(TQString::fromUtf8(text));
}
void Session::Private::showInfo(PolkitAgentSession *s, gchar *text, gpointer user_data)
{
- qDebug() << "showInfo";
- Q_EMIT((Session *)user_data)->showInfo(QString::fromUtf8(text));
+ tqDebug() << "showInfo";
+ Q_EMIT((Session *)user_data)->showInfo(TQString::fromUtf8(text));
}
//
@@ -160,7 +160,7 @@ void AsyncResult::setCompleted()
d->result = NULL;
}
-void AsyncResult::setError(const QString &text)
+void AsyncResult::setError(const TQString &text)
{
Q_ASSERT(d->result);
g_simple_async_result_set_error(d->result, POLKIT_ERROR, POLKIT_ERROR_FAILED, "%s", text.toUtf8().data());
diff --git a/agent/polkitqt1-agent-session.h b/agent/polkitqt1-agent-session.h
index 0f763e83d..f4f4ff49c 100644
--- a/agent/polkitqt1-agent-session.h
+++ b/agent/polkitqt1-agent-session.h
@@ -21,21 +21,21 @@
#ifndef POLKITQT1_AGENT_SESSION_H
#define POLKITQT1_AGENT_SESSION_H
-#include <QtCore/QObject>
+#include <TQtCore/TQObject>
#include "polkitqt1-identity.h"
typedef struct _GSimpleAsyncResult GSimpleAsyncResult;
typedef struct _PolkitAgentSession PolkitAgentSession;
-namespace PolkitQt1
+namespace PolkitTQt1
{
/**
* \namespace Agent Agent
*
- * \brief Namespace wrapping Polkit-Qt Agent classes
+ * \brief Namespace wrapping Polkit-TQt Agent classes
*
- * This namespace wraps all Polkit-Qt Agent classes.
+ * This namespace wraps all Polkit-TQt Agent classes.
*/
namespace Agent
@@ -43,7 +43,7 @@ namespace Agent
/**
* \internal
- * \brief Encapsulation of GSimpleAsyncResult to QObject class
+ * \brief Encapsulation of GSimpleAsyncResult to TQObject class
*/
class POLKITQT1_EXPORT AsyncResult
{
@@ -62,7 +62,7 @@ public:
*
* \param text text of the error message
*/
- void setError(const QString &text);
+ void setError(const TQString &text);
private:
class Private;
@@ -77,10 +77,10 @@ private:
* authentication system for obtaining authorizations.
*
*/
-class POLKITQT1_EXPORT Session : public QObject
+class POLKITQT1_EXPORT Session : public TQObject
{
Q_OBJECT
- Q_DISABLE_COPY(Session)
+ TQ_DISABLE_COPY(Session)
public:
/**
* Create a new authentication session.
@@ -90,7 +90,7 @@ public:
* \param result Result of the authentication action. Must be finished using complete() method.
* \param parent
*/
- Session(const PolkitQt1::Identity& identity, const QString &cookie, AsyncResult *result = 0, QObject *parent = 0);
+ Session(const PolkitTQt1::Identity& identity, const TQString &cookie, AsyncResult *result = 0, TQObject *parent = 0);
/**
* Create a new authentication session from PolkitAgentSession object
@@ -100,7 +100,7 @@ public:
* \param pkAgentSession PolkitAgentSession object
* \param parent
*/
- explicit Session(PolkitAgentSession *pkAgentSession, QObject *parent = 0);
+ explicit Session(PolkitAgentSession *pkAgentSession, TQObject *parent = 0);
/**
* Destroy authentication session.
@@ -119,7 +119,7 @@ public:
*
* \param response Response from the user, typically a password
*/
- void setResponse(const QString &response);
+ void setResponse(const TQString &response);
/**
* Cancel the authentication session.
@@ -150,7 +150,7 @@ Q_SIGNALS:
* \param echo \c True if the response to the request SHOULD be echoed on the screen,
* \c False if the response MUST NOT be echoed to the screen.
*/
- void request(const QString &request, bool echo);
+ void request(const TQString &request, bool echo);
/**
* This signal will be emitted when there is information
@@ -158,7 +158,7 @@ Q_SIGNALS:
*
* \param text An error string to display to the user.
*/
- void showError(const QString &text);
+ void showError(const TQString &text);
/**
* This signal will be emitted when there is information
@@ -166,7 +166,7 @@ Q_SIGNALS:
*
* \param text A string to be displayed to the user.
*/
- void showInfo(const QString &text);
+ void showInfo(const TQString &text);
private:
class Private;
diff --git a/agent/polkitqtlistener.cpp b/agent/polkitqtlistener.cpp
index a9a93aad1..ea0ad2dbf 100644
--- a/agent/polkitqtlistener.cpp
+++ b/agent/polkitqtlistener.cpp
@@ -24,23 +24,23 @@
#include "polkitqtlistener_p.h"
#include <stdio.h>
-#include <QtCore/QDebug>
+#include <TQtCore/TQDebug>
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1
-using namespace PolkitQt1::Agent;
+using namespace PolkitTQt1::Agent;
/**
* \internal
*/
-struct _PolkitQtListener {
+struct _PolkitTQtListener {
PolkitAgentListener parent_instance;
};
/**
* \internal
*/
-struct _PolkitQtListenerClass {
+struct _PolkitTQtListenerClass {
PolkitAgentListenerClass parent_class;
};
@@ -59,16 +59,16 @@ static gboolean polkit_qt_listener_initiate_authentication_finish(PolkitAgentLis
GAsyncResult *res,
GError **error);
-G_DEFINE_TYPE(PolkitQtListener, polkit_qt_listener, POLKIT_AGENT_TYPE_LISTENER);
+G_DEFINE_TYPE(PolkitTQtListener, polkit_qt_listener, POLKIT_AGENT_TYPE_LISTENER);
-static void polkit_qt_listener_init(PolkitQtListener *listener)
+static void polkit_qt_listener_init(PolkitTQtListener *listener)
{
g_type_init();
}
static void polkit_qt_listener_finalize(GObject *object)
{
- PolkitQtListener *listener;
+ PolkitTQtListener *listener;
listener = POLKIT_QT_LISTENER(object);
@@ -77,7 +77,7 @@ static void polkit_qt_listener_finalize(GObject *object)
}
}
-static void polkit_qt_listener_class_init(PolkitQtListenerClass *klass)
+static void polkit_qt_listener_class_init(PolkitTQtListenerClass *klass)
{
GObjectClass *gobject_class;
PolkitAgentListenerClass *listener_class;
@@ -112,12 +112,12 @@ static void polkit_qt_listener_initiate_authentication(PolkitAgentListener *age
GAsyncReadyCallback callback,
gpointer user_data)
{
- qDebug() << "Listener adapter polkit_qt_listener_initiate_authentication";
- PolkitQtListener *listener = POLKIT_QT_LISTENER(agent_listener);
+ tqDebug() << "Listener adapter polkit_qt_listener_initiate_authentication";
+ PolkitTQtListener *listener = POLKIT_QT_LISTENER(agent_listener);
// The result of asynchronous method will be created here and it will be pushed to the listener.
GSimpleAsyncResult *result = g_simple_async_result_new((GObject *) listener, callback, user_data, agent_listener);
- qDebug() << "GSimpleAsyncResult:" << result;
+ tqDebug() << "GSimpleAsyncResult:" << result;
ListenerAdapter::instance()->polkit_qt_listener_initiate_authentication(agent_listener,
action_id,
@@ -142,7 +142,7 @@ static gboolean polkit_qt_listener_initiate_authentication_finish(PolkitAgentLis
GAsyncResult *res,
GError **error)
{
- qDebug() << "Listener adapter polkit_qt_listener_initiate_authentication_finish";
+ tqDebug() << "Listener adapter polkit_qt_listener_initiate_authentication_finish";
return ListenerAdapter::instance()->polkit_qt_listener_initiate_authentication_finish(listener,
res,
error);
diff --git a/agent/polkitqtlistener_p.h b/agent/polkitqtlistener_p.h
index 1447691d2..c289b3973 100644
--- a/agent/polkitqtlistener_p.h
+++ b/agent/polkitqtlistener_p.h
@@ -20,8 +20,8 @@
* polkit-qt-listener based on code by David Zeuthen <davidz@redhat.com>
*/
-#ifndef POLKITQT_LISTENER_P_H
-#define POLKITQT_LISTENER_P_H
+#ifndef POLKIQT_LISTENER_P_H
+#define POLKIQT_LISTENER_P_H
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE 1
@@ -32,14 +32,14 @@
G_BEGIN_DECLS
#define POLKIT_QT_TYPE_LISTENER (polkit_qt_listener_get_type())
-#define POLKIT_QT_LISTENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_QT_TYPE_LISTENER, PolkitQtListener))
-#define POLKIT_QT_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_QT_TYPE_LISTENER, PolkitQtListenerClass))
-#define POLKIT_QT_LISTENER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_QT_TYPE_LISTENER, PolkitQtListenerClass))
+#define POLKIT_QT_LISTENER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_QT_TYPE_LISTENER, PolkitTQtListener))
+#define POLKIT_QT_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_QT_TYPE_LISTENER, PolkitTQtListenerClass))
+#define POLKIT_QT_LISTENER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_QT_TYPE_LISTENER, PolkitTQtListenerClass))
#define POLKIT_QT_IS_LISTENER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_QT_TYPE_LISTENER))
#define POLKIT_QT_IS_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_QT_TYPE_LISTENER))
-typedef struct _PolkitQtListener PolkitQtListener;
-typedef struct _PolkitQtListenerClass PolkitQtListenerClass;
+typedef struct _PolkitTQtListener PolkitTQtListener;
+typedef struct _PolkitTQtListenerClass PolkitTQtListenerClass;
GType polkit_qt_listener_get_type(void) G_GNUC_CONST;
PolkitAgentListener *polkit_qt_listener_new(void);