equal
deleted
inserted
replaced
28 |
28 |
29 #include "wsflogger.h" |
29 #include "wsflogger.h" |
30 |
30 |
31 // CONSTANTS |
31 // CONSTANTS |
32 LOCAL_D const TInt KUpdateInterval = 1000000; // in micro seconds (1 sec) |
32 LOCAL_D const TInt KUpdateInterval = 1000000; // in micro seconds (1 sec) |
33 // Time item's place in the listbox. |
|
34 LOCAL_D const TInt KActiveTimeItem = 1; |
|
35 // Transferred data item's place in the listbox. |
|
36 LOCAL_D const TInt KTransferredAmountItem = 2; |
|
37 |
33 |
38 |
34 |
39 // ================= MEMBER FUNCTIONS ======================= |
35 // ================= MEMBER FUNCTIONS ======================= |
40 |
36 |
41 // --------------------------------------------------------------------------- |
37 // --------------------------------------------------------------------------- |
157 LOG_WRITEF( "aItemTextArray[0]: %S", &tempElement ); |
153 LOG_WRITEF( "aItemTextArray[0]: %S", &tempElement ); |
158 } |
154 } |
159 |
155 |
160 if ( iList && aItemTextArray->MdcaCount() ) |
156 if ( iList && aItemTextArray->MdcaCount() ) |
161 { |
157 { |
162 iList->Reset(); |
|
163 iModel->SetItemTextArray( aItemTextArray ); |
158 iModel->SetItemTextArray( aItemTextArray ); |
164 iModel->SetOwnershipType( ELbmDoesNotOwnItemArray ); |
159 iModel->SetOwnershipType( ELbmDoesNotOwnItemArray ); |
165 // draw updated items |
|
166 iList->DrawItem( KActiveTimeItem ); |
|
167 iList->DrawItem( KTransferredAmountItem ); |
|
168 |
|
169 DrawNow(); |
160 DrawNow(); |
170 } |
161 } |
171 } |
162 } |
172 |
163 |
173 // --------------------------------------------------------- |
164 // --------------------------------------------------------- |