KDSOAP 1.2
|
00001 /**************************************************************************** 00002 ** Copyright (C) 2010-2012 Klaralvdalens Datakonsult AB. All rights reserved. 00003 ** 00004 ** This file is part of the KD Soap library. 00005 ** 00006 ** Licensees holding valid commercial KD Soap licenses may use this file in 00007 ** accordance with the KD Soap Commercial License Agreement provided with 00008 ** the Software. 00009 ** 00010 ** 00011 ** This file may be distributed and/or modified under the terms of the 00012 ** GNU General Public License version 2 and version 3 as published by the 00013 ** Free Software Foundation and appearing in the file LICENSE.GPL.txt included. 00014 ** 00015 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00016 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00017 ** 00018 ** Contact info@kdab.com if any conditions of this licensing are not 00019 ** clear to you. 00020 ** 00021 **********************************************************************/ 00022 #ifndef KDSOAPJOB_H 00023 #define KDSOAPJOB_H 00024 00025 #include "KDSoapGlobal.h" 00026 00027 #include <QtCore/QObject> 00028 00029 class KDSoapMessage; 00030 00063 class KDSOAP_EXPORT KDSoapJob : public QObject { 00064 Q_OBJECT 00065 public: 00071 explicit KDSoapJob(QObject * parent=0); 00072 00076 ~KDSoapJob(); 00077 00081 bool isFault() const; 00082 00086 QString faultAsString() const; 00087 00092 KDSoapMessage reply() const; 00093 00097 void start(); 00098 00099 Q_SIGNALS: 00107 void finished(KDSoapJob * job); 00108 00109 protected: 00114 Q_INVOKABLE virtual void doStart() = 0; 00115 00120 void emitFinished(const KDSoapMessage & reply); 00121 00122 private: 00123 class Private; 00124 Private * const d; 00125 }; 00126 00127 #endif // KDSOAPJOB_H