|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * Implements interface for Logs reader configuration |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __Logs_Engine_CLogsReaderConfig_H__ |
|
21 #define __Logs_Engine_CLogsReaderConfig_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "MLogsReaderConfig.h" |
|
26 |
|
27 // FORWARD DECLARATION |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Implements interface for Logs reader configuration |
|
33 */ |
|
34 class CLogsReaderConfig : public CBase, public MLogsReaderConfig |
|
35 { |
|
36 |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 * |
|
42 * @param aFilter filter |
|
43 * @param aNumber number |
|
44 * @param aRemoteParty remote party |
|
45 * @return CLogsReaderConfig object |
|
46 */ |
|
47 static CLogsReaderConfig* NewLC( const TLogsFilter aFilter, |
|
48 const TDesC* aNumber, |
|
49 const TDesC* aRemoteParty ); |
|
50 |
|
51 /** |
|
52 * Two-phased constructor. |
|
53 * |
|
54 * @param aNumber number |
|
55 * @return CLogsReaderConfig object |
|
56 */ |
|
57 static CLogsReaderConfig* NewLC( const TDesC* aNumber ); |
|
58 |
|
59 /** |
|
60 * Two-phased constructor. |
|
61 * |
|
62 * @param aNumber number |
|
63 * @param aRemoteParty remote party |
|
64 * @param aContackLink contact link |
|
65 * @return CLogsReaderConfig object |
|
66 */ |
|
67 static CLogsReaderConfig* NewLC( const TDesC* aNumber, |
|
68 const TDesC* aRemoteParty, |
|
69 const TDesC8* aContackLink ); |
|
70 |
|
71 /** |
|
72 * Destructor. |
|
73 */ |
|
74 virtual ~CLogsReaderConfig(); |
|
75 |
|
76 private: |
|
77 |
|
78 /** |
|
79 * C++ default constructor. |
|
80 */ |
|
81 CLogsReaderConfig(); |
|
82 |
|
83 /** |
|
84 * Constructor. |
|
85 * |
|
86 * @param aFilter filter |
|
87 */ |
|
88 CLogsReaderConfig( const TLogsFilter aFilter ); |
|
89 |
|
90 /** |
|
91 * Second phase of construction |
|
92 * |
|
93 * @param aNumber number |
|
94 * @param aRemoteParty remote party |
|
95 */ |
|
96 void ConstructL( const TDesC* aNumber, const TDesC* aRemoteParty, const TDesC8* aContactLink ); |
|
97 |
|
98 |
|
99 public: // from MLogsReaderConfig |
|
100 |
|
101 TLogsFilter Filter() const; |
|
102 TDesC& Number() const; |
|
103 TDesC& RemoteParty() const; |
|
104 TDesC8& ContactLink() const; |
|
105 |
|
106 private: // data |
|
107 |
|
108 /// own: filter |
|
109 TLogsFilter iFilter; |
|
110 |
|
111 /// own: number |
|
112 HBufC* iNumber; |
|
113 |
|
114 /// own: remote party |
|
115 HBufC* iRemoteParty; |
|
116 |
|
117 /// own: Contack Link |
|
118 HBufC8* iContactLink; |
|
119 }; |
|
120 |
|
121 #endif // __Logs_Engine_CLogsReaderConfig_H__ |
|
122 |
|
123 |
|
124 |
|
125 // End of File |