phoneengine/PhoneCntFinder/inc/Misc/CPhCntProfileEngineImpl.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     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:  Concrete implementation of CPhCntProfileEngine interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPHCNTPROFILEENGINEIMPL_H
       
    20 #define CPHCNTPROFILEENGINEIMPL_H
       
    21 
       
    22 // INCLUDES
       
    23 #include    "CPhCntProfileEngine.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class MProfile;
       
    27 class MProfileEngine;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 * Profile interface.
       
    33 *
       
    34 * @lib PhoneCntFinder
       
    35 * @since 2.0
       
    36 */
       
    37 NONSHARABLE_CLASS( CPhCntProfileEngineImpl )
       
    38     : public CPhCntProfileEngine
       
    39     {
       
    40     public: // Constructors and destructors
       
    41 
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         * @return New instance
       
    45         */
       
    46         static CPhCntProfileEngineImpl* NewL();
       
    47 
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         ~CPhCntProfileEngineImpl();
       
    52 
       
    53     public: // From base classes
       
    54 
       
    55         /**
       
    56         * From CPhCntProfileEngine, refresh contents 
       
    57         * of profile.
       
    58         */
       
    59         virtual void RefreshL();
       
    60 
       
    61         /**
       
    62         * From CPhCntProfileEngine, checks if profile 
       
    63         * information has been retrieved.
       
    64         *
       
    65         * @return ETrue if it is allowed to call 
       
    66         * the Profile method.
       
    67         */
       
    68         virtual TBool HasProfile() const;
       
    69 
       
    70         /**
       
    71         * From CPhCntProfileEngine, returns active 
       
    72         * profile. It is valid after RefreshL has 
       
    73         * succeeded.
       
    74         *
       
    75         * @return active profile information.
       
    76         */
       
    77         virtual MProfile& Profile();
       
    78 
       
    79         /**
       
    80         * Sets active profile. It is valid
       
    81         * after RefreshL has succeeded.
       
    82         *
       
    83         * @param aProfileId Id of the profile to be set.
       
    84         */
       
    85         virtual void SetActiveProfileL( 
       
    86             const TInt aProfileId );
       
    87 
       
    88         /**
       
    89          * Checks whether the given feature is supported by Profiles Engine.         
       
    90          * @param aFeatureId the feature to be checked.
       
    91          * @return ETrue if the given feature is supported, EFalse otherwise.
       
    92          * @since Series60_2.8
       
    93          */
       
    94         virtual TBool IsFeatureSupported(
       
    95             TProfileFeatureId aFeatureId ) const;
       
    96 
       
    97     private:
       
    98         // Profile engine
       
    99         MProfileEngine* iEngine;
       
   100         // Profile
       
   101         MProfile* iProfile;
       
   102 
       
   103     };
       
   104 
       
   105 #endif      // CPHCNTPROFILEENGINEIMPL_H
       
   106             
       
   107 // End of File