author | Simon Howkins <simonh@symbian.org> |
Mon, 22 Nov 2010 16:01:09 +0000 | |
branch | RCL_3 |
changeset 93 | d216ae5a8733 |
parent 66 | bd7edf625bdd |
permissions | -rw-r--r-- |
0
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
/* |
66 | 2 |
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
0
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
8 |
* |
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
11 |
* |
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
13 |
* |
66 | 14 |
* Description: Wrapper class for launching S60 Calendar application |
0
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
15 |
* |
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
16 |
*/ |
66 | 17 |
|
18 |
||
19 |
||
20 |
#ifndef CALENLAUNCHER_H |
|
21 |
#define CALENLAUNCHER_H |
|
22 |
||
23 |
/** |
|
24 |
* Include files |
|
25 |
*/ |
|
26 |
#include <calentry.h> // CCalEntry::TType |
|
27 |
||
28 |
/** |
|
29 |
* S60 Month view uid |
|
30 |
*/ |
|
31 |
const TUid KCalMonthViewUid = { 0x10283360 }; |
|
32 |
||
33 |
/** |
|
34 |
* S60 Week view uid |
|
35 |
*/ |
|
36 |
const TUid KCalWeekViewUid = { 0x10283361 }; |
|
37 |
||
38 |
/** |
|
39 |
* S60 Day view uid |
|
40 |
*/ |
|
41 |
const TUid KCalDayViewUid = { 0x10283362 }; |
|
42 |
||
43 |
/** |
|
44 |
* S60 Todo view uid |
|
45 |
*/ |
|
46 |
const TUid KCalTodoViewUid = { 0x10283363 }; |
|
47 |
||
48 |
/** |
|
49 |
* S60 Default view uid |
|
50 |
* This is the default view as set by the user in the Calendar settings |
|
51 |
*/ |
|
52 |
const TUid KCalDefaultViewUid = { 0x10283364 }; |
|
0
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
53 |
|
66 | 54 |
/** |
55 |
* CalenLauncher allows external applications to start the S60 Calendar |
|
56 |
* application in any of its views. |
|
57 |
* |
|
58 |
* Available launch options are: |
|
59 |
* - Launch the Calendar and edit a new entry |
|
60 |
* - Launch the Calendar and view an existing entry |
|
61 |
* - Launch the Calendar and view an instance of a repeating entry |
|
62 |
* - Launch the Calendar and edit an existing entry |
|
63 |
* - Launch the Calendar and edit an instance of a repeating entry |
|
64 |
* - Launch the Calendar to the default view |
|
65 |
* - Launch the Calendar to the specified view |
|
66 |
* - Launch the Calendar to the specified view at a given time and date |
|
67 |
* |
|
68 |
* @code |
|
69 |
* // To create a new meeting |
|
70 |
* CalenLauncher::NewEntryL( CCalEntry::EAppt ); |
|
71 |
* |
|
72 |
* // To create a new todo |
|
73 |
* CalenLauncher::NewEntryL( CCalEntry::ETodo ); |
|
74 |
* |
|
75 |
* // To launch Calendar in the month view |
|
76 |
* CalenLauncher::LaunchL( KCalMonthViewUid ); |
|
77 |
* @endcode |
|
78 |
*/ |
|
79 |
NONSHARABLE_CLASS( CalenLauncher ) |
|
80 |
{ |
|
81 |
public: |
|
82 |
// internal viewer flags - do not use |
|
83 |
enum |
|
84 |
{ |
|
85 |
EAlarmViewer = 0x01, |
|
86 |
EAlarmViewerNoSnooze = 0x02 |
|
87 |
}; |
|
88 |
||
89 |
public: |
|
90 |
/** |
|
91 |
* Opens Calendar directly to the new entry editor. |
|
92 |
* Calendar will be closed when the editor is closed, even if it was |
|
93 |
* already open. |
|
94 |
* Any open dialogs (eg entry viewer or editor) will be closed. |
|
95 |
* @param aEntryType Type of entry editor to open |
|
96 |
* @param aFlags Reserved for future use |
|
97 |
*/ |
|
98 |
IMPORT_C static void NewEntryL( const CCalEntry::TType& aEntryType, |
|
99 |
TInt aFlags = 0 ); |
|
0
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
100 |
|
66 | 101 |
/** |
102 |
* Opens a Calendar entry directly in the entry viewer. If the |
|
103 |
* entry is a repeating entry then entire series will be opened. |
|
104 |
* The entry editor may be launched from the entry viewer. |
|
105 |
* Calendar will be closed when the editor is closed, even if it was |
|
106 |
* already open. |
|
107 |
* Any open dialogs (eg entry viewer or editor) will be closed. |
|
108 |
* @param aUid LocalUid of the entry to view |
|
109 |
* @param aFlags Reserved for future use |
|
110 |
*/ |
|
111 |
IMPORT_C static void ViewEntryL( const TCalLocalUid& aUid, |
|
112 |
TInt aFlags = 0 ); |
|
113 |
||
114 |
/** |
|
115 |
* Opens an instance of a repeating Calendar entry directly in the |
|
116 |
* entry viewer. |
|
117 |
* The entry editor may be launched from the entry viewer. |
|
118 |
* Calendar will be closed when the editor is closed, even if it was |
|
119 |
* already open. |
|
120 |
* Any open dialogs (eg entry viewer or editor) will be closed. |
|
121 |
* @param aUid LocalUid of the entry to view |
|
122 |
* @param aInstanceTime Instance time of the repeated entry |
|
123 |
* @param aFlags Reserved for future use |
|
124 |
*/ |
|
125 |
IMPORT_C static void ViewEntryL( const TCalLocalUid& aUid, |
|
126 |
const TCalTime& aInstanceTime, |
|
127 |
TInt aFlags = 0 ); |
|
128 |
||
129 |
/** |
|
130 |
* Opens an instance of a repeating Calendar entry directly in the |
|
131 |
* entry viewer. |
|
132 |
* The entry editor may be launched from the entry viewer. |
|
133 |
* Calendar will be closed when the editor is closed, even if it was |
|
134 |
* already open. |
|
135 |
* Any open dialogs (eg entry viewer or editor) will be closed. |
|
136 |
* @param aUid LocalUid of the entry to view |
|
137 |
* @param aInstanceTime Instance time of the repeated entry |
|
138 |
* @param aCalFileName Calendar DB name of the repeated entry. |
|
139 |
* @param aFlags Reserved for future use |
|
140 |
*/ |
|
141 |
IMPORT_C static void ViewEntryL( const TCalLocalUid& aUid, |
|
142 |
const TCalTime& aInstanceTime, |
|
143 |
const TDesC& aCalFileName, |
|
144 |
TInt aFlags = 0 ); |
|
145 |
||
146 |
||
0
f979ecb2b13e
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
147 |
|
66 | 148 |
/** |
149 |
* Opens a Calendar entry directly in the entry editor. If the |
|
150 |
* entry is a repeating entry then entire series will be opened. |
|
151 |
* Calendar will be closed when the editor is closed, even if it was |
|
152 |
* already open. |
|
153 |
* Any open dialogs (eg entry viewer or editor) will be closed. |
|
154 |
* @param aUid LocalUid of the entry to view |
|
155 |
* @param aFlags Reserved for future use |
|
156 |
*/ |
|
157 |
IMPORT_C static void EditEntryL( const TCalLocalUid& aUid, |
|
158 |
TInt aFlags = 0 ); |
|
159 |
||
160 |
/** |
|
161 |
* Opens an instance of a repeating Calendar entry directly in the |
|
162 |
* entry editor. |
|
163 |
* Calendar will be closed when the editor is closed, even if it was |
|
164 |
* already open. |
|
165 |
* Any open dialogs (eg entry viewer or editor) will be closed. |
|
166 |
* @param aUid LocalUid of the entry to view |
|
167 |
* @param aInstanceTime Instance time of the repeated entry |
|
168 |
* @param aFlags Reserved for future use |
|
169 |
*/ |
|
170 |
IMPORT_C static void EditEntryL( const TCalLocalUid& aUid, |
|
171 |
const TCalTime& aInstanceTime, |
|
172 |
TInt aFlags = 0 ); |
|
173 |
||
174 |
/** |
|
175 |
* Launches Calendar in the specified view. |
|
176 |
* If Calendar is already running it will be brought to the foreground |
|
177 |
* in the specified view. |
|
178 |
* Any open dialogs (eg entry viewer or editor) will be closed. |
|
179 |
* @param aViewUid UID of the Calendar view to use. |
|
180 |
* @param aFlags Reserved for future use |
|
181 |
*/ |
|
182 |
IMPORT_C static void LaunchL( const TUid& aViewUid, TInt aFlags = 0 ); |
|
183 |
||
184 |
/** |
|
185 |
* Launches Calendar in the specified view, focused to the specified time |
|
186 |
* If Calendar is already running it will be brought to the foreground |
|
187 |
* in the specified view. |
|
188 |
* Any open dialogs (eg entry viewer or editor) will be closed. |
|
189 |
* @param aViewUid UID of the Calendar view to use. |
|
190 |
* @param aFocusTime Initial focus time |
|
191 |
* @param aFlags Reserved for future use |
|
192 |
*/ |
|
193 |
IMPORT_C static void LaunchL( const TUid& aViewUid, |
|
194 |
const TCalTime& aFocusTime, |
|
195 |
TInt aFlags = 0 ); |
|
196 |
}; |
|
197 |
||
198 |
#endif // CALENLAUNCHER_H |
|
199 |
||
200 |
// End of File |