Main Page   Class Hierarchy   Compound List   File List   Compound Members  

xrvariant.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 xrvariant
00023 #define xrvariant
00024 
00025 #include <qvariant.h>
00026 #include <qdom.h>
00027 #include <qdatetime.h>
00028 #include <qstring.h>
00029 #include <qvaluelist.h>
00030 #include <xrbase64.h>
00075 class XRVariant : public QVariant
00076 {
00077     public:
00083         XRVariant(const QVariant& aqv);
00088         XRVariant(QDomElement& a_xml_rpc_value);
00092         void fromDomElement(QDomElement& qde);
00098         static bool isXmlRpcType(const QVariant& qv);
00102         QDomElement toDomElement(QDomDocument& doc) const;
00103 
00104     private:
00105         /*
00106          * static private methods:
00107          */
00108         static XRVariant arrayFromDomElement(QDomElement& qde);
00109         static XRVariant structFromDomElement(QDomElement& qde);
00110 };
00111 
00112 #endif

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