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: Used for unit testing other classes. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MMUSAVASETTINGSSTUB_H |
|
20 #define MMUSAVASETTINGSSTUB_H |
|
21 |
|
22 #include "musavasettingsimp.h" |
|
23 |
|
24 /** |
|
25 * Stub implementation of MMusAvaSettings class. |
|
26 * Used in unit tests of other classes. |
|
27 * |
|
28 * @since S60 v3.2 |
|
29 */ |
|
30 class CMusAvaSettings2 : public CMusAvaSettingsImp |
|
31 { |
|
32 public: |
|
33 |
|
34 void ConstructL(); |
|
35 |
|
36 ~CMusAvaSettings2(); |
|
37 |
|
38 |
|
39 // from baseclass MMusAvaSettings. |
|
40 |
|
41 /** |
|
42 * From MMusAvaSettings. |
|
43 * Returns telephone number. |
|
44 * |
|
45 * @since S60 v3.2 |
|
46 * @return TDesC reference containing telephone number. |
|
47 */ |
|
48 virtual const TDesC& TelNumber() const; |
|
49 |
|
50 /** |
|
51 * Returns the contact name of remote host of active CS call. |
|
52 * |
|
53 * @return The contact name. |
|
54 */ |
|
55 virtual const TDesC& ContactName() const; |
|
56 |
|
57 /** |
|
58 * From MMusAvaSettings. |
|
59 * Returns proposal for SIP address. |
|
60 * |
|
61 * @since S60 v3.2 |
|
62 * @return TDesC reference containing proposal for SIP address. |
|
63 */ |
|
64 virtual const TDesC& SipAddressProposal() const; |
|
65 |
|
66 /** |
|
67 * From MMusAvaSettings. |
|
68 * Returns SIP addresses. |
|
69 * |
|
70 * @since S60 v3.2 |
|
71 * @return reference to MDesCArray containing SIP addresses. |
|
72 */ |
|
73 const MDesCArray& SipAddresses() const; |
|
74 |
|
75 /** |
|
76 * From MMusAvaSettings. |
|
77 * Returns contact Id. |
|
78 * |
|
79 * @since S60 v3.2 |
|
80 * @return Contact Id. |
|
81 */ |
|
82 virtual TInt ContactId() const; |
|
83 |
|
84 /** |
|
85 * From MMusAvaSettings. |
|
86 * Returns video codecs. |
|
87 * |
|
88 * @since S60 v3.2 |
|
89 * @return reference to MDesCArray containing video codecs. |
|
90 */ |
|
91 const MDesCArray& VideoCodecs() const; |
|
92 |
|
93 /** |
|
94 * From MMusAvaSettings. |
|
95 * Returns audio codecs. |
|
96 * |
|
97 * @since S60 v3.2 |
|
98 * @return reference to MDesCArray containing audio codecs. |
|
99 */ |
|
100 const MDesCArray& AudioCodecs() const; |
|
101 |
|
102 /** |
|
103 * From MMusAvaSettings. |
|
104 * Returns Id of used SIP profile. |
|
105 * |
|
106 * @since S60 v3.2 |
|
107 * @return SIP profile Id. |
|
108 */ |
|
109 virtual TInt SipProfileId() const; |
|
110 |
|
111 /** |
|
112 * Returns the direction of the mobile call. |
|
113 * |
|
114 * @return 0, if the direction of the call is unknown. |
|
115 * 1, call is from public number. |
|
116 * 2, call is from private number |
|
117 */ |
|
118 virtual TInt CallPrivacy(); |
|
119 |
|
120 |
|
121 |
|
122 private: // data |
|
123 |
|
124 /** |
|
125 * Buffer containing telephone number. |
|
126 * Own. |
|
127 */ |
|
128 HBufC* iTelNumber; |
|
129 |
|
130 /** |
|
131 * Buffer containing contact name. |
|
132 * Own. |
|
133 */ |
|
134 HBufC* iContactName; |
|
135 |
|
136 /** |
|
137 * Proposal for SIP address. |
|
138 * Own. |
|
139 */ |
|
140 HBufC* iSipAddressProposal; |
|
141 |
|
142 /** |
|
143 * Id of contact. |
|
144 */ |
|
145 TInt iContactId; |
|
146 |
|
147 /** |
|
148 * Id of used SIP profile. |
|
149 */ |
|
150 TInt iSipProfileId; |
|
151 |
|
152 /** |
|
153 * Array of SIP addresses. |
|
154 * Own. |
|
155 */ |
|
156 CDesCArrayFlat* iSipAddresses; |
|
157 |
|
158 /** |
|
159 * Array of video codecs. |
|
160 * Own. |
|
161 */ |
|
162 CDesCArrayFlat* iVideoCodecs; |
|
163 |
|
164 /** |
|
165 * Array of audio codecs. |
|
166 * Own. |
|
167 */ |
|
168 CDesCArrayFlat* iAudioCodecs; |
|
169 |
|
170 /** |
|
171 * Call privacy indicator |
|
172 * |
|
173 */ |
|
174 |
|
175 TInt iCallPrivacy; |
|
176 |
|
177 MUS_UNITTEST( UT_CMusAvailabilityPluginManager ) |
|
178 |
|
179 }; |
|
180 |
|
181 #endif // MMUSAVASETTINGSSTUB_H |
|