KD SOAP API Documentation  2.2
KDDateTime.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** This file is part of the KD Soap project.
4 **
5 ** SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: MIT
8 **
9 ****************************************************************************/
10 #ifndef KDDATETIME_H
11 #define KDDATETIME_H
12 
13 #include "KDSoapGlobal.h"
14 
15 #include <QtCore/QDateTime>
16 #include <QtCore/QSharedDataPointer>
17 #include <QtCore/QVariant>
18 
19 class KDDateTimeData;
20 
27 class KDSOAP_EXPORT KDDateTime : public QDateTime
28 {
29 public:
30  KDDateTime();
31  KDDateTime(const KDDateTime &);
36  /*implicit*/ KDDateTime(const QDateTime &);
37  KDDateTime &operator=(const KDDateTime &);
38  ~KDDateTime();
39 
45  operator QVariant() const;
46 
50  QString timeZone() const;
55  void setTimeZone(const QString &timeZone);
56 
60  static KDDateTime fromDateString(const QString &s);
61 
65  QString toDateString() const;
66 
67 private:
68  QSharedDataPointer<KDDateTimeData> d;
69 };
70 
71 Q_DECLARE_METATYPE(KDDateTime)
72 
73 #endif // KDDATETIME_H
#define KDSOAP_EXPORT
Definition: KDSoapGlobal.h:22

© 2010-2024 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-soap/
Generated by doxygen 1.9.1