author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 18 Aug 2010 09:48:26 +0300 | |
changeset 56 | 5bcb308bd24d |
parent 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> |
|
56
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
26 |
//#include <AknGlobalNote.h> // for CAknGlobalNote |
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
27 |
|
37 | 28 |
#include "tphonecommandparam.h" |
29 |
||
30 |
// DATA TYPES |
|
56
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
31 |
enum PhoneNotificationType{ |
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
32 |
EPhoneNotificationDialog = 0, // notify of a state change that does not require user input. |
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
33 |
EPhoneMessageBoxInformation, |
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
34 |
EPhoneMessageBoxWarning |
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
35 |
}; |
37 | 36 |
// CLASS DECLARATION |
37 |
||
38 |
/** |
|
39 |
* A parameter class for global note information. |
|
40 |
*/ |
|
41 |
class TPhoneCmdParamGlobalNote : public TPhoneUICommandParam |
|
42 |
{ |
|
43 |
public: |
|
44 |
||
45 |
/** |
|
46 |
* C++ default constructor. |
|
47 |
*/ |
|
48 |
IMPORT_C TPhoneCmdParamGlobalNote(); |
|
49 |
||
50 |
public: |
|
51 |
||
52 |
/** |
|
53 |
* Sets the global note type. |
|
54 |
* @param aType is the global note type |
|
55 |
*/ |
|
56
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
56 |
IMPORT_C void SetType( PhoneNotificationType aType ); |
37 | 57 |
|
58 |
/** |
|
59 |
* Sets the text resource ID for the global note |
|
60 |
* @param aResourceId is the global note resource ID |
|
61 |
*/ |
|
62 |
IMPORT_C void SetTextResourceId( TInt aTextResourceId ); |
|
63 |
||
64 |
/** |
|
65 |
* Sets the text for the global note. |
|
66 |
* @param aText is the global note text |
|
67 |
*/ |
|
68 |
IMPORT_C void SetText( const TDesC& aText ); |
|
69 |
||
56
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
70 |
/** |
37 | 71 |
* Sets timeout for a note. |
72 |
* @param aTimeout Timeout in milliseconds. If timeout == 0 then |
|
73 |
* default timeout is used. If timeout < 0 the note is not closed |
|
74 |
* automatically. |
|
75 |
*/ |
|
76 |
IMPORT_C void SetTimeout( TInt aTimeout ); |
|
77 |
||
78 |
/** |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
79 |
* Sets notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
80 |
* @param aNotificationDialog True if notification dialog |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
81 |
* should be used. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
82 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
83 |
IMPORT_C void SetNotificationDialog( TBool aNotificationDialog ); |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
84 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
85 |
/** |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
86 |
* Sets cause code. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
87 |
* @param aCauseCode Cause code. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
88 |
*/ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
89 |
IMPORT_C void SetCauseCode( TInt aCauseCode ); |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
90 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
91 |
/** |
37 | 92 |
* Returns the global note type |
93 |
* @return Returns the type |
|
94 |
*/ |
|
56
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
95 |
IMPORT_C PhoneNotificationType Type() const; |
37 | 96 |
|
97 |
/** |
|
98 |
* Returns the global note text resource ID. |
|
99 |
* @return Returns the global note text resource ID. |
|
100 |
*/ |
|
101 |
IMPORT_C TInt TextResourceId() const; |
|
102 |
||
103 |
/** |
|
104 |
* Returns the global note text |
|
105 |
* @return Returns the text |
|
106 |
*/ |
|
107 |
IMPORT_C const TDesC& Text() const; |
|
108 |
||
109 |
/** |
|
110 |
* Returns the timeout value. |
|
111 |
* @return Timeout value. |
|
112 |
*/ |
|
113 |
IMPORT_C TInt Timeout() const; |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
114 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
115 |
/** |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
116 |
* Returns the notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
117 |
* @return Notification dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
118 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
119 |
IMPORT_C TBool NotificationDialog() const; |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
120 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
121 |
/** |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
122 |
* Returns cause code. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
123 |
* @return Cause code. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
124 |
*/ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
125 |
IMPORT_C TInt CauseCode() const; |
37 | 126 |
|
127 |
private: |
|
128 |
||
129 |
/** |
|
130 |
* Global note type |
|
131 |
*/ |
|
56
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
132 |
PhoneNotificationType iType; |
5bcb308bd24d
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
133 |
|
37 | 134 |
/** |
135 |
* Global note text resource ID |
|
136 |
*/ |
|
137 |
TInt iTextResourceId; |
|
138 |
||
139 |
/** |
|
140 |
* Global note text |
|
141 |
*/ |
|
142 |
TPtrC iText; |
|
143 |
||
144 |
/** |
|
145 |
* Timeout for a note. |
|
146 |
*/ |
|
147 |
TInt iTimeout; |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
148 |
|
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
149 |
/** |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
150 |
* Notification Dialog flag. |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
151 |
*/ |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
152 |
TBool iNotificationDialog; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
153 |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
154 |
/** |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
155 |
* Cause code. |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
156 |
*/ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
157 |
TInt iCauseCode; |
37 | 158 |
}; |
159 |
||
160 |
#endif // __TPHONECMDPARAMGLOBALNOTE_H |
|
161 |
||
162 |
// End of File |