|
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: Implementation of TPhoneCmdParamAppInfo class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 |
|
21 #include "tphonecmdparamappinfo.h" |
|
22 |
|
23 // ================= MEMBER FUNCTIONS ======================= |
|
24 |
|
25 // C++ default constructor can NOT contain any code, that |
|
26 // might leave. |
|
27 // |
|
28 EXPORT_C TPhoneCmdParamAppInfo::TPhoneCmdParamAppInfo() : |
|
29 TPhoneCommandParam(), |
|
30 iAppUid( KNullUid ), |
|
31 iViewUid( KNullUid ), |
|
32 iParam( KNullDesC8 ), |
|
33 iCustomMessageId( KNullUid ), // NULL for no message |
|
34 iCustomMessage( KNullDesC8 ), |
|
35 iMultipleInstances( EFalse ) |
|
36 { |
|
37 iParamId = EPhoneParamIdAppInfo; |
|
38 } |
|
39 |
|
40 // --------------------------------------------------------- |
|
41 // TPhoneCmdParamAppInfo::SetAppUid |
|
42 // Sets applicaiton uid. |
|
43 // --------------------------------------------------------- |
|
44 // |
|
45 EXPORT_C void TPhoneCmdParamAppInfo::SetAppUid( const TUid& aAppUid ) |
|
46 { |
|
47 iAppUid = aAppUid; |
|
48 } |
|
49 |
|
50 // --------------------------------------------------------- |
|
51 // TPhoneCmdParamAppInfo::SetViewUid |
|
52 // Sets View uid. |
|
53 // --------------------------------------------------------- |
|
54 // |
|
55 EXPORT_C void TPhoneCmdParamAppInfo::SetViewUid( const TUid& aViewUid ) |
|
56 { |
|
57 iViewUid = aViewUid; |
|
58 } |
|
59 |
|
60 // --------------------------------------------------------- |
|
61 // TPhoneCmdParamAppInfo::SetParam |
|
62 // Sets application parameter |
|
63 // (other items were commented in a header). |
|
64 // --------------------------------------------------------- |
|
65 // |
|
66 EXPORT_C void TPhoneCmdParamAppInfo::SetParam( const TDesC8& aParam ) |
|
67 { |
|
68 iParam.Set( aParam ); |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------- |
|
72 // TPhoneCmdParamAppInfo::SetCustomMessageId |
|
73 // Sets Custom Message Id. |
|
74 // --------------------------------------------------------- |
|
75 // |
|
76 EXPORT_C void TPhoneCmdParamAppInfo::SetCustomMessageId( |
|
77 const TUid& aCustomMessageId ) |
|
78 { |
|
79 iCustomMessageId = aCustomMessageId; |
|
80 } |
|
81 |
|
82 // --------------------------------------------------------- |
|
83 // TPhoneCmdParamAppInfo::SetCustomMessage |
|
84 // Sets Custom message |
|
85 // (other items were commented in a header). |
|
86 // --------------------------------------------------------- |
|
87 // |
|
88 EXPORT_C void TPhoneCmdParamAppInfo::SetCustomMessage( |
|
89 const TDesC8& aCustomMessage ) |
|
90 { |
|
91 iCustomMessage.Set( aCustomMessage ); |
|
92 } |
|
93 |
|
94 // --------------------------------------------------------- |
|
95 // TPhoneCmdParamAppInfo::SetMultipleInstances |
|
96 // Sets the application's multiple instance status |
|
97 // (other items were commented in a header). |
|
98 // --------------------------------------------------------- |
|
99 // |
|
100 EXPORT_C void TPhoneCmdParamAppInfo::SetMultipleInstances( |
|
101 TBool aMultipleInstances ) |
|
102 { |
|
103 iMultipleInstances = aMultipleInstances; |
|
104 } |
|
105 |
|
106 // --------------------------------------------------------- |
|
107 // TPhoneCmdParamAppInfo::AppUid |
|
108 // Returns application uid |
|
109 // --------------------------------------------------------- |
|
110 // |
|
111 EXPORT_C TUid TPhoneCmdParamAppInfo::AppUid() const |
|
112 { |
|
113 return iAppUid; |
|
114 } |
|
115 |
|
116 // --------------------------------------------------------- |
|
117 // TPhoneCmdParamAppInfo::ViewUid |
|
118 // Returns View uid |
|
119 // --------------------------------------------------------- |
|
120 // |
|
121 EXPORT_C TUid TPhoneCmdParamAppInfo::ViewUid() const |
|
122 { |
|
123 return iViewUid; |
|
124 } |
|
125 |
|
126 // --------------------------------------------------------- |
|
127 // TPhoneCmdParamAppInfo::Param |
|
128 // Returns App parameter |
|
129 // --------------------------------------------------------- |
|
130 // |
|
131 EXPORT_C const TDesC8& TPhoneCmdParamAppInfo::Param() const |
|
132 { |
|
133 return iParam; |
|
134 } |
|
135 |
|
136 // --------------------------------------------------------- |
|
137 // TPhoneCmdParamAppInfo::CustomMessageId |
|
138 // Returns Custom Message Id |
|
139 // --------------------------------------------------------- |
|
140 // |
|
141 EXPORT_C TUid TPhoneCmdParamAppInfo::CustomMessageId() const |
|
142 { |
|
143 return iCustomMessageId; |
|
144 } |
|
145 |
|
146 // --------------------------------------------------------- |
|
147 // TPhoneCmdParamAppInfo::CustomMessage |
|
148 // Returns Message |
|
149 // --------------------------------------------------------- |
|
150 // |
|
151 EXPORT_C const TDesC8& TPhoneCmdParamAppInfo::CustomMessage() const |
|
152 { |
|
153 return iCustomMessage; |
|
154 } |
|
155 |
|
156 // --------------------------------------------------------- |
|
157 // TPhoneCmdParamAppInfo::MultipleInstances |
|
158 // Returns the application's multiple instance status |
|
159 // (other items were commented in a header). |
|
160 // --------------------------------------------------------- |
|
161 // |
|
162 EXPORT_C TBool TPhoneCmdParamAppInfo::MultipleInstances() const |
|
163 { |
|
164 return iMultipleInstances; |
|
165 } |
|
166 |
|
167 // End of File |