phonebookui/Phonebook/View/inc/CPbkFieldAnalyzer.h
branchRCL_3
changeset 20 f4a778e096c2
equal deleted inserted replaced
19:5b6f26637ad3 20:f4a778e096c2
       
     1 /*
       
     2 * Copyright (c) 2002 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:
       
    15 *       Class to be used by listbox model for analyzing if
       
    16 *       TPbkContactItemField has speed dial or voice tag.
       
    17 *
       
    18 */
       
    19 
       
    20 #ifndef __CPBKFIELDANALYZER_H__
       
    21 #define __CPBKFIELDANALYZER_H__
       
    22 
       
    23 #include <e32base.h>
       
    24 #include "MPbkFieldAnalyzer.h"
       
    25 
       
    26 //  FORWARD DECLARATIONS
       
    27 class CPbkFieldArray;
       
    28 class TPbkContactItemField;
       
    29 
       
    30 class CPbkFieldAnalyzer : public CBase,
       
    31                           public MPbkFieldAnalyzer
       
    32 	{
       
    33 public:
       
    34     /**
       
    35      * Creates a new instance of this class.
       
    36      *
       
    37      * @param aEngine       Contact engine needed for MPbkFieldAnalyzer
       
    38      *                      functions. This object does NOT take
       
    39      *                      ownership of aContact.
       
    40      */
       
    41     static CPbkFieldAnalyzer* NewL( const CPbkFieldArray& aArray );
       
    42 
       
    43     /**
       
    44      * Destructor.
       
    45      */
       
    46     ~CPbkFieldAnalyzer();
       
    47 
       
    48 public: // From MPbkFieldAnalyzer
       
    49     TBool HasSpeedDialL( const TPbkContactItemField& aField ) const;
       
    50     TBool HasVoiceTagL( const TPbkContactItemField& aField ) const;
       
    51     
       
    52 private:
       
    53 	TBool IsFieldOwned( const TPbkContactItemField& aField ) const;
       
    54 
       
    55 private:
       
    56     CPbkFieldAnalyzer( const CPbkFieldArray& aArray );
       
    57 
       
    58 private: // Data member
       
    59     /// Ref: Contact item to display
       
    60     const CPbkFieldArray& iFieldArray;
       
    61     };
       
    62 
       
    63 #endif // __CPBKFIELDANALYZER_H__
       
    64