Main Page   Class Hierarchy   Compound List   File List   Compound Members  

xrmethodcall.h

00001 /*
00002 
00003 qutexrlib QT-based XML-RPC library
00004 Copyright (C) 2003  P. Oscar Boykin <boykin@pobox.com>
00005 
00006 This program is free software; you can redistribute it and/or
00007 modify it under the terms of the GNU General Public License
00008 as published by the Free Software Foundation; either version 2
00009 of the License, or (at your option) any later version.
00010 
00011 This program is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 GNU General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License
00017 along with this program; if not, write to the Free Software
00018 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019    
00020 */
00021    
00022 #ifndef xrmethodcall
00023 #define xrmethodcall
00024 
00025 #include <qstring.h>
00026 #include <qvaluelist.h>
00027 #include <qvariant.h>
00028 #include <qdom.h>
00029 #include <xrvariant.h>
00030 
00036 class XRMethodCall : public QDomDocument {
00037         
00038     public:
00046         XRMethodCall();
00051         XRMethodCall(const QString& name, const QValueList<QVariant>& params);
00058         bool parseXmlRpc();
00059 
00060         QString getMethodName() const { return _method_name; }
00061         const QValueList<QVariant>& getParams() const { return _params; }
00062         
00063     protected:
00064         static bool fromDomDoc(const QDomDocument& doc,
00065                                QString& method_name,
00066                                QValueList<QVariant>& params);
00067 
00068         static void toDomDoc(const QString& method_name,
00069                              const QValueList<QVariant>& params,
00070                              QDomDocument& doc);
00071 
00072         QString _method_name;
00073         QValueList<QVariant> _params;
00074 };
00075 
00076 #endif

Generated on Tue Feb 25 18:38:57 2003 for qutexr by doxygen1.2.15