remove superfluous 'and'
[kdepim.git] / calendarviews / eventview_p.h
blobaa292c850fa938f295be89eea4108b5dd232132d
1 /*
2 Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
3 Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
4 Copyright (C) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.net
5 Author: Kevin Krammer, krake@kdab.com
6 Author: Sergio Martins, sergio.martins@kdab.com
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License along
19 with this program; if not, write to the Free Software Foundation, Inc.,
20 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 As a special exception, permission is given to link this program
23 with any edition of Qt, and distribute the resulting executable,
24 without including the source code for Qt in the source distribution.
26 #ifndef EVENTVIEWS_EVENTVIEW_P_H
27 #define EVENTVIEWS_EVENTVIEW_P_H
29 #include "eventview.h"
31 #include <KDateTime>
32 #include <KRandom>
34 class KCheckableProxyModel;
36 namespace EventViews {
38 class EventViewPrivate
40 EventView *const q;
42 public: /// Methods
43 explicit EventViewPrivate( EventView *qq );
44 ~EventViewPrivate();
46 /**
47 This is called when the new event dialog is shown. It sends
48 all events in mTypeAheadEvents to the receiver.
50 void finishTypeAhead();
51 void reconnectCollectionSelection();
53 public: // virtual functions
54 void setUpModels();
56 public: /// Members
57 Akonadi::ETMCalendar::Ptr calendar;
58 CalendarSupport::CollectionSelection *customCollectionSelection;
59 KCheckableProxyModel *collectionSelectionModel;
61 QByteArray identifier;
62 KDateTime startDateTime;
63 KDateTime endDateTime;
64 KDateTime actualStartDateTime;
65 KDateTime actualEndDateTime;
67 /* When we receive a QEvent with a key_Return release
68 * we will only show a new event dialog if we previously received a
69 * key_Return press, otherwise a new event dialog appears when
70 * you hit return in some yes/no dialog */
71 bool mReturnPressed;
72 bool mDateRangeSelectionEnabled;
73 bool mTypeAhead;
74 QObject *mTypeAheadReceiver;
75 QList<QEvent *> mTypeAheadEvents;
76 static CalendarSupport::CollectionSelection *sGlobalCollectionSelection;
78 KHolidays::HolidayRegionPtr mHolidayRegion;
79 PrefsPtr mPrefs;
80 KCalPrefsPtr mKCalPrefs;
82 Akonadi::IncidenceChanger *mChanger;
83 EventView::Changes mChanges;
84 Akonadi::Collection::Id mCollectionId;
87 } // EventViews
89 #endif