diff -r 000000000000 -r 71ca22bcf22a mmfenh/profilesettingsmonitor/inc/ProfileSettingsMonitorServerImpl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmfenh/profilesettingsmonitor/inc/ProfileSettingsMonitorServerImpl.h Tue Feb 02 01:08:46 2010 +0200 @@ -0,0 +1,84 @@ +/* +* Copyright (c) 2007 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 definitions of ProfileSettingsMonitorServerImpl. +* +*/ + + +#ifndef __PROFILESETTINGSMONITORSERVERIMPL_H__ +#define __PROFILESETTINGSMONITORSERVERIMPL_H__ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +class CProfileSettingsMonitorServerImpl : +public CBase, +public MProEngProfileActivationObserver, +public MProEngActiveProfileObserver + { +public: + IMPORT_C static CProfileSettingsMonitorServerImpl* NewL(); + ~CProfileSettingsMonitorServerImpl(); + + //MProEngProfileActivationObserver + void HandleProfileActivatedL( TInt aProfileId ); + void HandleProfileActivationNotificationError( + TInt aError ); + + //MProEngActiveProfileObserver + void HandleActiveProfileModifiedL(); + void HandleActiveProfileNotificationError( + TInt aError ); + +private: + CProfileSettingsMonitorServerImpl(); + void ConstructL(); + + // Initializes publish and subscribe keys used for + // audio clients list implementation + void InitializeAudioClientsListPSKeysL(); + +private: + MProEngEngine* iEngine; + MProEngNotifyHandler* iNotifyHandler; + TInt iActiveProfileId; + TBool iWarningTones; + TBool iMessagingTones; + TBool iSilentProfile; + TBool iVibra; + TBool iPublicSilence; + RProperty iWarningTonesProperty; + RProperty iMessagingTonesProperty; + RProperty iSilentProfileProperty; + RProperty iVibraProperty; + RProperty iPublicSilenceProperty; + }; + +#endif + +// End of file