• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • kdecore
  • date
kcalendarsystemcopticprivate_p.h
Go to the documentation of this file.
1 /*
2  Copyright 2010 John Layt <john@layt.net>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KCALENDARSYSTEMCOPTICPRIVATE_H
21 #define KCALENDARSYSTEMCOPTICPRIVATE_H
22 
23 #include "kcalendarsystemprivate_p.h"
24 
25 class KCalendarSystemCopticPrivate : public KCalendarSystemPrivate
26 {
27 public:
28  explicit KCalendarSystemCopticPrivate(KCalendarSystemCoptic *q);
29 
30  virtual ~KCalendarSystemCopticPrivate();
31 
32  // Virtual methods each calendar system must re-implement
33  virtual KLocale::CalendarSystem calendarSystem() const;
34  virtual void loadDefaultEraList();
35  virtual int monthsInYear(int year) const;
36  virtual int daysInMonth(int year, int month) const;
37  virtual int daysInYear(int year) const;
38  virtual int daysInWeek() const;
39  virtual bool isLeapYear(int year) const;
40  virtual bool hasLeapMonths() const;
41  virtual bool hasYearZero() const;
42  virtual int maxDaysInWeek() const;
43  virtual int maxMonthsInYear() const;
44  virtual int earliestValidYear() const;
45  virtual int latestValidYear() const;
46  virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const;
47  virtual QString weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const;
48 };
49 
50 #endif // KCALENDARSYSTEMCOPTICPRIVATE_H
KCalendarSystemCopticPrivate::monthsInYear
virtual int monthsInYear(int year) const
Definition: kcalendarsystemcoptic.cpp:56
KCalendarSystemCopticPrivate::maxMonthsInYear
virtual int maxMonthsInYear() const
Definition: kcalendarsystemcoptic.cpp:119
KCalendarSystemCopticPrivate::hasYearZero
virtual bool hasYearZero() const
Definition: kcalendarsystemcoptic.cpp:109
KLocale::DateTimeComponentFormat
DateTimeComponentFormat
Definition: klocale.h:908
KCalendarSystemCopticPrivate::daysInMonth
virtual int daysInMonth(int year, int month) const
Definition: kcalendarsystemcoptic.cpp:62
KCalendarSystemCopticPrivate::daysInYear
virtual int daysInYear(int year) const
Definition: kcalendarsystemcoptic.cpp:75
KLocale::CalendarSystem
CalendarSystem
Definition: klocale.h:780
KCalendarSystemCopticPrivate::~KCalendarSystemCopticPrivate
virtual ~KCalendarSystemCopticPrivate()
Definition: kcalendarsystemcoptic.cpp:37
KCalendarSystemCopticPrivate::hasLeapMonths
virtual bool hasLeapMonths() const
Definition: kcalendarsystemcoptic.cpp:104
QString
kcalendarsystemprivate_p.h
KCalendarSystemCopticPrivate::earliestValidYear
virtual int earliestValidYear() const
Definition: kcalendarsystemcoptic.cpp:124
KCalendarSystemPrivate::q
const KCalendarSystem * q
Definition: kcalendarsystemprivate_p.h:104
KCalendarSystemPrivate
Definition: kcalendarsystemprivate_p.h:31
KCalendarSystemCopticPrivate::monthName
virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const
Definition: kcalendarsystemcoptic.cpp:159
KCalendarSystemCopticPrivate::KCalendarSystemCopticPrivate
KCalendarSystemCopticPrivate(KCalendarSystemCoptic *q)
Definition: kcalendarsystemcoptic.cpp:32
KCalendarSystemCopticPrivate::calendarSystem
virtual KLocale::CalendarSystem calendarSystem() const
Definition: kcalendarsystemcoptic.cpp:41
KCalendarSystemCopticPrivate::weekDayName
virtual QString weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
Definition: kcalendarsystemcoptic.cpp:330
KCalendarSystemCopticPrivate::latestValidYear
virtual int latestValidYear() const
Definition: kcalendarsystemcoptic.cpp:129
KCalendarSystemCopticPrivate::daysInWeek
virtual int daysInWeek() const
Definition: kcalendarsystemcoptic.cpp:84
KCalendarSystemCopticPrivate::isLeapYear
virtual bool isLeapYear(int year) const
Definition: kcalendarsystemcoptic.cpp:89
KCalendarSystemCoptic
Definition: kcalendarsystemcoptic_p.h:37
KCalendarSystemCopticPrivate::maxDaysInWeek
virtual int maxDaysInWeek() const
Definition: kcalendarsystemcoptic.cpp:114
KCalendarSystemCopticPrivate::loadDefaultEraList
virtual void loadDefaultEraList()
Definition: kcalendarsystemcoptic.cpp:46
KCalendarSystemCopticPrivate
Definition: kcalendarsystemcopticprivate_p.h:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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