equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * This file contains the NotesAppControllerIfImpl class definition. |
15 * This file contains the NotesAppControllerIfImpl class definition. |
16 * |
16 * |
17 */ |
17 */ |
18 |
|
19 // System includes |
|
20 #include <QDebug> |
|
21 |
18 |
22 // User includes |
19 // User includes |
23 #include "notesappcontrollerifimpl.h" |
20 #include "notesappcontrollerifimpl.h" |
24 #include "notesmodelhandler.h" |
21 #include "notesmodelhandler.h" |
25 #include "notesappcontroller.h" |
22 #include "notesappcontroller.h" |
42 NotesAppControllerIfImpl::NotesAppControllerIfImpl( |
39 NotesAppControllerIfImpl::NotesAppControllerIfImpl( |
43 NotesAppController *controller, QObject *parent) |
40 NotesAppController *controller, QObject *parent) |
44 :QObject(parent), |
41 :QObject(parent), |
45 mAppController(controller) |
42 mAppController(controller) |
46 { |
43 { |
47 qDebug() << "notes: NotesAppControllerIfImpl::NotesAppControllerIfImpl -->"; |
|
48 |
|
49 // Nothing yet. |
44 // Nothing yet. |
50 |
|
51 qDebug() << "notes: NotesAppControllerIfImpl::NotesAppControllerIfImpl <--"; |
|
52 } |
45 } |
53 |
46 |
54 /*! |
47 /*! |
55 Destructor. |
48 Destructor. |
56 */ |
49 */ |
57 NotesAppControllerIfImpl::~NotesAppControllerIfImpl() |
50 NotesAppControllerIfImpl::~NotesAppControllerIfImpl() |
58 { |
51 { |
59 qDebug() << "notes: NotesAppControllerIfImpl::~NotesAppControllerIfImpl -->"; |
|
60 |
|
61 // Nothing yet. |
52 // Nothing yet. |
62 |
|
63 qDebug() << "notes: NotesAppControllerIfImpl::~NotesAppControllerIfImpl <--"; |
|
64 } |
53 } |
65 |
54 |
66 /*! |
55 /*! |
67 From NotesAppControllerIf. |
56 From NotesAppControllerIf. |
68 Returns a pointer to agendautil object. |
57 Returns a pointer to agendautil object. |
70 \return AgendaUtil* Pointer to agendautil object. |
59 \return AgendaUtil* Pointer to agendautil object. |
71 \sa NotesAppControllerIf |
60 \sa NotesAppControllerIf |
72 */ |
61 */ |
73 AgendaUtil *NotesAppControllerIfImpl::agendaUtil() |
62 AgendaUtil *NotesAppControllerIfImpl::agendaUtil() |
74 { |
63 { |
75 qDebug() << "notes: NotesAppControllerIfImpl::agendaUtil -->"; |
|
76 |
|
77 qDebug() << "notes: NotesAppControllerIfImpl::agendaUtil <--"; |
|
78 |
|
79 return mAppController->mNotesModelHandler->agendaInterface(); |
64 return mAppController->mNotesModelHandler->agendaInterface(); |
80 } |
65 } |
81 |
66 |
82 /*! |
67 /*! |
83 From NotesAppControllerIf. |
68 From NotesAppControllerIf. |
86 \return NotesModel* Pointer to notesmodel object. |
71 \return NotesModel* Pointer to notesmodel object. |
87 \sa NotesAppControllerIf |
72 \sa NotesAppControllerIf |
88 */ |
73 */ |
89 NotesModel *NotesAppControllerIfImpl::notesModel() |
74 NotesModel *NotesAppControllerIfImpl::notesModel() |
90 { |
75 { |
91 qDebug() << "notes: NotesAppControllerIfImpl::notesModel -->"; |
|
92 |
|
93 qDebug() << "notes: NotesAppControllerIfImpl::notesModel <--"; |
|
94 |
|
95 return mAppController->mNotesModelHandler->notesModel(); |
76 return mAppController->mNotesModelHandler->notesModel(); |
96 } |
77 } |
97 |
78 |
98 /*! |
79 /*! |
99 From NotesAppControllerIf. |
80 From NotesAppControllerIf. |
102 \param viewId The id of the view to be switched to. |
83 \param viewId The id of the view to be switched to. |
103 \sa NotesAppControllerIf |
84 \sa NotesAppControllerIf |
104 */ |
85 */ |
105 void NotesAppControllerIfImpl::switchToView(NotesNamespace::NotesViewIds viewId) |
86 void NotesAppControllerIfImpl::switchToView(NotesNamespace::NotesViewIds viewId) |
106 { |
87 { |
107 qDebug() << "notes: NotesAppControllerIfImpl::switchToView -->"; |
|
108 |
|
109 mAppController->mViewManager->switchToView(viewId); |
88 mAppController->mViewManager->switchToView(viewId); |
110 |
|
111 qDebug() << "notes: NotesAppControllerIfImpl::switchToView <--"; |
|
112 } |
89 } |
113 |
90 |
114 // End of file --Don't remove this. |
91 // End of file --Don't remove this. |