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

KDECore

  • 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
25class KCalendarSystemCopticPrivate : public KCalendarSystemPrivate
26{
27public:
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
Definition: kcalendarsystemcopticprivate_p.h:26
KCalendarSystemCopticPrivate::loadDefaultEraList
virtual void loadDefaultEraList()
Definition: kcalendarsystemcoptic.cpp:46
KCalendarSystemCopticPrivate::~KCalendarSystemCopticPrivate
virtual ~KCalendarSystemCopticPrivate()
Definition: kcalendarsystemcoptic.cpp:37
KCalendarSystemCopticPrivate::maxDaysInWeek
virtual int maxDaysInWeek() const
Definition: kcalendarsystemcoptic.cpp:114
KCalendarSystemCopticPrivate::daysInMonth
virtual int daysInMonth(int year, int month) const
Definition: kcalendarsystemcoptic.cpp:62
KCalendarSystemCopticPrivate::hasLeapMonths
virtual bool hasLeapMonths() const
Definition: kcalendarsystemcoptic.cpp:104
KCalendarSystemCopticPrivate::calendarSystem
virtual KLocale::CalendarSystem calendarSystem() const
Definition: kcalendarsystemcoptic.cpp:41
KCalendarSystemCopticPrivate::maxMonthsInYear
virtual int maxMonthsInYear() const
Definition: kcalendarsystemcoptic.cpp:119
KCalendarSystemCopticPrivate::hasYearZero
virtual bool hasYearZero() const
Definition: kcalendarsystemcoptic.cpp:109
KCalendarSystemCopticPrivate::earliestValidYear
virtual int earliestValidYear() const
Definition: kcalendarsystemcoptic.cpp:124
KCalendarSystemCopticPrivate::daysInYear
virtual int daysInYear(int year) const
Definition: kcalendarsystemcoptic.cpp:75
KCalendarSystemCopticPrivate::daysInWeek
virtual int daysInWeek() const
Definition: kcalendarsystemcoptic.cpp:84
KCalendarSystemCopticPrivate::monthName
virtual QString monthName(int month, int year, KLocale::DateTimeComponentFormat format, bool possessive) const
Definition: kcalendarsystemcoptic.cpp:159
KCalendarSystemCopticPrivate::monthsInYear
virtual int monthsInYear(int year) const
Definition: kcalendarsystemcoptic.cpp:56
KCalendarSystemCopticPrivate::isLeapYear
virtual bool isLeapYear(int year) const
Definition: kcalendarsystemcoptic.cpp:89
KCalendarSystemCopticPrivate::latestValidYear
virtual int latestValidYear() const
Definition: kcalendarsystemcoptic.cpp:129
KCalendarSystemCopticPrivate::weekDayName
virtual QString weekDayName(int weekDay, KLocale::DateTimeComponentFormat format) const
Definition: kcalendarsystemcoptic.cpp:330
KCalendarSystemCoptic
Definition: kcalendarsystemcoptic_p.h:38
KCalendarSystemPrivate
Definition: kcalendarsystemprivate_p.h:32
KCalendarSystemPrivate::q
const KCalendarSystem * q
Definition: kcalendarsystemprivate_p.h:104
KLocale::CalendarSystem
CalendarSystem
Definition: klocale.h:780
KLocale::DateTimeComponentFormat
DateTimeComponentFormat
Definition: klocale.h:908
QString
kcalendarsystemprivate_p.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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