KDECore
FakeHelperProxy.h
Go to the documentation of this file.
00001 /* 00002 * Copyright (C) 2010 Dario Freddi <drf@kde.org> 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 FAKEHELPERPROXY_H 00021 #define FAKEHELPERPROXY_H 00022 00023 #include "HelperProxy.h" 00024 00025 namespace KAuth { 00026 00027 class FakeHelperProxy : public HelperProxy 00028 { 00029 Q_OBJECT 00030 Q_INTERFACES(KAuth::HelperProxy) 00031 00032 public: 00033 FakeHelperProxy(); 00034 virtual ~FakeHelperProxy(); 00035 00036 virtual void sendProgressStep(const QVariantMap& step); 00037 virtual void sendProgressStep(int step); 00038 virtual void sendDebugMessage(int level, const char* msg); 00039 virtual bool hasToStopAction(); 00040 virtual void setHelperResponder(QObject* o); 00041 virtual bool initHelper(const QString& name); 00042 virtual void stopAction(const QString& action, const QString& helperID); 00043 virtual ActionReply executeAction(const QString& action, const QString& helperID, const QVariantMap& arguments); 00044 virtual bool executeActions(const QList< QPair< QString, QVariantMap > >& list, const QString& helperID); 00045 virtual Action::AuthStatus authorizeAction(const QString& action, const QString& helperID); 00046 }; 00047 00048 } 00049 00050 #endif // FAKEHELPERPROXY_H
KDE 4.6 API Reference