diff options
Diffstat (limited to 'agent/polkitqtlistener.cpp')
-rw-r--r-- | agent/polkitqtlistener.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/agent/polkitqtlistener.cpp b/agent/polkitqtlistener.cpp index ea0ad2dbf..dc5beb052 100644 --- a/agent/polkitqtlistener.cpp +++ b/agent/polkitqtlistener.cpp @@ -1,5 +1,5 @@ /* - * This file is part of the Polkit-qt project + * This file is part of the Polkit-tqt project * Copyright (C) 2009 Jaroslav Reznik <jreznik@redhat.com> * * This library is free software; you can redistribute it and/or @@ -17,11 +17,11 @@ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * - * polkit-qt-listener based on code by David Zeuthen <davidz@redhat.com> + * polkit-tqt-listener based on code by David Zeuthen <davidz@redhat.com> */ -#include "polkitqtlistener_p.h" +#include "polkittqtlistener_p.h" #include <stdio.h> #include <TQtCore/TQDebug> @@ -44,7 +44,7 @@ struct _PolkitTQtListenerClass { PolkitAgentListenerClass parent_class; }; -static void polkit_qt_listener_initiate_authentication(PolkitAgentListener *listener, +static void polkit_tqt_listener_initiate_authentication(PolkitAgentListener *listener, const gchar *action_id, const gchar *message, const gchar *icon_name, @@ -55,29 +55,29 @@ static void polkit_qt_listener_initiate_authentication(PolkitAgentListener *lis GAsyncReadyCallback callback, gpointer user_data); -static gboolean polkit_qt_listener_initiate_authentication_finish(PolkitAgentListener *listener, +static gboolean polkit_tqt_listener_initiate_authentication_finish(PolkitAgentListener *listener, GAsyncResult *res, GError **error); -G_DEFINE_TYPE(PolkitTQtListener, polkit_qt_listener, POLKIT_AGENT_TYPE_LISTENER); +G_DEFINE_TYPE(PolkitTQtListener, polkit_tqt_listener, POLKIT_AGENT_TYPE_LISTENER); -static void polkit_qt_listener_init(PolkitTQtListener *listener) +static void polkit_tqt_listener_init(PolkitTQtListener *listener) { g_type_init(); } -static void polkit_qt_listener_finalize(GObject *object) +static void polkit_tqt_listener_finalize(GObject *object) { PolkitTQtListener *listener; - listener = POLKIT_QT_LISTENER(object); + listener = POLKIT_TQT_LISTENER(object); - if (G_OBJECT_CLASS(polkit_qt_listener_parent_class)->finalize != NULL) { - G_OBJECT_CLASS(polkit_qt_listener_parent_class)->finalize(object); + if (G_OBJECT_CLASS(polkit_tqt_listener_parent_class)->finalize != NULL) { + G_OBJECT_CLASS(polkit_tqt_listener_parent_class)->finalize(object); } } -static void polkit_qt_listener_class_init(PolkitTQtListenerClass *klass) +static void polkit_tqt_listener_class_init(PolkitTQtListenerClass *klass) { GObjectClass *gobject_class; PolkitAgentListenerClass *listener_class; @@ -85,15 +85,15 @@ static void polkit_qt_listener_class_init(PolkitTQtListenerClass *klass) gobject_class = G_OBJECT_CLASS(klass); listener_class = POLKIT_AGENT_LISTENER_CLASS(klass); - gobject_class->finalize = polkit_qt_listener_finalize; + gobject_class->finalize = polkit_tqt_listener_finalize; - listener_class->initiate_authentication = polkit_qt_listener_initiate_authentication; - listener_class->initiate_authentication_finish = polkit_qt_listener_initiate_authentication_finish; + listener_class->initiate_authentication = polkit_tqt_listener_initiate_authentication; + listener_class->initiate_authentication_finish = polkit_tqt_listener_initiate_authentication_finish; } -PolkitAgentListener *polkit_qt_listener_new(void) +PolkitAgentListener *polkit_tqt_listener_new(void) { - return POLKIT_AGENT_LISTENER(g_object_new(POLKIT_QT_TYPE_LISTENER, NULL)); + return POLKIT_AGENT_LISTENER(g_object_new(POLKIT_TQT_TYPE_LISTENER, NULL)); } static void cancelled_cb(GCancellable *cancellable, gpointer user_data) @@ -101,7 +101,7 @@ static void cancelled_cb(GCancellable *cancellable, gpointer user_data) ListenerAdapter::instance()->cancelled_cb((PolkitAgentListener *)user_data); } -static void polkit_qt_listener_initiate_authentication(PolkitAgentListener *agent_listener, +static void polkit_tqt_listener_initiate_authentication(PolkitAgentListener *agent_listener, const gchar *action_id, const gchar *message, const gchar *icon_name, @@ -112,14 +112,14 @@ static void polkit_qt_listener_initiate_authentication(PolkitAgentListener *age GAsyncReadyCallback callback, gpointer user_data) { - tqDebug() << "Listener adapter polkit_qt_listener_initiate_authentication"; - PolkitTQtListener *listener = POLKIT_QT_LISTENER(agent_listener); + tqDebug() << "Listener adapter polkit_tqt_listener_initiate_authentication"; + PolkitTQtListener *listener = POLKIT_TQT_LISTENER(agent_listener); // The result of asynchronous method will be created here and it will be pushed to the listener. GSimpleAsyncResult *result = g_simple_async_result_new((GObject *) listener, callback, user_data, agent_listener); tqDebug() << "GSimpleAsyncResult:" << result; - ListenerAdapter::instance()->polkit_qt_listener_initiate_authentication(agent_listener, + ListenerAdapter::instance()->polkit_tqt_listener_initiate_authentication(agent_listener, action_id, message, icon_name, @@ -138,12 +138,12 @@ static void polkit_qt_listener_initiate_authentication(PolkitAgentListener *age } -static gboolean polkit_qt_listener_initiate_authentication_finish(PolkitAgentListener *listener, +static gboolean polkit_tqt_listener_initiate_authentication_finish(PolkitAgentListener *listener, GAsyncResult *res, GError **error) { - tqDebug() << "Listener adapter polkit_qt_listener_initiate_authentication_finish"; - return ListenerAdapter::instance()->polkit_qt_listener_initiate_authentication_finish(listener, + tqDebug() << "Listener adapter polkit_tqt_listener_initiate_authentication_finish"; + return ListenerAdapter::instance()->polkit_tqt_listener_initiate_authentication_finish(listener, res, error); } |