diff -r 000000000000 -r 5e5d6b214f4f uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/branch_coverage/indexD18.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/branch_coverage/indexD18.html Tue Feb 02 10:12:18 2010 +0200 @@ -0,0 +1,220 @@ + +
+Start/ | End/ | |||
True | False | - | Line | Source |
1 | /* | |||
2 | * ============================================================================== | |||
3 | * Name : cvimpststoragecontact.cpp | |||
4 | * Part of : IMUiserviceTab / vimpststorage | |||
5 | * Description : Implementation of contact data container | |||
6 | * Version : %version: 29 % | |||
7 | * | |||
8 | * Copyright (c) 2008 Nokia Corporation. | |||
9 | * This material, including documentation and any related | |||
10 | * computer programs, is protected by copyright controlled by | |||
11 | * Nokia Corporation. All rights are reserved. Copying, | |||
12 | * including reproducing, storing, adapting or translating, any | |||
13 | * or all of this material requires the prior written consent of | |||
14 | * Nokia Corporation. This material also contains confidential | |||
15 | * information which may not be disclosed to others without the | |||
16 | * prior written consent of Nokia Corporation. | |||
17 | * ============================================================================== | |||
18 | */ | |||
19 | ||||
20 | ||||
21 | // INCLUDE FILES | |||
22 | #include "s_vimpststoragecontact.h" | |||
23 | #include <MVPBKSTORECONTACT.H> | |||
24 | #include "s_MVPbkContactLinkstub.h" | |||
25 | ||||
26 | // ============================ MEMBER FUNCTIONS =============================== | |||
27 | ||||
28 | ||||
29 | ||||
30 | // ----------------------------------------------------------------------------- | |||
31 | // CVIMPSTStorageContact::NewL | |||
32 | // Two-phased constructor. | |||
33 | // ----------------------------------------------------------------------------- | |||
34 | // | |||
155 | 0 | 35 | MVIMPSTStorageContact* vimpststoragecontact_stub::NewL() | |
36 | { | |||
37 | MVIMPSTStorageContact* contact = new(ELeave)vimpststoragecontact_stub; | |||
155 | 38 | return contact; | ||
39 | } | |||
40 | ||||
41 | // Destructor | |||
3 | 3 | 42 | vimpststoragecontact_stub::~vimpststoragecontact_stub() | |
43 | { | |||
44 | ||||
45 | } | |||
46 | ||||
47 | // ----------------------------------------------------------------------------- | |||
48 | // CVIMPSTStorageContact::UserId | |||
49 | // From MVIMPSTStorageContact | |||
50 | // ----------------------------------------------------------------------------- | |||
51 | // | |||
150 | 0 | 52 | const TDesC& vimpststoragecontact_stub::UserId() const | |
53 | { | |||
150 | 54 | return KDummy(); | ||
55 | } | |||
56 | ||||
57 | // ----------------------------------------------------------------------------- | |||
58 | // CVIMPSTStorageContact::UserId | |||
59 | // From MVIMPSTStorageContact | |||
60 | // ----------------------------------------------------------------------------- | |||
61 | // | |||
76 | 0 | 62 | const TDesC& vimpststoragecontact_stub::Name() const | |
63 | { | |||
76 | 64 | return KDummy(); | ||
65 | } | |||
66 | // ----------------------------------------------------------------------------- | |||
67 | // CVIMPSTStorageContact::OnlineStatus | |||
68 | // From MVIMPSTStorageContact | |||
69 | // ----------------------------------------------------------------------------- | |||
70 | // | |||
67 | 0 | 71 | TVIMPSTEnums::TOnlineStatus vimpststoragecontact_stub::OnlineStatus() const | |
72 | { | |||
73 | TVIMPSTEnums::TOnlineStatus status = TVIMPSTEnums::EOffline; | |||
67 | 74 | return status; | ||
75 | } | |||
76 | ||||
77 | ||||
78 | // ----------------------------------------------------------------------------- | |||
79 | // CVIMPSTStorageContact::SetOnlineStatus | |||
80 | // From MVIMPSTStorageContact | |||
81 | // ----------------------------------------------------------------------------- | |||
82 | // | |||
0 | 0 | - | 83 | void vimpststoragecontact_stub::SetOnlineStatus( |
84 | TVIMPSTEnums::TOnlineStatus /*aOnlineStatus*/ ) | |||
85 | { | |||
86 | //iPresenceStatus = aOnlineStatus; | |||
87 | } | |||
88 | ||||
89 | ||||
90 | // ----------------------------------------------------------------------------- | |||
91 | // CVIMPSTStorageContact::StatusText | |||
92 | // From MVIMPSTStorageContact | |||
93 | // ----------------------------------------------------------------------------- | |||
94 | // | |||
1 | 0 | 95 | const TDesC& vimpststoragecontact_stub::StatusText() const | |
96 | { | |||
1 | 97 | return KDummy(); | ||
98 | } | |||
99 | ||||
100 | // ----------------------------------------------------------------------------- | |||
101 | // CVIMPSTStorageContact::SetStatusTextL | |||
102 | // From MVIMPSTStorageContact | |||
103 | // ----------------------------------------------------------------------------- | |||
104 | // | |||
0 | 0 | - | 105 | void vimpststoragecontact_stub::SetStatusTextL( const TDesC& /*aStatusText*/ ) |
106 | { | |||
107 | ||||
108 | } | |||
109 | ||||
110 | // ----------------------------------------------------------------------------- | |||
111 | // CVIMPSTStorageContact::SetAvatarContentL | |||
112 | // From MVIMPSTStorageContact | |||
113 | // ----------------------------------------------------------------------------- | |||
114 | // | |||
0 | 0 | - | 115 | void vimpststoragecontact_stub::SetAvatarContentL( const TDesC8& /*aAvatarContent*/, MVIMPSTStorageVPbkContactStore& /*aVPPkStoreHandler*/ ) |
116 | { | |||
117 | ||||
118 | } | |||
119 | ||||
120 | ||||
121 | // ----------------------------------------------------------------------------- | |||
122 | // CVIMPSTStorageContact::SetUserIdL | |||
123 | // From MVIMPSTStorageExtendedStorageContact | |||
124 | // ----------------------------------------------------------------------------- | |||
125 | // | |||
0 | 0 | - | 126 | void vimpststoragecontact_stub::SetUserIdL( const TDesC& /*aUserId*/ ) |
127 | { | |||
128 | ||||
129 | } | |||
130 | ||||
131 | // ----------------------------------------------------------------------------- | |||
132 | // CVIMPSTStorageContact::SetNameL | |||
133 | // From MVIMPSTStorageExtendedStorageContact | |||
134 | // ----------------------------------------------------------------------------- | |||
135 | // | |||
0 | 0 | - | 136 | void vimpststoragecontact_stub::SetNameL( const TDesC& /*aName*/ ) |
137 | { | |||
138 | ||||
139 | } | |||
140 | // --------------------------------------------------------------------------- | |||
141 | // CVIMPSTStorageContact::ContactLink() | |||
142 | // --------------------------------------------------------------------------- | |||
143 | // | |||
76 | 0 | 144 | MVPbkContactLink* vimpststoragecontact_stub::ContactLink() const | |
145 | { | |||
146 | MVPbkContactLink* link = CVPbkContactLinkStub::NewL(); | |||
76 | 147 | return link; | ||
148 | } | |||
149 | ||||
150 | // --------------------------------------------------------------------------- | |||
151 | // CVIMPSTStorageContact::AvatarContent | |||
152 | // --------------------------------------------------------------------------- | |||
153 | // | |||
4 | 0 | 154 | const TDesC8& vimpststoragecontact_stub::AvatarContent() const | |
155 | { | |||
156 | _LIT8(Kavatar,"avatar"); | |||
4 | 157 | return Kavatar(); | ||
158 | } | |||
159 | // --------------------------------------------------------------------------- | |||
160 | // CVIMPSTStorageContact::SetAvatarIndex() | |||
161 | // --------------------------------------------------------------------------- | |||
162 | // | |||
1 | 1 | 163 | void vimpststoragecontact_stub::SetAvatarIndex(TInt aIndex ) | |
164 | { | |||
165 | iAvatarIndex = aIndex; | |||
166 | } | |||
167 | ||||
168 | // --------------------------------------------------------------------------- | |||
169 | // CVIMPSTStorageContact::AvatarIndex | |||
170 | // --------------------------------------------------------------------------- | |||
171 | // | |||
2 | 0 | 172 | TInt vimpststoragecontact_stub::AvatarIndex() const | |
173 | { | |||
2 | 174 | return 1; | ||
175 | } | |||
176 | ||||
177 | // End of File | |||
***TER 78% (18/23) of SOURCE FILE s_vimpststoragecontact.cpp |