summaryrefslogtreecommitdiff
path: root/core/pim/datebook2/view.cpp
blob: b07c89a9f95b7fac99a635bbfde8e6ad44cdee41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

#include <opie/odatebookaccess.h>

#include "bookmanager.h"
#include "mainwindow.h"
#include "view.h"

using namespace Datebook;

View::View( MainWindow* window, QWidget* )    {
    m_win = window;
}
View::~View() {
}
QDate View::dateFromWeek( int week, int year, bool startOnMon ) {

}
bool View::calcWeek( const QDate& d, int & week, int & year, bool ) {

}
void View::loadConfig( Config* conf ) {
    doLoadConfig( conf );
}
void View::saveConfig( Config* conf ) {
    doSaveConfig( conf );
}
void View::popup( int uid ) {
    m_win->viewPopup( uid );
}
void View::add( const QDate& start ) {
    m_win->viewAdd( start );
}
void View::add( const QDateTime& start, const QDateTime& end ) {
    m_win->viewAdd( start, end );
}
void View::edit( int uid ) {
    m_win->edit( uid );
}
void View::remove( int uid ) {
    m_win->remove( uid );
}
ODateBookAccess::List View::allEvents() const{
    return m_win->manager()->allRecords();
}
OEffectiveEvent::ValueList View::events( const QDate& from, const QDate& to ) {
    return m_win->manager()->list( from, to );
}
OEvent View::event( int uid ) const{
    return m_win->manager()->event( uid );
}
bool View::isAP()const {
    return m_win->viewAP();
}
bool View::weekStartOnMonday()const {
    return m_win->viewStartMonday();
}
QList<OPimRecord> View::records( const QDate& on ) {
    return m_win->manager()->records( on, on );
}
QList<OPimRecord> View::records( const QDate& on, const QDate& to ) {
    return m_win->manager()->records( on, to );
}