summaryrefslogtreecommitdiffabout
path: root/microkde/kcalendarsystem.cpp
Unidiff
Diffstat (limited to 'microkde/kcalendarsystem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kcalendarsystem.cpp52
1 files changed, 52 insertions, 0 deletions
diff --git a/microkde/kcalendarsystem.cpp b/microkde/kcalendarsystem.cpp
new file mode 100644
index 0000000..530010d
--- a/dev/null
+++ b/microkde/kcalendarsystem.cpp
@@ -0,0 +1,52 @@
1/*
2 Copyright (c) 2002 Carlos Moro <cfmoro@correo.uniovi.es>
3 Copyright (c) 2002 Hans Petter Bieker <bieker@kde.org>
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., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21// Gregorian calendar system implementation factory for creation of kde calendar
22// systems.
23// Also default gregorian and factory classes
24
25#include <kglobal.h>
26
27#include "kcalendarsystem.h"
28
29class KCalendarSystemPrivate
30{
31public:
32 const KLocale * locale;
33};
34
35KCalendarSystem::KCalendarSystem(const KLocale * locale)
36 : d(new KCalendarSystemPrivate)
37{
38 d->locale = locale;
39}
40
41KCalendarSystem::~KCalendarSystem()
42{
43 delete d;
44}
45
46const KLocale * KCalendarSystem::locale() const
47{
48 if ( d->locale )
49 return d->locale;
50
51 return KGlobal::locale();
52}