KDECore
kauthactionwatcher.h
Go to the documentation of this file.
00001 /* 00002 * Copyright (C) 2008 Nicola Gigante <nicola.gigante@gmail.com> 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU Lesser General Public License as published by 00006 * the Free Software Foundation; either version 2.1 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public License 00015 * along with this program; if not, write to the 00016 * Free Software Foundation, Inc., 00017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . 00018 */ 00019 00020 #ifndef ACTION_WATCHER_H 00021 #define ACTION_WATCHER_H 00022 00023 #include <QtCore/QObject> 00024 #include <QtCore/QString> 00025 00026 #include <kdecore_export.h> 00027 00028 #include "kauthactionreply.h" 00029 #include "kauthaction.h" 00030 00031 namespace KAuth 00032 { 00033 00050 class KDECORE_EXPORT ActionWatcher : public QObject 00051 { 00052 Q_OBJECT 00053 00054 class Private; 00055 Private * const d; 00056 00057 ActionWatcher(); 00058 ActionWatcher(const QString &action); 00059 00060 Q_PRIVATE_SLOT(d, void actionStartedSlot(const QString &action)) 00061 Q_PRIVATE_SLOT(d, void actionPerformedSlot(const QString &action, const ActionReply &reply)) 00062 Q_PRIVATE_SLOT(d, void progressStepSlot(const QString &action, int i)) 00063 Q_PRIVATE_SLOT(d, void progressStepSlot(const QString &action, const QVariantMap &data)) 00064 Q_PRIVATE_SLOT(d, void statusChangedSlot(const QString &action, Action::AuthStatus status)) 00065 00066 public: 00084 static ActionWatcher *watcher(const QString &action); 00085 00087 virtual ~ActionWatcher(); 00088 00090 QString action() const; 00091 00092 Q_SIGNALS: 00106 void actionStarted(); 00107 00118 void actionPerformed(const ActionReply &reply); 00119 00132 void progressStep(int progress); 00133 00147 void progressStep(const QVariantMap &data); 00148 00149 void statusChanged(int status); 00150 }; 00151 00152 } // namespace Auth 00153 00154 #endif
KDE 4.6 API Reference