|
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 the License "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: Declars logging Iterator |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef LIWLOGITER_H |
|
19 #define LIWLOGITER_H |
|
20 |
|
21 /** |
|
22 * LIT Declarations for direction and Status |
|
23 */ |
|
24 |
|
25 _LIT(KIncomingEvent , "Incoming") ; |
|
26 _LIT(KOutgoingEvent , "Outgoing") ; |
|
27 _LIT(KIncomingEventAlternateline , "Incoming on alternate line") ; |
|
28 _LIT(KOutgoingEventAlternateline , "Outgoing on alternate line") ; |
|
29 _LIT(KFetchedEvent , "Fetched") ; |
|
30 _LIT(KMissedEvent , "Missed call") ; |
|
31 _LIT(KMissedEventAlternateline , "Missed call on alternate line") ; |
|
32 _LIT(KStatusPending , "Pending") ; |
|
33 _LIT(KStatusSent , "Sent") ; |
|
34 _LIT(KStatusFalied , "Failed") ; |
|
35 _LIT(KStatusNone , "No delivery") ; |
|
36 _LIT(KStatusDone , "Delivered") ; |
|
37 _LIT(KStatusNotSent , "Not sent") ; |
|
38 _LIT(KStatusScheduled , "Scheduled") ; |
|
39 |
|
40 /** |
|
41 * Forward declarations |
|
42 */ |
|
43 class CLiwIterable ; |
|
44 class CLogIter ; |
|
45 |
|
46 class CLiwLogIter : public CLiwIterable |
|
47 { |
|
48 public: |
|
49 |
|
50 /** |
|
51 * Resets the iterator. The service provider should provide a concrete |
|
52 * implementation to reset the iterator. |
|
53 * |
|
54 */ |
|
55 IMPORT_C void Reset() ; |
|
56 |
|
57 /** |
|
58 * Iterates over the collection entries to fetch the next data element. |
|
59 * The service provider should provide a concrete implementation |
|
60 * for this method. |
|
61 * |
|
62 * @param aEntry contains the next data element and its corresponding data type |
|
63 * |
|
64 * @return false if there are no more data elements to be fetched; |
|
65 * true otherwise |
|
66 */ |
|
67 IMPORT_C TBool NextL( TLiwVariant& aEntry ) ; |
|
68 |
|
69 /** |
|
70 * Default equality operator implementation |
|
71 * |
|
72 * @param aIterable the iterator instance to be compared |
|
73 * |
|
74 */ |
|
75 IMPORT_C TBool operator==( CLiwIterable& aIterable ); |
|
76 |
|
77 /** |
|
78 * Two phase constructors |
|
79 */ |
|
80 static CLiwLogIter * NewL( CLogIter *aIter ) ; |
|
81 |
|
82 /** |
|
83 * NewLC: Creates an instance of CLiwLogIterClass |
|
84 * Two Phased constructor |
|
85 * returns newly allocated object. |
|
86 */ |
|
87 static CLiwLogIter * NewLC( CLogIter *aIter ); |
|
88 |
|
89 /** |
|
90 * SetCLogIter |
|
91 */ |
|
92 inline void SetCLogIter( CLogIter *aIter ) |
|
93 { |
|
94 iLogIter = aIter ; |
|
95 } |
|
96 |
|
97 protected : |
|
98 |
|
99 /** |
|
100 * ConstructL function to construct the members of the class |
|
101 */ |
|
102 void ConstructL( CLogIter *aIter ) ; |
|
103 |
|
104 /** |
|
105 * Default Constructor |
|
106 */ |
|
107 CLiwLogIter() ; |
|
108 |
|
109 /** |
|
110 * Default destructor |
|
111 */ |
|
112 ~CLiwLogIter() ; |
|
113 |
|
114 private : |
|
115 |
|
116 /** |
|
117 * private member |
|
118 */ |
|
119 CLogIter *iLogIter ; |
|
120 |
|
121 } ; |
|
122 |
|
123 #endif |