Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

view.cpp

Go to the documentation of this file.
00001 
00002 #include <opie/odatebookaccess.h>
00003 
00004 #include "bookmanager.h"
00005 #include "mainwindow.h"
00006 #include "view.h"
00007 
00008 using namespace Datebook;
00009 
00010 View::View( MainWindow* window, QWidget* )    {
00011     m_win = window;
00012 }
00013 View::~View() {
00014 }
00015 QDate View::dateFromWeek( int week, int year, bool startOnMon ) {
00016 
00017 }
00018 bool View::calcWeek( const QDate& d, int & week, int & year, bool ) {
00019 
00020 }
00021 void View::loadConfig( Config* conf ) {
00022     doLoadConfig( conf );
00023 }
00024 void View::saveConfig( Config* conf ) {
00025     doSaveConfig( conf );
00026 }
00027 void View::popup( int uid ) {
00028     m_win->viewPopup( uid );
00029 }
00030 void View::add( const QDate& start ) {
00031     m_win->viewAdd( start );
00032 }
00033 void View::add( const QDateTime& start, const QDateTime& end ) {
00034     m_win->viewAdd( start, end );
00035 }
00036 void View::edit( int uid ) {
00037     m_win->edit( uid );
00038 }
00039 void View::remove( int uid ) {
00040     m_win->remove( uid );
00041 }
00042 ODateBookAccess::List View::allEvents() const{
00043     return m_win->manager()->allRecords();
00044 }
00045 OEffectiveEvent::ValueList View::events( const QDate& from, const QDate& to ) {
00046     return m_win->manager()->list( from, to );
00047 }
00048 OEvent View::event( int uid ) const{
00049     return m_win->manager()->event( uid );
00050 }
00051 bool View::isAP()const {
00052     return m_win->viewAP();
00053 }
00054 bool View::weekStartOnMonday()const {
00055     return m_win->viewStartMonday();
00056 }
00057 QList<OPimRecord> View::records( const QDate& on ) {
00058     return m_win->manager()->records( on, on );
00059 }
00060 QList<OPimRecord> View::records( const QDate& on, const QDate& to ) {
00061     return m_win->manager()->records( on, to );
00062 }

Generated on Sat Nov 5 16:15:53 2005 for OPIE by  doxygen 1.4.2