KContacts

timezone.h
1 /*
2  This file is part of the KContacts framework.
3  SPDX-FileCopyrightText: 2001 Cornelius Schumacher <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef KCONTACTS_TIMEZONE_H
9 #define KCONTACTS_TIMEZONE_H
10 
11 #include "kcontacts_export.h"
12 #include <QSharedDataPointer>
13 #include <QString>
14 
15 namespace KContacts {
21 class KCONTACTS_EXPORT TimeZone
22 {
23  friend KCONTACTS_EXPORT QDataStream &operator<<(QDataStream &, const TimeZone &);
24  friend KCONTACTS_EXPORT QDataStream &operator>>(QDataStream &, TimeZone &);
25 
26 public:
30  TimeZone();
31 
37  TimeZone(int offset);
38 
42  TimeZone(const TimeZone &other);
43 
47  ~TimeZone();
48 
54  void setOffset(int offset);
55 
59  Q_REQUIRED_RESULT int offset() const;
60 
64  Q_REQUIRED_RESULT bool isValid() const;
65 
66  Q_REQUIRED_RESULT bool operator==(const TimeZone &other) const;
67  Q_REQUIRED_RESULT bool operator!=(const TimeZone &other) const;
68  TimeZone &operator=(const TimeZone &other);
69 
73  Q_REQUIRED_RESULT QString toString() const;
74 
75 private:
76  class Private;
78 };
79 
83 KCONTACTS_EXPORT QDataStream &operator<<(QDataStream &stream, const TimeZone &timeZone);
84 
88 KCONTACTS_EXPORT QDataStream &operator>>(QDataStream &stream, TimeZone &timeZone);
89 }
90 Q_DECLARE_TYPEINFO(KContacts::TimeZone, Q_MOVABLE_TYPE);
91 
92 #endif
QDataStream & operator>>(QDataStream &in, KDateTime::Spec &spec)
QDataStream & operator<<(QDataStream &out, const KDateTime::Spec &spec)
Time zone information.
Definition: timezone.h:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 4 2020 22:55:11 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.