phonebookengines/contactsmodel/inc/cntfieldatts.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     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 __CNTFIELDATTS_H__
       
    17 #define __CNTFIELDATTS_H__
       
    18 
       
    19 class TContactFieldAtts
       
    20 /**
       
    21 @internalComponent
       
    22 @released
       
    23 */
       
    24 	{
       
    25 public:
       
    26 	inline TContactFieldAtts() : iStorage(0)
       
    27 		{};
       
    28 
       
    29 	void SetAttribs(TUint32 aAttribs);
       
    30 	void SetExtendedAttribs(TUint32 aExtendedAttribs);
       
    31 	void SetType(TStorageType aType);
       
    32 	TUint32 Attribs() const;
       
    33 	TUint32 ExtendedAttribs() const;
       
    34 	TStorageType Type() const;
       
    35 	void InternalizeL(RReadStream& aStream);
       
    36 	void ExternalizeL(RWriteStream& aStream) const;
       
    37 
       
    38 #ifndef __SYMBIAN_CNTMODEL_USE_SQLITE__	
       
    39 	TInt Count() const;
       
    40 	void SetCount(TInt aCount);
       
    41 	TInt TemplateFieldId() const;
       
    42 	void SetTemplateFieldId(TInt aId);
       
    43 #endif //__SYMBIAN_CNTMODEL_USE_SQLITE__
       
    44 
       
    45 		
       
    46 private:
       
    47 	TUint32 iStorage;
       
    48 	
       
    49 #ifndef __SYMBIAN_CNTMODEL_USE_SQLITE__	
       
    50 	TUint32 iExtendedAttribs;
       
    51 #endif //__SYMBIAN_CNTMODEL_USE_SQLITE__
       
    52 	};
       
    53 	
       
    54 #endif //__CNTFIELDATTS_H__