|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __CNTFIELDHEADER_H__ |
|
17 #define __CNTFIELDHEADER_H__ |
|
18 #include "cntfieldatts.h" |
|
19 |
|
20 class RReadStream; |
|
21 class RWriteStream; |
|
22 |
|
23 class TFieldHeader |
|
24 /** |
|
25 @internalComponent |
|
26 @released |
|
27 */ |
|
28 #ifdef __SYMBIAN_CNTMODEL_USE_SQLITE__ |
|
29 |
|
30 { |
|
31 public: |
|
32 TFieldHeader(); |
|
33 TFieldHeader(TContactFieldAtts aAtts, TUint32 aFieldUid, TStreamId aId); |
|
34 |
|
35 inline TContactFieldAtts FieldAtts() const; |
|
36 inline void SetFieldAtts(TContactFieldAtts aAtts); |
|
37 |
|
38 inline TInt FieldId() const; |
|
39 inline void SetFieldId(TInt aId); |
|
40 |
|
41 inline TStreamId StreamId() const; |
|
42 inline void SetStreamId(TStreamId aId); |
|
43 |
|
44 private: |
|
45 TContactFieldAtts iAtts; |
|
46 TInt iFieldUid; |
|
47 TStreamId iStreamId; |
|
48 }; |
|
49 |
|
50 #else //__SYMBIAN_CNTMODEL_USE_SQLITE__ |
|
51 |
|
52 { |
|
53 public: |
|
54 inline TFieldHeader(TStreamId aId,TContactFieldAtts aAtts); |
|
55 |
|
56 public: |
|
57 TStreamId iStreamId; |
|
58 TContactFieldAtts iAtts; |
|
59 }; |
|
60 |
|
61 inline TFieldHeader::TFieldHeader(TStreamId aId,TContactFieldAtts aAtts) |
|
62 { iStreamId=aId; iAtts=aAtts; } |
|
63 #endif //__SYMBIAN_CNTMODEL_USE_SQLITE__ |
|
64 |
|
65 #endif //__CNTFIELDHEADER_H__ |