summaryrefslogtreecommitdiffabout
path: root/korganizer/interfaces/korganizer/calendarviewbase.h
Unidiff
Diffstat (limited to 'korganizer/interfaces/korganizer/calendarviewbase.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/interfaces/korganizer/calendarviewbase.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/korganizer/interfaces/korganizer/calendarviewbase.h b/korganizer/interfaces/korganizer/calendarviewbase.h
new file mode 100644
index 0000000..3c715b1
--- a/dev/null
+++ b/korganizer/interfaces/korganizer/calendarviewbase.h
@@ -0,0 +1,65 @@
1/*
2 This file is part of the KOrganizer interfaces.
3 Copyright (c) 2001 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 KORG_CALENDARVIEWBASE_H
21#define KORG_CALENDARVIEWBASE_H
22// $Id$
23
24#include <qwidget.h>
25#include <qlayout.h>
26
27
28#include <libkcal/calendar.h>
29
30#include <korganizer/baseview.h>
31
32namespace KOrg {
33
34/**
35 @short interface for main calendar view widget
36 @author Cornelius Schumacher
37*/
38class CalendarViewBase : public QWidget
39{
40 Q_OBJECT
41 public:
42 CalendarViewBase(QWidget *parent, const char *name) :
43 QWidget(parent,name) {new QVBoxLayout(this);}
44 virtual ~CalendarViewBase() {};
45
46 virtual KCal::Calendar *calendar() = 0;
47
48 virtual QDate startDate() = 0;
49 virtual QDate endDate() = 0;
50
51 virtual Incidence *currentSelection() = 0;
52
53 virtual void addView(KOrg::BaseView *) = 0;
54
55 /** changes the view to be the currently selected view */
56 virtual void showView(KOrg::BaseView *) = 0;
57
58 public slots:
59 virtual void updateView() = 0;
60
61};
62
63}
64
65#endif