summaryrefslogtreecommitdiff
path: root/core/pim/datebook2/view.cpp
authorzecke <zecke>2003-02-23 21:27:08 (UTC)
committer zecke <zecke>2003-02-23 21:27:08 (UTC)
commit041eda0d7482d60cd67731b81fd36104fcd3120f (patch) (side-by-side diff)
treec7bc7730b9e76e22f828291d404821f7bd922d6f /core/pim/datebook2/view.cpp
parenta195865dfdb03b4c7c972acfc8cfd87743ab3e6f (diff)
downloadopie-041eda0d7482d60cd67731b81fd36104fcd3120f.zip
opie-041eda0d7482d60cd67731b81fd36104fcd3120f.tar.gz
opie-041eda0d7482d60cd67731b81fd36104fcd3120f.tar.bz2
Implement some of the new framework
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 @@
+
+#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 );
+}