phonebookengines/contactsmodel/inc/cnthint.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 __CNTHINT_H__
       
    17 #define __CNTHINT_H__
       
    18 
       
    19 class CContactItemField::THint
       
    20 	/**
       
    21 	@internalComponent
       
    22 	@released
       
    23 	*/
       
    24 	{
       
    25 	public:
       
    26 		THint();
       
    27 		THint(TInt aValue);
       
    28 		TBool operator==(const THint& aHint) const;
       
    29 		TBool operator!=(const THint& aHint) const;
       
    30 		TInt  HintType() const;
       
    31 		inline void SetIsMatchAll();
       
    32 		inline void SetIsPhone();
       
    33 		inline void SetIsMsg();
       
    34 		inline void SetIsCompanyName();
       
    35 		inline void SetIsFamilyName();
       
    36 		inline void SetIsGivenName();
       
    37 		inline void SetIsCompanyNamePronunciation();
       
    38 		inline void SetIsFamilyNamePronunciation();
       
    39 		inline void SetIsGivenNamePronunciation();
       
    40 		inline void SetIsAddress();
       
    41 		inline void SetIsAdditionalName();
       
    42 		inline void SetIsSuffixName();
       
    43 		inline void SetIsPrefixName();
       
    44 		inline void SetStorageIsInline();
       
    45 		inline void SetIsEmail();
       
    46 		inline TBool IsMatchAll() const;
       
    47 		inline TBool IsDefault() const;
       
    48 		inline TBool IsPhone() const;
       
    49 		inline TBool IsMsg() const;
       
    50 		inline TBool IsCompanyName() const;
       
    51 		inline TBool IsFamilyName() const;
       
    52 		inline TBool IsGivenName() const;
       
    53 		inline TBool IsCompanyNamePronunciation() const;
       
    54 		inline TBool IsFamilyNamePronunciation() const;
       
    55 		inline TBool IsGivenNamePronunciation() const;
       
    56 		inline TBool IsAddress() const;
       
    57 		inline TBool IsAdditionalName() const;
       
    58 		inline TBool IsSuffixName() const;
       
    59 		inline TBool IsPrefixName() const;
       
    60 		inline TBool IsStorageInline() const;
       
    61 		inline TBool IsEmail() const;
       
    62 		inline TBool Contains(const THint& aHint) const;
       
    63 		
       
    64 #ifndef __SYMBIAN_CNTMODEL_USE_SQLITE__
       
    65 		inline void SetHasAdditionalUids();
       
    66 		TBool HasAdditionalUids() const;
       
    67 		
       
    68 		TInt FieldId() const;
       
    69 		void SetFieldId(TInt aId);
       
    70 		
       
    71 #else //__SYMBIAN_CNTMODEL_USE_SQLITE__
       
    72         TInt  TemplateFieldId() const;
       
    73         void  SetTemplateFieldId(TInt aTemplateFieldId);
       
    74         
       
    75         inline void SetHasVCardMappingUid();
       
    76         inline TBool HasVCardMappingUid() const;
       
    77         
       
    78         inline TInt  AdditionalUidsNum() const;
       
    79         inline void  SetAdditionalUidsNum(TInt aNumber);
       
    80 #endif //__SYMBIAN_CNTMODEL_USE_SQLITE__		
       
    81 	public:
       
    82 		TInt iHintValue;
       
    83 
       
    84 	};
       
    85 		
       
    86 #endif