phoneengine/phonemodel/inc/cpeprofilesettingmonitor.h
changeset 0 5f000ab63145
child 45 6b911d05207e
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2005 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 the header file of the CPEProfileSettingMonitor
       
    15 *                class
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPEPROFILESETTINGMONITOR_H
       
    21 #define CPEPROFILESETTINGMONITOR_H
       
    22 
       
    23 //  INCLUDE FILES
       
    24 #include <e32base.h>
       
    25 
       
    26 // Profiles headers
       
    27 #include <Profile.hrh>
       
    28 #include <MProfile.h>
       
    29 #include <MProfileEngine.h>
       
    30 #include <MProfileTones.h>
       
    31 #include <MProfileName.h>
       
    32 #include <TProfileToneSettings.h>
       
    33 #include <MProfileChangeObserver.h>
       
    34 #include <CProfileChangeNotifyHandler.h>
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 class MPEPhoneModelInternal;
       
    38 
       
    39 // CLASS DECLARATION
       
    40 
       
    41 /**
       
    42 *  CPEProfileSettingMonitor
       
    43 *  Used to retrieve profiles settings and provide callback to profiles engine
       
    44 *  for notification of changes to profiles
       
    45 *
       
    46 *  @lib Phoneenginebase.lib
       
    47 *  @since Series60_4.0
       
    48 */
       
    49 NONSHARABLE_CLASS( CPEProfileSettingMonitor ) : public CBase, public MProfileChangeObserver
       
    50 {
       
    51 public:
       
    52     static CPEProfileSettingMonitor* NewL( MPEPhoneModelInternal& aModel );
       
    53     ~CPEProfileSettingMonitor();
       
    54 public: // From MProfileChangeObserver
       
    55     virtual void HandleActiveProfileEventL( TProfileEvent aProfileEvent, TInt aProfileId );
       
    56 protected:
       
    57     CPEProfileSettingMonitor( MPEPhoneModelInternal& aModel );
       
    58     void ConstructL();
       
    59     void GetProfileSettingsL();
       
    60 private: // Not owned by this object
       
    61     MPEPhoneModelInternal& iModel; 
       
    62 private: // Owned by this object
       
    63     MProfileEngine* iProfileEngine;  
       
    64     CProfileChangeNotifyHandler* iProfileEventHandler;
       
    65 };
       
    66 
       
    67 #endif // CPEPROFILESETTINGMONITOR_H