summaryrefslogtreecommitdiffabout
path: root/libkcal/calstorage.h
Unidiff
Diffstat (limited to 'libkcal/calstorage.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libkcal/calstorage.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/libkcal/calstorage.h b/libkcal/calstorage.h
new file mode 100644
index 0000000..72972ea
--- a/dev/null
+++ b/libkcal/calstorage.h
@@ -0,0 +1,52 @@
1/*
2 This file is part of libkcal.
3 Copyright (c) 2002 Cornelius Schumacher <schumacher@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#ifndef KCAL_CALSTORAGE_H
21#define KCAL_CALSTORAGE_H
22
23namespace KCal {
24
25class Calendar;
26
27/**
28 This class provides the interface to the storage of a calendar.
29*/
30class CalStorage
31{
32 public:
33 CalStorage( Calendar *calendar )
34 {
35 mCalendar = calendar;
36 }
37 virtual ~CalStorage() {}
38
39 Calendar *calendar() const { return mCalendar; }
40
41 virtual bool open() = 0;
42 virtual bool load(bool = false ) = 0;
43 virtual bool save() = 0;
44 virtual bool close() = 0;
45
46 private:
47 Calendar *mCalendar;
48};
49
50}
51
52#endif