author | hgs |
Fri, 23 Jul 2010 12:55:58 +0300 | |
changeset 52 | a49bfe5190e4 |
parent 46 | bc5a64e5bc3c |
child 53 | 22cc52eade9b |
permissions | -rw-r--r-- |
37 | 1 |
/* |
2 |
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of "Eclipse Public License v1.0" |
|
6 |
* which accompanies this distribution, and is available |
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
* |
|
9 |
* Initial Contributors: |
|
10 |
* Nokia Corporation - initial contribution. |
|
11 |
* |
|
12 |
* Contributors: |
|
13 |
* |
|
14 |
* Description: |
|
15 |
* See class description. |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
||
20 |
#ifndef __TPHONECMDPARAMGLOBALNOTE_H |
|
21 |
#define __TPHONECMDPARAMGLOBALNOTE_H |
|
22 |
||
23 |
// INCLUDES |
|
24 |
||
25 |
#include <w32std.h> |
|
52 | 26 |
// ##### QT CHANGE begin |
27 |
// #include <AknGlobalNote.h> // for CAknGlobalNote |
|
28 |
// ##### QT CHANGE end |
|
37 | 29 |
#include "tphonecommandparam.h" |
30 |
||
31 |
// DATA TYPES |
|
32 |
||
52 | 33 |
// ##### QT CHANGE begin |
34 |
// Note: as AknGlobalNote API is removed, the enumeration is temporarily copied here |
|
35 |
// to avoid compile break. The API needs to be changed though. |
|
36 |
enum TAknGlobalNoteType { |
|
37 |
EAknGlobalInformationNote = 1, |
|
38 |
EAknGlobalWarningNote, |
|
39 |
EAknGlobalConfirmationNote, |
|
40 |
EAknGlobalErrorNote, |
|
41 |
EAknGlobalWaitNote |
|
42 |
}; |
|
43 |
// ##### QT CHANGE end |
|
44 |
||
37 | 45 |
// CLASS DECLARATION |
46 |
||
47 |
/** |
|
48 |
* A parameter class for global note information. |
|
49 |
*/ |
|
50 |
class TPhoneCmdParamGlobalNote : public TPhoneUICommandParam |
|
51 |
{ |
|
52 |
public: |
|
53 |
||
54 |
/** |
|
55 |
* C++ default constructor. |
|
56 |
*/ |
|
57 |
IMPORT_C TPhoneCmdParamGlobalNote(); |
|
58 |
||
59 |
public: |
|
60 |
||
61 |
/** |
|
62 |
* Sets the global note type. |
|
63 |
* @param aType is the global note type |
|
64 |
*/ |
|
65 |
IMPORT_C void SetType( TAknGlobalNoteType aType ); |
|
66 |
||
67 |
/** |
|
68 |
* Sets the text resource ID for the global note |
|
69 |
* @param aResourceId is the global note resource ID |
|
70 |
*/ |
|
71 |
IMPORT_C void SetTextResourceId( TInt aTextResourceId ); |
|
72 |
||
73 |
/** |
|
74 |
* Sets the text for the global note. |
|
75 |
* @param aText is the global note text |
|
76 |
*/ |
|
77 |
IMPORT_C void SetText( const TDesC& aText ); |
|
78 |
||
79 |
/** |
|
80 |
* Sets the global note tone. |
|
81 |
* @param aTone is the note tone |
|
82 |
*/ |
|
83 |
IMPORT_C void SetTone( TInt aTone ); |
|
84 |
||
85 |
/** |
|
86 |
* Sets the global note wait status. |
|
87 |
* @param aStatus Wait for completed or not |
|
88 |
*/ |
|
89 |
IMPORT_C void SetWaitForReady( TBool aStatus ); |
|
90 |
||
91 |
/** |
|
92 |
* Sets the global note softkeys. |
|
93 |
* @param aTone is the note softkeys |
|
94 |
*/ |
|
95 |
IMPORT_C void SetSoftkeys( TInt aSoftkeys ); |
|
96 |
||
97 |
/** |
|
98 |
* Sets timeout for a note. |
|
99 |
* @param aTimeout Timeout in milliseconds. If timeout == 0 then |
|
100 |
* default timeout is used. If timeout < 0 the note is not closed |
|
101 |
* automatically. |
|
102 |
*/ |
|
103 |
IMPORT_C void SetTimeout( TInt aTimeout ); |
|
104 |
||
105 |
/** |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
106 |
* Sets notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
107 |
* @param aNotificationDialog True if notification dialog |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
108 |
* should be used. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
109 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
110 |
IMPORT_C void SetNotificationDialog( TBool aNotificationDialog ); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
111 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
112 |
/** |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
113 |
* Sets cause code. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
114 |
* @param aCauseCode Cause code. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
115 |
*/ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
116 |
IMPORT_C void SetCauseCode( TInt aCauseCode ); |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
117 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
118 |
/** |
37 | 119 |
* Returns the global note type |
120 |
* @return Returns the type |
|
121 |
*/ |
|
122 |
IMPORT_C TAknGlobalNoteType Type() const; |
|
123 |
||
124 |
/** |
|
125 |
* Returns the global note text resource ID. |
|
126 |
* @return Returns the global note text resource ID. |
|
127 |
*/ |
|
128 |
IMPORT_C TInt TextResourceId() const; |
|
129 |
||
130 |
/** |
|
131 |
* Returns the global note text |
|
132 |
* @return Returns the text |
|
133 |
*/ |
|
134 |
IMPORT_C const TDesC& Text() const; |
|
135 |
||
136 |
/** |
|
137 |
* Returns the global note tone. |
|
138 |
* @return Returns the global note tone |
|
139 |
*/ |
|
140 |
IMPORT_C TInt Tone() const; |
|
141 |
||
142 |
/** |
|
143 |
* Gets the global note wait status |
|
144 |
* @return ETrue if wait for completed |
|
145 |
*/ |
|
146 |
IMPORT_C TBool WaitForReady() const; |
|
147 |
||
148 |
/** |
|
149 |
* Returns the global note softkeys. |
|
150 |
* @return Returns the global note softkeys |
|
151 |
*/ |
|
152 |
IMPORT_C TInt Softkeys() const; |
|
153 |
||
154 |
/** |
|
155 |
* Returns the timeout value. |
|
156 |
* @return Timeout value. |
|
157 |
*/ |
|
158 |
IMPORT_C TInt Timeout() const; |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
159 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
160 |
/** |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
161 |
* Returns the notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
162 |
* @return Notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
163 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
164 |
IMPORT_C TBool NotificationDialog() const; |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
165 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
166 |
/** |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
167 |
* Returns cause code. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
168 |
* @return Cause code. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
169 |
*/ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
170 |
IMPORT_C TInt CauseCode() const; |
37 | 171 |
|
172 |
private: |
|
173 |
||
174 |
/** |
|
175 |
* Global note type |
|
176 |
*/ |
|
177 |
TAknGlobalNoteType iType; |
|
178 |
||
179 |
/** |
|
180 |
* Global note text resource ID |
|
181 |
*/ |
|
182 |
TInt iTextResourceId; |
|
183 |
||
184 |
/** |
|
185 |
* Global note text |
|
186 |
*/ |
|
187 |
TPtrC iText; |
|
188 |
||
189 |
/** |
|
190 |
* Global note tone |
|
191 |
*/ |
|
192 |
TInt iTone; |
|
193 |
||
194 |
/** |
|
195 |
* Wait for ready status |
|
196 |
*/ |
|
197 |
TBool iWaitforReady; |
|
198 |
||
199 |
/** |
|
200 |
* Global note softkeys |
|
201 |
*/ |
|
202 |
TInt iSoftkeys; |
|
203 |
||
204 |
/** |
|
205 |
* Timeout for a note. |
|
206 |
*/ |
|
207 |
TInt iTimeout; |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
208 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
209 |
/** |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
210 |
* Notification Dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
211 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
212 |
TBool iNotificationDialog; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
213 |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
214 |
/** |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
215 |
* Cause code. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
216 |
*/ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
217 |
TInt iCauseCode; |
37 | 218 |
}; |
219 |
||
220 |
#endif // __TPHONECMDPARAMGLOBALNOTE_H |
|
221 |
||
222 |
// End of File |