diff -r 000000000000 -r 5f000ab63145 phoneengine/phonemodel/inc/cpeaudiooutputpreferencemonitor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneengine/phonemodel/inc/cpeaudiooutputpreferencemonitor.h Mon Jan 18 20:18:27 2010 +0200 @@ -0,0 +1,80 @@ +/* +* 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 contains the header file for CPEAudioOutputPreferenceMonitor class +* +*/ + + +#ifndef CPEAUDIOOUTPUTPREFERENCEMONITOR_H +#define CPEAUDIOOUTPUTPREFERENCEMONITOR_H + +//INCLUDES +#include "cpepubsubmonitor.h" + +// CONSTANTS +// None. + +// MACROS +// None. + +// DATA TYPES +// None. + +// FUNCTION PROTOTYPES +// None. + +// FORWARD DECLARATIONS +class MPEPhoneModelInternal; + +// CLASS DECLARATION + +/** +* CPEAudioOutputPreferenceMonitor +* Not exposed externally +* Monitors the audio output preference P&S key for changes +* and retrieves current settings +* +* @since Series60_4.0 +*/ +NONSHARABLE_CLASS( CPEAudioOutputPreferenceMonitor ) + : public CPEPubSubMonitor + { + public: + /** + * Two-phased constructor. + */ + static CPEAudioOutputPreferenceMonitor* NewL( MPEPhoneModelInternal& aModel ); + + protected: + /** + * C++ default constructor. + */ + CPEAudioOutputPreferenceMonitor( MPEPhoneModelInternal& aModel ); + + /** + * Second-phase constructor. + */ + void ConstructL(); + + protected: + /** + * Defines the actions that take place when a change indication + * is received. Most common approach would be to save the data to internal + * data store and send a message via phone model if neccessary. + */ + virtual void UpdateL(); + + }; + +#endif // CPEAUDIOOUTPUTPREFERENCEMONITOR_H