mmfenh/profilesettingsmonitor/inc/ProfileSettingsMonitorServerImpl.h
changeset 0 71ca22bcf22a
child 14 80975da52420
child 45 095bea5f582e
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2007 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:  This file contains definitions of ProfileSettingsMonitorServerImpl.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __PROFILESETTINGSMONITORSERVERIMPL_H__
       
    20 #define __PROFILESETTINGSMONITORSERVERIMPL_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <e32std.h>
       
    24 #include <e32debug.h>
       
    25 #include <Profile.hrh>
       
    26 #include <ProEngFactory.h>
       
    27 #include <MProEngEngine.h>
       
    28 #include <MProEngProfile.h>
       
    29 #include <MProEngActiveProfileObserver.h>
       
    30 #include <MProEngProfileActivationObserver.h>
       
    31 #include <MProEngNotifyHandler.h>
       
    32 #include <MProEngToneSettings.h>
       
    33 #include <e32property.h>
       
    34 #include <GlobalAudioSettingsPSKeys.h>
       
    35 #include <centralrepository.h>
       
    36 #include <ProfileEngineDomainCRKeys.h>
       
    37 #include <ProfilesVariant.hrh>
       
    38 #include <e32capability.h>
       
    39 class CProfileSettingsMonitorServerImpl : 
       
    40 public CBase, 
       
    41 public MProEngProfileActivationObserver, 
       
    42 public MProEngActiveProfileObserver
       
    43 	{
       
    44 public:
       
    45 	IMPORT_C static CProfileSettingsMonitorServerImpl* NewL(); 
       
    46 	~CProfileSettingsMonitorServerImpl();
       
    47 	
       
    48 	//MProEngProfileActivationObserver
       
    49 	void HandleProfileActivatedL( TInt aProfileId );
       
    50     void HandleProfileActivationNotificationError(
       
    51                  TInt aError );
       
    52                  
       
    53     //MProEngActiveProfileObserver
       
    54     void HandleActiveProfileModifiedL();
       
    55     void HandleActiveProfileNotificationError(
       
    56                 TInt aError );
       
    57 
       
    58 private:
       
    59 	CProfileSettingsMonitorServerImpl();
       
    60 	void ConstructL();
       
    61 	
       
    62 	// Initializes publish and subscribe keys used for
       
    63 	// audio clients list implementation
       
    64 	void InitializeAudioClientsListPSKeysL();
       
    65 
       
    66 private:
       
    67     MProEngEngine* iEngine;
       
    68     MProEngNotifyHandler* iNotifyHandler;
       
    69     TInt iActiveProfileId;
       
    70     TBool iWarningTones;
       
    71     TBool iMessagingTones;
       
    72     TBool iSilentProfile;
       
    73     TBool iVibra;
       
    74     TBool iPublicSilence;
       
    75     RProperty iWarningTonesProperty;
       
    76     RProperty iMessagingTonesProperty;
       
    77     RProperty iSilentProfileProperty;
       
    78     RProperty iVibraProperty;
       
    79     RProperty iPublicSilenceProperty;
       
    80 	};
       
    81 
       
    82 #endif
       
    83 
       
    84 // End of file