17 |
17 |
18 // User Includes. |
18 // User Includes. |
19 #include "agendaeventviewer.h" |
19 #include "agendaeventviewer.h" |
20 #include "agendaeventviewer_p.h" |
20 #include "agendaeventviewer_p.h" |
21 #include "agendaeventview.h" |
21 #include "agendaeventview.h" |
|
22 #include "OstTraceDefinitions.h" |
|
23 #ifdef OST_TRACE_COMPILER_IN_USE |
|
24 #include "agendaeventviewerTraces.h" |
|
25 #endif |
|
26 |
22 |
27 |
23 /*! |
28 /*! |
24 \class AgendaEventViewer |
29 \class AgendaEventViewer |
25 |
30 |
26 To view entry in agenda event viewer. |
31 To view entry in agenda event viewer. |
82 \param parent Pointer to QObject. |
89 \param parent Pointer to QObject. |
83 */ |
90 */ |
84 AgendaEventViewer::AgendaEventViewer(AgendaUtil *agendaUtil, QObject *parent) |
91 AgendaEventViewer::AgendaEventViewer(AgendaUtil *agendaUtil, QObject *parent) |
85 : QObject(parent), d_ptr(new AgendaEventViewerPrivate(agendaUtil, this)) |
92 : QObject(parent), d_ptr(new AgendaEventViewerPrivate(agendaUtil, this)) |
86 { |
93 { |
|
94 OstTraceFunctionEntry0( DUP1_AGENDAEVENTVIEWER_AGENDAEVENTVIEWER_ENTRY ); |
87 // Nothing |
95 // Nothing |
|
96 OstTraceFunctionExit0( DUP1_AGENDAEVENTVIEWER_AGENDAEVENTVIEWER_EXIT ); |
88 } |
97 } |
89 |
98 |
90 /*! |
99 /*! |
91 Destructor. |
100 Destructor. |
92 */ |
101 */ |
93 AgendaEventViewer::~AgendaEventViewer() |
102 AgendaEventViewer::~AgendaEventViewer() |
94 { |
103 { |
|
104 OstTraceFunctionEntry0( DUP2_AGENDAEVENTVIEWER_AGENDAEVENTVIEWER_ENTRY ); |
95 if (d_ptr) { |
105 if (d_ptr) { |
96 delete d_ptr; |
106 delete d_ptr; |
97 } |
107 } |
|
108 OstTraceFunctionExit0( DUP2_AGENDAEVENTVIEWER_AGENDAEVENTVIEWER_EXIT ); |
98 } |
109 } |
99 |
110 |
100 /*! |
111 /*! |
101 Launches the event viewer.Id is used for fetching |
112 Launches the event viewer.Id is used for fetching |
102 the calendar entry information. |
113 the calendar entry information. |
103 |
114 |
104 \param id Local Uid of the calendar entry to be viewed |
115 \param id Local Uid of the calendar entry to be viewed |
105 */ |
116 */ |
106 void AgendaEventViewer::view(const ulong id, Actions action) |
117 void AgendaEventViewer::view(const ulong id, Actions action) |
107 { |
118 { |
|
119 OstTraceFunctionEntry0( AGENDAEVENTVIEWER_VIEW_ENTRY ); |
108 d_ptr->view(id, action); |
120 d_ptr->view(id, action); |
|
121 OstTraceFunctionExit0( AGENDAEVENTVIEWER_VIEW_EXIT ); |
109 } |
122 } |
110 |
123 |
111 /*! |
124 /*! |
112 Launches the event viewer.File handle of any vcs/ics file can be given as |
125 Launches the event viewer.File handle of any vcs/ics file can be given as |
113 input to view the calendar entry information. |
126 input to view the calendar entry information. |
114 |
127 |
115 \param fileHandle reference to the file handle of vcs/ics file |
128 \param fileHandle reference to the file handle of vcs/ics file |
116 */ |
129 */ |
117 void AgendaEventViewer::view(const QFile &fileHandle, Actions action) |
130 void AgendaEventViewer::view(const QFile &fileHandle, Actions action) |
118 { |
131 { |
|
132 OstTraceFunctionEntry0( DUP1_AGENDAEVENTVIEWER_VIEW_ENTRY ); |
119 d_ptr->view(fileHandle, action); |
133 d_ptr->view(fileHandle, action); |
|
134 OstTraceFunctionExit0( DUP1_AGENDAEVENTVIEWER_VIEW_EXIT ); |
120 } |
135 } |
121 |
136 |
122 /*! |
137 /*! |
123 Launches the event viewer. |
138 Launches the event viewer. |
124 AgendaEntry can be given as input to view the calendar entry information. |
139 AgendaEntry can be given as input to view the calendar entry information. |
125 |
140 |
126 \param entry Object of calendar entry to be viewed |
141 \param entry Object of calendar entry to be viewed |
127 */ |
142 */ |
128 void AgendaEventViewer::view(AgendaEntry entry, Actions action) |
143 void AgendaEventViewer::view(AgendaEntry entry, Actions action) |
129 { |
144 { |
|
145 OstTraceFunctionEntry0( DUP2_AGENDAEVENTVIEWER_VIEW_ENTRY ); |
130 d_ptr->view(entry, action); |
146 d_ptr->view(entry, action); |
|
147 OstTraceFunctionExit0( DUP2_AGENDAEVENTVIEWER_VIEW_EXIT ); |
131 } |
148 } |
132 |
149 |
133 // End of file |
150 // End of file |