summaryrefslogtreecommitdiff
path: root/core/pim/datebook2/view.cpp
Unidiff
Diffstat (limited to 'core/pim/datebook2/view.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook2/view.cpp62
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
8using namespace Datebook;
9
10View::View( MainWindow* window, QWidget* ) {
11 m_win = window;
12}
13View::~View() {
14}
15QDate View::dateFromWeek( int week, int year, bool startOnMon ) {
16
17}
18bool View::calcWeek( const QDate& d, int & week, int & year, bool ) {
19
20}
21void View::loadConfig( Config* conf ) {
22 doLoadConfig( conf );
23}
24void View::saveConfig( Config* conf ) {
25 doSaveConfig( conf );
26}
27void View::popup( int uid ) {
28 m_win->viewPopup( uid );
29}
30void View::add( const QDate& start ) {
31 m_win->viewAdd( start );
32}
33void View::add( const QDateTime& start, const QDateTime& end ) {
34 m_win->viewAdd( start, end );
35}
36void View::edit( int uid ) {
37 m_win->edit( uid );
38}
39void View::remove( int uid ) {
40 m_win->remove( uid );
41}
42ODateBookAccess::List View::allEvents() const{
43 return m_win->manager()->allRecords();
44}
45OEffectiveEvent::ValueList View::events( const QDate& from, const QDate& to ) {
46 return m_win->manager()->list( from, to );
47}
48OEvent View::event( int uid ) const{
49 return m_win->manager()->event( uid );
50}
51bool View::isAP()const {
52 return m_win->viewAP();
53}
54bool View::weekStartOnMonday()const {
55 return m_win->viewStartMonday();
56}
57QList<OPimRecord> View::records( const QDate& on ) {
58 return m_win->manager()->records( on, on );
59}
60QList<OPimRecord> View::records( const QDate& on, const QDate& to ) {
61 return m_win->manager()->records( on, to );
62}