phoneengine/phonemodel/inc/mpeexternaldatahandler.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 14 Apr 2010 15:56:42 +0300
branchRCL_3
changeset 7 544e34b3255a
parent 0 5f000ab63145
child 24 41a7f70b3818
permissions -rw-r--r--
Revision: 201013 Kit: 201015

/*
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  This file defines the protocol independent interface
*                of the Phone Engine external data store framework for
*                Phone Engine submodule use.
*
*/


#ifndef MPEEXTERNALDATAHANDLER_H
#define MPEEXTERNALDATAHANDLER_H

//  INCLUDE FILES
#include <pevirtualengine.h>

// FORWARD DECLARATIONS
// None

// DATA TYPES
enum TPEExternalDataId
    {
    EPEAudioOutputPreference,
    EPEAutomaticAnswerHeadsetSetting,
    EPEAutomaticAnswerLoopsetSetting,
    EPEAutomaticAnswerCarkitSetting,
    EPEAutomaticAnswerMusicStandSetting,
    EPEAutomaticAnswerWirelessCarkitSetting,
    EPECallDurationDisplaySetting,
    EPEDialPrefixChangeSetting,
    EPEDialPrefixTextSetting,
    EPEIncallEarVolumeSetting,
    EPEIncallLoudspeakerVolumeSetting,
    EPENetworkRegistrationStatus,
    EPETelephonyVariationFlags,
    EPEAccessoryMode,
    EPEEmergencyCallInfo,
    EPENetworkConnectionAllowedSetting
    };

// CLASS DECLARATION

/**
*  MPEExternalDataHandler
*  This internal interface provides for an access to Phone Engines external data
*   store, i.e. settings stored in Central Repository and Publish and Subscribe.
*
*  @lib Phoneengine.lib
*/
NONSHARABLE_CLASS( MPEExternalDataHandler )
    {
    public:

        /**
        * Gets the current value of the specified setting,
        * if the operation was successful then aValue contains the current valid
        * value of the setting
        * @param aSetting specifies the setting to be read
        * @param aValue the current value of the monitored setting
        * @return Symbian OS error code
        */
        virtual TInt Get( const TPEExternalDataId aSetting, TInt& aValue ) const = 0;

        /**
        * Gets the current value of the specified setting,
        * if the operation was successful then aValue contains the current valid
        * value of the setting
        * @param aSetting specifies the setting to be read
        * @param aValue the current value of the monitored setting
        * @return Symbian OS error code
        */
        virtual TInt GetText( const TPEExternalDataId aSetting, TDesC& aValue ) const = 0;

        /**
        * Sets the value of the specified setting,
        * @param aSetting specifies the setting to be written
        * @param aValue the value of the setting
        * @return Symbian OS error code
        */
        virtual TInt Set( const TPEExternalDataId aSetting, const TInt aValue ) = 0;

    };

#endif  //  MPEEXTERNALDATAHANDLER_H