• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. The KDE Frameworks
  3. KDELibs4Support
  • KDE Home
  • Contact Us

Quick Links

Skip menu "KDELibs4Support"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • File Members
  • Modules
  • Dependencies
  • Related Pages

Class Picker

About

Porting aid from KDELibs4

Maintainer
The KDE Community
Supported platforms
FreeBSD, Linux, MacOSX, Windows
Community
IRC: #kde-devel on Freenode
Mailing list: kde-frameworks-devel
Clone
git clone git://anongit.kde.org/kdelibs4support.git
Browse source
KDELibs4Support on cgit.kde.org

KDELibs4Support

  • frameworks
  • frameworks
  • kdelibs4support
  • src
  • kdecore
ktzfiletimezone.h
Go to the documentation of this file.
1 /*
2  This file is part of the KDE libraries
3  Copyright (c) 2005-2008 David Jarvie <[email protected]>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
26 #ifndef _KTZFILETIMEZONE_H
27 #define _KTZFILETIMEZONE_H
28 
29 #include <kdelibs4support_export.h>
30 #include <ktimezone.h>
31 
32 #include <QString>
33 
34 class KTzfileTimeZoneSource;
35 class KTzfileTimeZonePrivate;
36 class KTzfileTimeZoneDataPrivate;
37 class KTzfileTimeZoneSourcePrivate;
38 
50 class KDELIBS4SUPPORT_EXPORT KTzfileTimeZone : public KTimeZone //krazy:exclude=dpointer (no d-pointer for KTimeZone derived classes)
51 {
52 public:
64  KTzfileTimeZone(KTzfileTimeZoneSource *source, const QString &name,
65  const QString &countryCode = QString(), float latitude = UNKNOWN, float longitude = UNKNOWN,
66  const QString &comment = QString());
67 
68  ~KTzfileTimeZone();
69 
70 private:
71  // d-pointer is in KTzfileTimeZoneBackend.
72  // This is a requirement for classes inherited from KTimeZone.
73 };
74 
88 class KDELIBS4SUPPORT_EXPORT KTzfileTimeZoneBackend : public KTimeZoneBackend //krazy:exclude=dpointer (non-const d-pointer for KTimeZoneBackend-derived classes)
89 {
90 public:
92  KTzfileTimeZoneBackend(KTzfileTimeZoneSource *source, const QString &name,
93  const QString &countryCode, float latitude, float longitude, const QString &comment);
94 
95  ~KTzfileTimeZoneBackend();
96 
102  KTimeZoneBackend *clone() const override;
103 
109  QByteArray type() const override;
110 
119  bool hasTransitions(const KTimeZone *caller) const override;
120 
121 private:
122  KTzfileTimeZonePrivate *d; // non-const
123 };
124 
136 class KDELIBS4SUPPORT_EXPORT KTzfileTimeZoneSource : public KTimeZoneSource
137 {
138 public:
149  KDELIBS4SUPPORT_DEPRECATED explicit KTzfileTimeZoneSource(const QString &location);
150  virtual ~KTzfileTimeZoneSource();
151 
157  QString location() const;
158 
167  KTimeZoneData *parse(const KTimeZone &zone) const override;
168 
169 private:
170  KTzfileTimeZoneSourcePrivate *const d;
171 };
172 
182 class KTzfileTimeZoneData : public KTimeZoneData
183 {
184  friend class KTzfileTimeZoneSource;
185 
186 public:
187  KTzfileTimeZoneData();
188  KTzfileTimeZoneData(const KTzfileTimeZoneData &);
189  virtual ~KTzfileTimeZoneData();
190 
191  KTzfileTimeZoneData &operator=(const KTzfileTimeZoneData &);
192 
201  KTimeZoneData *clone() const override;
202 
208  bool hasTransitions() const override;
209 
210 private:
211  // Enable this if you add KDELIBS4SUPPORT_EXPORT to this class
212  //KTzfileTimeZoneDataPrivate * const d;
213 };
214 
215 #endif
KTimeZoneBackend::hasTransitions
virtual bool hasTransitions(const KTimeZone *caller) const
Implements KTimeZone::hasTransitions().
Definition: ktimezone.cpp:579
KTimeZoneBackend::type
virtual QByteArray type() const
Returns the class name of the data represented by this instance.
Definition: ktimezone.cpp:455
QByteArray
KTimeZoneData
Base class for the parsed data returned by a KTimeZoneSource class.
Definition: ktimezone.h:1302
KTzfileTimeZoneData
Parsed data from tzfile(5) time zone definition files.
Definition: ktzfiletimezone.h:182
KTimeZoneSource::parse
virtual KTimeZoneData * parse(const KTimeZone &zone) const
Extracts detail information for one time zone from the source database.
Definition: ktimezone.cpp:980
KTzfileTimeZoneBackend
Backend class for KTzfileTimeZone class.
Definition: ktzfiletimezone.h:88
KTimeZoneBackend::clone
virtual KTimeZoneBackend * clone() const
Creates a copy of this instance.
Definition: ktimezone.cpp:460
KTzfileTimeZone
The KTzfileTimeZone class represents a time zone defined in tzfile(5) format.
Definition: ktzfiletimezone.h:50
ktimezone.h
Time zone functions.
QString
KTimeZone
Base class representing a time zone.
Definition: ktimezone.h:415
KTimeZoneSource
Base class representing a source of time zone information.
Definition: ktimezone.h:1231
KTimeZoneBackend
Base backend class for KTimeZone classes.
Definition: ktimezone.h:1121
KTzfileTimeZoneSource
A class to read and parse tzfile time zone definition files.
Definition: ktzfiletimezone.h:136
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Tue Dec 10 2019 03:16:07 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal