coreapplicationuis/SysAp/Inc/SysApProfileObserver.h
changeset 77 b01c07dfcf84
parent 74 1505405bc645
child 78 175a0d824084
equal deleted inserted replaced
74:1505405bc645 77:b01c07dfcf84
     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:  CSysApProfileObserver class definition. 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SYSAPPROFILEOBSERVER_H
       
    20 #define SYSAPPROFILEOBSERVER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <MProfileChangeObserver.h>
       
    25 #include <CProfileChangeNotifyHandler.h>
       
    26 #include "SysAp.hrh"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CSysApAppUi;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  CSysApProfileObserver
       
    35 *
       
    36 *  @lib   sysap
       
    37 *  @since 3.0
       
    38 */
       
    39 
       
    40 class CSysApProfileObserver : public CBase, public MProfileChangeObserver
       
    41     {
       
    42     public: // Constructors and destructor
       
    43         /**
       
    44         * Default constructor
       
    45         */
       
    46         static CSysApProfileObserver* NewL( CSysApAppUi& aSysApAppUi );
       
    47 
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~CSysApProfileObserver();
       
    52 
       
    53     private:
       
    54 
       
    55         /**
       
    56         * EPOC default constructor.
       
    57         * @param None
       
    58         * @return void
       
    59         */
       
    60         void ConstructL( );
       
    61         
       
    62         /**
       
    63         * Constructor
       
    64         * @param CSysApAppUi& aSysApAppUi
       
    65         * @return void
       
    66         */         
       
    67         CSysApProfileObserver( CSysApAppUi& aSysApAppUi );
       
    68     
       
    69         /**
       
    70         * C++ default constructor.
       
    71         * @param None
       
    72         * @return void
       
    73         */
       
    74         CSysApProfileObserver();
       
    75         
       
    76     public: // From MProfileChangeObserver
       
    77 
       
    78         /**
       
    79         * This is a callback function which is called when a active profile event
       
    80         * completes. User must derive his class from MProfileChangeObserver
       
    81         * and implement this method if he is to use notify services.
       
    82         * @param aProfileEvent Profile event
       
    83         * @param aProfileId Active profile id
       
    84         */
       
    85         void HandleActiveProfileEventL( TProfileEvent aProfileEvent, TInt aProfileId );
       
    86 
       
    87     private:
       
    88         // By default, prohibit copy constructor
       
    89         CSysApProfileObserver( const CSysApProfileObserver& );
       
    90     
       
    91         // Prohibit assigment operator
       
    92         CSysApProfileObserver& operator= ( const CSysApProfileObserver& );
       
    93     
       
    94     private:
       
    95         CSysApAppUi&                 iSysApAppUi;
       
    96         CProfileChangeNotifyHandler* iHandler;
       
    97     };
       
    98 
       
    99 #endif      // SYSAPPROFILEOBSERVER_H
       
   100             
       
   101 // End of File