emailcontacts/contactactionservice/inc/MFscFieldAnalyzer.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Interface to be used by field listbox model for analyzing
       
    15  *                contact field instances. 
       
    16  *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef MFSCFIELDANALYZER_H
       
    21 #define MFSCFIELDANALYZER_H
       
    22 
       
    23 //  FORWARD DECLARATIONS
       
    24 class MVPbkStoreContactField;
       
    25 class CFscPresentationContactField;
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30  * @internal Only Phonebook 2 internal use supported!
       
    31  */
       
    32 class MFscFieldAnalyzer
       
    33     {
       
    34 public:
       
    35     // Interface
       
    36     /**
       
    37      * Analyses if the field has a speed dial definition.
       
    38      *
       
    39      * @param aField    The field to analyze.
       
    40      * @return ETrue if field has speed dial definition, otherwise EFalse.
       
    41      */
       
    42     virtual TBool
       
    43             HasSpeedDialL(const MVPbkStoreContactField& aField) const = 0;
       
    44 
       
    45     /**
       
    46      * Analyses if the field has a voice tag.
       
    47      *
       
    48      * @param aField    The field to analyze.
       
    49      * @return ETrue if field has voice tag definition, otherwise EFalse.
       
    50      */
       
    51     virtual TBool HasVoiceTagL(const MVPbkStoreContactField& aField) const = 0;
       
    52 
       
    53     /**
       
    54      * Analyses is the field hidden, ie. should it not be shown in UI.
       
    55      *
       
    56      * @param aField    The field to analyze.
       
    57      * @return ETrue if field is hidden, EFalse otherwise.
       
    58      */
       
    59     virtual TBool
       
    60             IsHiddenField(const CFscPresentationContactField& aField) const = 0;
       
    61 
       
    62     };
       
    63 
       
    64 #endif // MFSCFIELDANALYZER_H
       
    65 // End of File