-rw-r--r-- | core/pim/datebook2/view.cpp | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/core/pim/datebook2/view.cpp b/core/pim/datebook2/view.cpp new file mode 100644 index 0000000..b07c89a --- a/dev/null +++ b/core/pim/datebook2/view.cpp | |||
@@ -0,0 +1,62 @@ | |||
1 | |||
2 | #include <opie/odatebookaccess.h> | ||
3 | |||
4 | #include "bookmanager.h" | ||
5 | #include "mainwindow.h" | ||
6 | #include "view.h" | ||
7 | |||
8 | using namespace Datebook; | ||
9 | |||
10 | View::View( MainWindow* window, QWidget* ) { | ||
11 | m_win = window; | ||
12 | } | ||
13 | View::~View() { | ||
14 | } | ||
15 | QDate View::dateFromWeek( int week, int year, bool startOnMon ) { | ||
16 | |||
17 | } | ||
18 | bool View::calcWeek( const QDate& d, int & week, int & year, bool ) { | ||
19 | |||
20 | } | ||
21 | void View::loadConfig( Config* conf ) { | ||
22 | doLoadConfig( conf ); | ||
23 | } | ||
24 | void View::saveConfig( Config* conf ) { | ||
25 | doSaveConfig( conf ); | ||
26 | } | ||
27 | void View::popup( int uid ) { | ||
28 | m_win->viewPopup( uid ); | ||
29 | } | ||
30 | void View::add( const QDate& start ) { | ||
31 | m_win->viewAdd( start ); | ||
32 | } | ||
33 | void View::add( const QDateTime& start, const QDateTime& end ) { | ||
34 | m_win->viewAdd( start, end ); | ||
35 | } | ||
36 | void View::edit( int uid ) { | ||
37 | m_win->edit( uid ); | ||
38 | } | ||
39 | void View::remove( int uid ) { | ||
40 | m_win->remove( uid ); | ||
41 | } | ||
42 | ODateBookAccess::List View::allEvents() const{ | ||
43 | return m_win->manager()->allRecords(); | ||
44 | } | ||
45 | OEffectiveEvent::ValueList View::events( const QDate& from, const QDate& to ) { | ||
46 | return m_win->manager()->list( from, to ); | ||
47 | } | ||
48 | OEvent View::event( int uid ) const{ | ||
49 | return m_win->manager()->event( uid ); | ||
50 | } | ||
51 | bool View::isAP()const { | ||
52 | return m_win->viewAP(); | ||
53 | } | ||
54 | bool View::weekStartOnMonday()const { | ||
55 | return m_win->viewStartMonday(); | ||
56 | } | ||
57 | QList<OPimRecord> View::records( const QDate& on ) { | ||
58 | return m_win->manager()->records( on, on ); | ||
59 | } | ||
60 | QList<OPimRecord> View::records( const QDate& on, const QDate& to ) { | ||
61 | return m_win->manager()->records( on, to ); | ||
62 | } | ||