author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 23 Jun 2010 18:12:20 +0300 | |
changeset 45 | 6b911d05207e |
parent 37 | ba76fc04e6c2 |
child 46 | bc5a64e5bc3c |
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> |
|
26 |
#include <AknGlobalNote.h> // for CAknGlobalNote |
|
27 |
#include "tphonecommandparam.h" |
|
28 |
||
29 |
// DATA TYPES |
|
30 |
||
31 |
// CLASS DECLARATION |
|
32 |
||
33 |
/** |
|
34 |
* A parameter class for global note information. |
|
35 |
*/ |
|
36 |
class TPhoneCmdParamGlobalNote : public TPhoneUICommandParam |
|
37 |
{ |
|
38 |
public: |
|
39 |
||
40 |
/** |
|
41 |
* C++ default constructor. |
|
42 |
*/ |
|
43 |
IMPORT_C TPhoneCmdParamGlobalNote(); |
|
44 |
||
45 |
public: |
|
46 |
||
47 |
/** |
|
48 |
* Sets the global note type. |
|
49 |
* @param aType is the global note type |
|
50 |
*/ |
|
51 |
IMPORT_C void SetType( TAknGlobalNoteType aType ); |
|
52 |
||
53 |
/** |
|
54 |
* Sets the text resource ID for the global note |
|
55 |
* @param aResourceId is the global note resource ID |
|
56 |
*/ |
|
57 |
IMPORT_C void SetTextResourceId( TInt aTextResourceId ); |
|
58 |
||
59 |
/** |
|
60 |
* Sets the text for the global note. |
|
61 |
* @param aText is the global note text |
|
62 |
*/ |
|
63 |
IMPORT_C void SetText( const TDesC& aText ); |
|
64 |
||
65 |
/** |
|
66 |
* Sets the global note tone. |
|
67 |
* @param aTone is the note tone |
|
68 |
*/ |
|
69 |
IMPORT_C void SetTone( TInt aTone ); |
|
70 |
||
71 |
/** |
|
72 |
* Sets the global note wait status. |
|
73 |
* @param aStatus Wait for completed or not |
|
74 |
*/ |
|
75 |
IMPORT_C void SetWaitForReady( TBool aStatus ); |
|
76 |
||
77 |
/** |
|
78 |
* Sets the global note softkeys. |
|
79 |
* @param aTone is the note softkeys |
|
80 |
*/ |
|
81 |
IMPORT_C void SetSoftkeys( TInt aSoftkeys ); |
|
82 |
||
83 |
/** |
|
84 |
* Sets timeout for a note. |
|
85 |
* @param aTimeout Timeout in milliseconds. If timeout == 0 then |
|
86 |
* default timeout is used. If timeout < 0 the note is not closed |
|
87 |
* automatically. |
|
88 |
*/ |
|
89 |
IMPORT_C void SetTimeout( TInt aTimeout ); |
|
90 |
||
91 |
/** |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
92 |
* Sets notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
93 |
* @param aNotificationDialog True if notification dialog |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
94 |
* should be used. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
95 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
96 |
IMPORT_C void SetNotificationDialog( TBool aNotificationDialog ); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
97 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
98 |
/** |
37 | 99 |
* Returns the global note type |
100 |
* @return Returns the type |
|
101 |
*/ |
|
102 |
IMPORT_C TAknGlobalNoteType Type() const; |
|
103 |
||
104 |
/** |
|
105 |
* Returns the global note text resource ID. |
|
106 |
* @return Returns the global note text resource ID. |
|
107 |
*/ |
|
108 |
IMPORT_C TInt TextResourceId() const; |
|
109 |
||
110 |
/** |
|
111 |
* Returns the global note text |
|
112 |
* @return Returns the text |
|
113 |
*/ |
|
114 |
IMPORT_C const TDesC& Text() const; |
|
115 |
||
116 |
/** |
|
117 |
* Returns the global note tone. |
|
118 |
* @return Returns the global note tone |
|
119 |
*/ |
|
120 |
IMPORT_C TInt Tone() const; |
|
121 |
||
122 |
/** |
|
123 |
* Gets the global note wait status |
|
124 |
* @return ETrue if wait for completed |
|
125 |
*/ |
|
126 |
IMPORT_C TBool WaitForReady() const; |
|
127 |
||
128 |
/** |
|
129 |
* Returns the global note softkeys. |
|
130 |
* @return Returns the global note softkeys |
|
131 |
*/ |
|
132 |
IMPORT_C TInt Softkeys() const; |
|
133 |
||
134 |
/** |
|
135 |
* Returns the timeout value. |
|
136 |
* @return Timeout value. |
|
137 |
*/ |
|
138 |
IMPORT_C TInt Timeout() const; |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
139 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
140 |
/** |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
141 |
* Returns the notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
142 |
* @return Notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
143 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
144 |
IMPORT_C TBool NotificationDialog() const; |
37 | 145 |
|
146 |
private: |
|
147 |
||
148 |
/** |
|
149 |
* Global note type |
|
150 |
*/ |
|
151 |
TAknGlobalNoteType iType; |
|
152 |
||
153 |
/** |
|
154 |
* Global note text resource ID |
|
155 |
*/ |
|
156 |
TInt iTextResourceId; |
|
157 |
||
158 |
/** |
|
159 |
* Global note text |
|
160 |
*/ |
|
161 |
TPtrC iText; |
|
162 |
||
163 |
/** |
|
164 |
* Global note tone |
|
165 |
*/ |
|
166 |
TInt iTone; |
|
167 |
||
168 |
/** |
|
169 |
* Wait for ready status |
|
170 |
*/ |
|
171 |
TBool iWaitforReady; |
|
172 |
||
173 |
/** |
|
174 |
* Global note softkeys |
|
175 |
*/ |
|
176 |
TInt iSoftkeys; |
|
177 |
||
178 |
/** |
|
179 |
* Timeout for a note. |
|
180 |
*/ |
|
181 |
TInt iTimeout; |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
182 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
183 |
/** |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
184 |
* Notification Dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
185 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
186 |
TBool iNotificationDialog; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
187 |
|
37 | 188 |
}; |
189 |
||
190 |
#endif // __TPHONECMDPARAMGLOBALNOTE_H |
|
191 |
||
192 |
// End of File |