calendarviewbase.h
1/*
2 This file is part of the KOrganizer interfaces.
3
4 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
5 Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21*/
22#ifndef KORG_CALENDARVIEWBASE_H
23#define KORG_CALENDARVIEWBASE_H
24
25#include <tqwidget.h>
26
27#include <libkcal/calendar.h>
28
29#include <korganizer/baseview.h>
30
31namespace KOrg {
32
37class CalendarViewBase : public TQWidget
38{
39 public:
40 CalendarViewBase( TQWidget *parent, const char *name )
41 : TQWidget( parent, name ) {}
42 virtual ~CalendarViewBase() {}
43
44 virtual KCal::Calendar *calendar() = 0;
45
46 virtual TQDate startDate() = 0;
47 virtual TQDate endDate() = 0;
48
49 virtual Incidence *currentSelection() = 0;
50
51 virtual void addView( KOrg::BaseView * ) = 0;
52
54 virtual void showView( KOrg::BaseView * ) = 0;
55
56 public slots:
57 virtual void updateView() = 0;
58 virtual void updateCategories() = 0;
59};
60
61}
62
63#endif
This class provides an interface for all views being displayed within the main calendar view.
Definition: baseview.h:60
interface for main calendar view widget
virtual void showView(KOrg::BaseView *)=0
changes the view to be the currently selected view