KD SOAP
 All Classes Functions Enumerations Enumerator Pages
KDDateTime.h
1 /****************************************************************************
2 ** Copyright (C) 2010-2013 Klaralvdalens Datakonsult AB. All rights reserved.
3 **
4 ** This file is part of the KD Soap library.
5 **
6 ** Licensees holding valid commercial KD Soap licenses may use this file in
7 ** accordance with the KD Soap Commercial License Agreement provided with
8 ** the Software.
9 **
10 **
11 ** This file may be distributed and/or modified under the terms of the
12 ** GNU Lesser General Public License version 2 and version 3 as published by the
13 ** Free Software Foundation and appearing in the file LICENSE.LGPL.txt included.
14 **
15 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 **
18 ** Contact info@kdab.com if any conditions of this licensing are not
19 ** clear to you.
20 **
21 **********************************************************************/
22 #ifndef KDDATETIME_H
23 #define KDDATETIME_H
24 
25 #include "KDSoapGlobal.h"
26 
27 #include <QtCore/QDateTime>
28 #include <QtCore/QVariant>
29 #include <QtCore/QSharedDataPointer>
30 
31 class KDDateTimeData;
32 
39 class KDSOAP_EXPORT KDDateTime : public QDateTime
40 {
41 public:
42  KDDateTime();
43  KDDateTime(const KDDateTime &);
48  KDDateTime(const QDateTime &);
49  KDDateTime &operator=(const KDDateTime &);
50  ~KDDateTime();
51 
55  QString timeZone() const;
60  void setTimeZone(const QString& timeZone);
61 
65  static KDDateTime fromDateString(const QString& s);
66 
70  QString toDateString() const;
71 
72 private:
73  QSharedDataPointer<KDDateTimeData> d;
74 };
75 
76 Q_DECLARE_METATYPE(KDDateTime)
77 
78 #endif // KDDATETIME_H

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-soap/