1 /* |
|
2 * Copyright (c) 2006, 2007 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: s_enginecontmgtextfeatures.cpp |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "s_mccaparameter.h" |
|
19 |
|
20 |
|
21 /** @file mccaparameter.h |
|
22 * |
|
23 * MCCAParameter class is used to store, control and define how the CCA application is launched |
|
24 * with the contact specified data. |
|
25 * |
|
26 * Example usage of the API: |
|
27 * @code |
|
28 * MCCAParameter* aParameter = TCCAFactory::NewParameterL() |
|
29 * aParameter->SetConnectionFlag(ENormal); |
|
30 * aParameter->SetContactDataFlag(EContactId); |
|
31 * aParameter->SetContactDataL(aString); |
|
32 * |
|
33 * aParameter->SetLaunchedViewUid(aUid); |
|
34 * |
|
35 * @endcode |
|
36 * |
|
37 * @lib ccaclient |
|
38 * @since S60 v5.0 |
|
39 */ |
|
40 MCCAParameter* MCCAParameterstub::NewL() |
|
41 { |
|
42 MCCAParameter* parameter = new(ELeave)MCCAParameterstub; |
|
43 return parameter; |
|
44 } |
|
45 |
|
46 /** |
|
47 * Getter for the flags of connection. |
|
48 * @since S60 5.0 |
|
49 * @return the flags. |
|
50 */ |
|
51 MCCAParameter::TConnectionFlags MCCAParameterstub::ConnectionFlag() |
|
52 { |
|
53 |
|
54 } |
|
55 |
|
56 /** |
|
57 * Getter for the contact data flags. |
|
58 * @since S60 5.0 |
|
59 * @return the flags. |
|
60 */ |
|
61 MCCAParameter::TContactDataFlags MCCAParameterstub::ContactDataFlag() |
|
62 { |
|
63 |
|
64 } |
|
65 |
|
66 /** |
|
67 * Getter for the contact data. |
|
68 * @leave KErrArgument if data not set. |
|
69 * @since S60 5.0 |
|
70 * @return the reference of contact data. |
|
71 */ |
|
72 HBufC& MCCAParameterstub::ContactDataL() |
|
73 { |
|
74 |
|
75 } |
|
76 |
|
77 /** |
|
78 * Getter for the view uid. |
|
79 * @since S60 5.0 |
|
80 * @return the Uid. |
|
81 */ |
|
82 TUid MCCAParameterstub::LaunchedViewUid() |
|
83 { |
|
84 |
|
85 } |
|
86 |
|
87 /** |
|
88 * Getter for the version. |
|
89 * @since S60 5.0 |
|
90 * @return the version. |
|
91 */ |
|
92 TInt32 MCCAParameterstub::Version() |
|
93 { |
|
94 |
|
95 } |
|
96 |
|
97 /** |
|
98 * Setter for the flag of connection. |
|
99 * |
|
100 * @see TConnectionFlags |
|
101 * @since S60 5.0 |
|
102 * @param aFlags: flags of connection |
|
103 */ |
|
104 void MCCAParameterstub::SetConnectionFlag(const MCCAParameter::TConnectionFlags aConnectionFlags) |
|
105 { |
|
106 |
|
107 } |
|
108 |
|
109 /** |
|
110 * Setter for the contact data flag. |
|
111 * |
|
112 * @see TContactDataFlags |
|
113 * @since S60 5.0 |
|
114 * @param aFlags: flags of connection |
|
115 */ |
|
116 void MCCAParameterstub::SetContactDataFlag(const MCCAParameter::TContactDataFlags aContactDataFlags) |
|
117 { |
|
118 } |
|
119 |
|
120 /** |
|
121 * Setter for the contact data. |
|
122 * If you are using TContactDataFlags::EContactLink, the MVPbkContactLink |
|
123 * should be streamed with PackLC before given for this method. |
|
124 * Ownership is NOT transferred. |
|
125 * @see MVPbkContactLink from phonebook. |
|
126 * @leave KErrNotFound if contact data flag is not |
|
127 * set before calling this method. |
|
128 * @see MCCAParameter::SetContactDataFlags |
|
129 * @since S60 5.0 |
|
130 * @param aContactData: given contact data. |
|
131 */ |
|
132 void MCCAParameterstub::SetContactDataL(const TDesC& aContactData) |
|
133 { |
|
134 } |
|
135 |
|
136 /** |
|
137 * Setter for the launched view uid. Use this when there |
|
138 * is need to get a particular view opened first on launch of CCA. |
|
139 * If view uid is not set, CCA uses the default view. |
|
140 * NOT IMPLEMENTED YET! |
|
141 * @since S60 5.0 |
|
142 * @param aContactData: given contact data. |
|
143 */ |
|
144 void MCCAParameterstub::SetLaunchedViewUid(const TUid aUid) |
|
145 { |
|
146 |
|
147 } |
|
148 |
|
149 void MCCAParameterstub::Close() |
|
150 { |
|
151 |
|
152 } |
|
153 |
|
154 |
|
155 // End of File |
|
156 |
|