diff -r 3104fc151679 -r 9a48e301e94b uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/branch_coverage/indexD5.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstcmdprocess/tsrc/vimpstcmdprocess_utest/data/branch_coverage/indexD5.html Wed Sep 01 12:33:36 2010 +0100 @@ -0,0 +1,266 @@ + +
+Start/ | End/ | |||
True | False | - | Line | Source |
1 | /* | |||
2 | * ============================================================================== | |||
3 | * Name : s_CVPbkContactLinkArray.cpp | |||
4 | * Part of : Virtual Phonebook / VPbkEng.dll | |||
5 | * Description : An array for contact links. | |||
6 | * Version : %version: 1 % | |||
7 | * | |||
8 | * Copyright © 2002-2007 Nokia. All rights reserved. | |||
9 | * This material, including documentation and any related computer | |||
10 | * programs, is protected by copyright controlled by Nokia. All | |||
11 | * rights are reserved. Copying, including reproducing, storing, | |||
12 | * adapting or translating, any or all of this material requires the | |||
13 | * prior written consent of Nokia. This material also contains | |||
14 | * confidential information which may not be disclosed to others | |||
15 | * without the prior written consent of Nokia. | |||
16 | * ============================================================================ | |||
17 | */ | |||
18 | ||||
19 | ||||
20 | // INCLUDES | |||
21 | #include <CVPbkContactLinkArray.h> | |||
22 | /** | |||
23 | * Creates an empty link array. | |||
24 | * | |||
25 | * @return A new instance of this class | |||
26 | */ | |||
0 | 0 | - | 27 | EXPORT_C CVPbkContactLinkArray* CVPbkContactLinkArray::NewL(){ return new (ELeave) CVPbkContactLinkArray; } |
0 | - | 27 | return new ( ELeave ) CVPbkContactLinkArray | |
28 | ||||
29 | /** | |||
30 | * Creates an empty link array. Leaves the created array object on | |||
31 | * the cleanup stack. | |||
32 | * | |||
33 | * @return A new instance of this class | |||
34 | */ | |||
0 | 0 | - | 35 | EXPORT_C CVPbkContactLinkArray* CVPbkContactLinkArray::NewLC() |
36 | { | |||
37 | CVPbkContactLinkArray* self = new (ELeave) CVPbkContactLinkArray; | |||
38 | CleanupStack::PushL(self); | |||
0 | - | 39 | return self; | |
40 | } | |||
41 | ||||
42 | /** | |||
43 | * Creates a link array from a packed descriptor of links. | |||
44 | * | |||
45 | * @param aPackedLinks a buffer that was created using PackLC | |||
46 | * of MVPbkContactLinkArray or MVPbkContactLink | |||
47 | * @param aStoreList the list of stores that contain the | |||
48 | * stores that links belong. | |||
49 | * @return A new instance of this class | |||
50 | */ | |||
0 | 0 | - | 51 | EXPORT_C CVPbkContactLinkArray* CVPbkContactLinkArray::NewLC( |
52 | const TDesC8& /*aPackedLinks*/, | |||
53 | const MVPbkContactStoreList& /*aStoreList*/) | |||
54 | { | |||
55 | CVPbkContactLinkArray* self = new (ELeave) CVPbkContactLinkArray; | |||
56 | CleanupStack::PushL(self); | |||
0 | - | 57 | return self; | |
58 | } | |||
59 | ||||
60 | /** | |||
61 | * Creates a link array from a stream of links. | |||
62 | * | |||
63 | * @param aStream a stream of contact link that was created | |||
64 | * using MVPbkStreamable interface of | |||
65 | * MVPbkContactLink | |||
66 | * @param aStoreList the list of stores that contain the | |||
67 | * stores that links belong. | |||
68 | * @return A new instance of this class | |||
69 | */ | |||
0 | 0 | - | 70 | EXPORT_C CVPbkContactLinkArray* CVPbkContactLinkArray::NewLC( |
71 | RReadStream& /*aStream*/, | |||
72 | const MVPbkContactStoreList& /*aStoreList*/) | |||
73 | { | |||
74 | CVPbkContactLinkArray* self = new (ELeave) CVPbkContactLinkArray; | |||
75 | CleanupStack::PushL(self); | |||
0 | - | 76 | return self; | |
77 | } | |||
78 | ||||
79 | /** | |||
80 | * Creates a link array from a stream of links. Uses aLoader | |||
81 | * to find and load stores. | |||
82 | * aLoader must exist the life time of this object. | |||
83 | * | |||
84 | * @param aStream a stream of contact link that was created | |||
85 | * using MVPbkStreamable interface of | |||
86 | * MVPbkContactLink | |||
87 | * @param aLoader the contact store loader for internalization. | |||
88 | * @return A new instance of this class | |||
89 | */ | |||
0 | 0 | - | 90 | CVPbkContactLinkArray* CVPbkContactLinkArray::NewLC( |
91 | RReadStream& /*aStream*/, | |||
92 | MVPbkContactStoreLoader& /*aLoader*/ ) | |||
93 | { | |||
94 | CVPbkContactLinkArray* self = new (ELeave) CVPbkContactLinkArray; | |||
95 | CleanupStack::PushL(self); | |||
0 | - | 96 | return self; | |
97 | } | |||
98 | ||||
99 | /** | |||
100 | * Destructor. | |||
101 | */ | |||
0 | 0 | - | 102 | CVPbkContactLinkArray::~CVPbkContactLinkArray(){ } |
103 | ||||
104 | ||||
105 | /** | |||
106 | * Appends a link to this array. | |||
107 | * | |||
108 | * @param aLink the link object to append. This array takes ownership | |||
109 | * of the link if append is succesful. | |||
110 | * @pre aLink != NULL | |||
111 | * @post Array count is increased by one and the link is in the last | |||
112 | * element of the array. | |||
113 | */ | |||
0 | 0 | - | 114 | EXPORT_C void CVPbkContactLinkArray::AppendL(MVPbkContactLink* /*aLink*/){ } |
115 | ||||
116 | /** | |||
117 | * Inserts a link to this array. | |||
118 | * | |||
119 | * @param aLink the link object to insert. This array takes ownership | |||
120 | * of the link if insertion is succesful. | |||
121 | * @param aIndex position where to insert the link. | |||
122 | * @exception KErrNoMemory if out of memory. | |||
123 | * @pre aLink != NULL | |||
124 | * @pre aIndex >= 0 && aIndex <= Count() | |||
125 | * @post Array count is increased by one and the link is in the position | |||
126 | * marked by the aIndex element of the array. | |||
127 | */ | |||
0 | 0 | - | 128 | EXPORT_C void CVPbkContactLinkArray::InsertL(MVPbkContactLink* /*aLink*/, TInt /*aIndex*/){ } |
129 | ||||
130 | /** | |||
131 | * Removes a link at aIndex from this array. | |||
132 | * | |||
133 | * @pre aIndex >= 0 && aIndex <= Count() | |||
134 | * @post The array count is decreased by one. | |||
135 | */ | |||
0 | 0 | - | 136 | EXPORT_C void CVPbkContactLinkArray::Remove(TInt /*aIndex*/){ } |
137 | ||||
138 | /** | |||
139 | * Removes and deletes a link at aIndex from this array. | |||
140 | * | |||
141 | * @pre aIndex >= 0 && aIndex <= Count() | |||
142 | * @post The array count is decreased by one. | |||
143 | */ | |||
0 | 0 | - | 144 | EXPORT_C void CVPbkContactLinkArray::Delete(TInt /*aIndex*/){ } |
145 | ||||
146 | /** | |||
147 | * Resets the array and destroys the links | |||
148 | */ | |||
0 | 0 | - | 149 | EXPORT_C void CVPbkContactLinkArray::ResetAndDestroy(){ } |
150 | ||||
151 | /** | |||
152 | * Resets this array but doesn't destroy links | |||
153 | * | |||
154 | * @post Count() == 0 | |||
155 | */ | |||
0 | 0 | - | 156 | EXPORT_C void CVPbkContactLinkArray::Reset(){ } |
157 | ||||
158 | /** | |||
159 | * Returns the size of the packed link array | |||
160 | */ | |||
0 | 0 | - | 161 | EXPORT_C TInt CVPbkContactLinkArray::PackedBufferSize() const{ return 0; } |
0 | - | 161 | return 0 | |
162 | ||||
163 | ||||
0 | 0 | - | 164 | TInt CVPbkContactLinkArray::Count() const{ return 0; } |
0 | - | 164 | return 0 | |
0 | 0 | - | 165 | const MVPbkContactLink& CVPbkContactLinkArray::At(TInt /*aIndex*/) const |
166 | { | |||
167 | MVPbkContactLink* ret = NULL; | |||
0 | - | 168 | return *ret; | |
169 | } | |||
170 | ||||
0 | 0 | - | 171 | TInt CVPbkContactLinkArray::Find(const MVPbkContactLink& /*aLink*/) const{ return 0; } |
0 | - | 171 | return 0 | |
0 | 0 | - | 172 | HBufC8* CVPbkContactLinkArray::PackLC() const |
173 | { | |||
174 | _LIT8(KText,"Nutan@presence"); | |||
175 | ||||
176 | HBufC8* temp = HBufC8::NewLC( 32 ); | |||
177 | TPtr8 tempptr = temp->Des(); | |||
178 | tempptr.Zero(); | |||
179 | tempptr.Append( KText ); | |||
180 | ||||
181 | //CleanupStack::PushL( temp ); | |||
0 | - | 182 | return temp; | |
183 | } | |||
0 | 0 | - | 184 | const MVPbkStreamable* CVPbkContactLinkArray::Streamable() const |
185 | { | |||
0 | - | 186 | return NULL; | |
187 | } | |||
188 | ||||
189 | ||||
0 | 0 | - | 190 | CVPbkContactLinkArray::CVPbkContactLinkArray(){ } |
0 | 0 | - | 191 | void CVPbkContactLinkArray::ConstructL(){ } |
0 | 0 | - | 192 | void CVPbkContactLinkArray::ConstructL(const TDesC8& /*aPackedLinks*/, |
193 | const MVPbkContactStoreList& /*aOperations*/){ } | |||
0 | 0 | - | 194 | void CVPbkContactLinkArray::ConstructL(RReadStream& /*aStream*/, |
195 | const MVPbkContactStoreList& /*aOperations*/){ } | |||
0 | 0 | - | 196 | TInt CVPbkContactLinkArray::DoCalculatePackedBufferSizeV2() const{ return 0; } |
0 | - | 196 | return 0 | |
0 | 0 | - | 197 | void CVPbkContactLinkArray::DoFillPackedBufferV2L(RWriteStream& /*aWriteStream*/) const{ } |
0 | 0 | - | 198 | void CVPbkContactLinkArray::InternalizeFromBufferL( RReadStream& /*aReadStream*/, |
199 | const MVPbkContactStoreList& /*aStoreList*/ ){ } | |||
0 | 0 | - | 200 | void CVPbkContactLinkArray::DoInternalizeFromBufferL( RReadStream& /*aReadStream*/, |
201 | const MVPbkContactStoreList& /*aStoreList*/){ } | |||
0 | 0 | - | 202 | void CVPbkContactLinkArray::DoInternalizeFromBufferV2L(RReadStream& /*aReadStream*/, |
203 | const MVPbkContactStoreList& /*aStoreList*/){ } | |||
204 | ||||
205 | ||||
206 | // End of file | |||
***TER 0% (0/39) of SOURCE FILE s_cvpbkcontactlinkarray.cpp |