|
1 /* |
|
2 * Copyright (c) 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 "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: MsearchInfo API object implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CSEARCHINFOIMP_H |
|
19 #define CSEARCHINFOIMP_H |
|
20 |
|
21 |
|
22 #include <s32strm.h> |
|
23 #include <badesca.h> |
|
24 #include <searchinfo.h> |
|
25 #include "ximpapidataobjbase.h" |
|
26 #include "searchapiobjbase.h" |
|
27 |
|
28 |
|
29 class CSearchInfoImp; |
|
30 class CXIMPIdentityImp; |
|
31 /** |
|
32 * MsearchInfo API object implementation. |
|
33 * |
|
34 * @lib searchdatamodel.dll |
|
35 */ |
|
36 NONSHARABLE_CLASS( CSearchInfoImp ): public CXIMPApiDataObjBase,public MSearchInfo |
|
37 { |
|
38 public: |
|
39 /** The class ID. */ |
|
40 enum { KClassId = IMP_CLSID_CSEARCHINFOIMP }; |
|
41 |
|
42 public: |
|
43 /** |
|
44 * Construction :NewLC |
|
45 */ |
|
46 IMPORT_C static CSearchInfoImp* NewLC(); |
|
47 /** |
|
48 * Construction :NewL |
|
49 */ |
|
50 IMPORT_C static CSearchInfoImp* NewL(); |
|
51 |
|
52 /** |
|
53 * Destructor |
|
54 */ |
|
55 virtual ~CSearchInfoImp(); |
|
56 |
|
57 private: |
|
58 /** |
|
59 * constructor |
|
60 */ |
|
61 CSearchInfoImp(); |
|
62 |
|
63 /** |
|
64 * 2nd phase constructor |
|
65 */ |
|
66 void ConstructL(); |
|
67 |
|
68 public: // From CXIMPApiDataObjBase |
|
69 |
|
70 /** |
|
71 * @see CXIMPApiDataObjBase |
|
72 */ |
|
73 XIMPIMP_DECLARE_DATAOBJ_BASE_METHODS |
|
74 XIMPIMP_DECLARE_IF_BASE_METHODS |
|
75 |
|
76 |
|
77 public: // New functions |
|
78 |
|
79 /** |
|
80 * Internalizes object data from given stream. |
|
81 * @param aStream Stream to read. |
|
82 */ |
|
83 IMPORT_C void InternalizeL( RReadStream& aStream ); |
|
84 |
|
85 /** |
|
86 * |
|
87 * @see MSearchInfo |
|
88 */ |
|
89 const TDesC16& GetFieldInfo(TInfoType aType ) const; |
|
90 |
|
91 /** |
|
92 * |
|
93 * @see MSearchInfo |
|
94 */ |
|
95 void SetFieldInfoL(const TDesC16& aFieldInfo, TInfoType aType) ; |
|
96 |
|
97 /** |
|
98 * returns the order of elements |
|
99 * @ return '1' always here : |
|
100 */ |
|
101 IMPORT_C static TInt InfoLinearOrder(const CSearchInfoImp& aA, |
|
102 const CSearchInfoImp& aB ) ; |
|
103 |
|
104 |
|
105 private: // data |
|
106 |
|
107 |
|
108 /** |
|
109 * buffers : all owned |
|
110 */ |
|
111 RBuf16 iFirstname; // owned |
|
112 |
|
113 RBuf16 iLastname; // owned |
|
114 |
|
115 RBuf16 iEmailId; // owned |
|
116 |
|
117 }; |
|
118 |
|
119 |
|
120 #endif // CSEARCHINFOIMP_H |