startupservices/Startup/inc/StartupPubSubObserver.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2005-2008 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:  Declaration of CStartupPubSubObserver class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef STARTUPPUBSUBOBSERVER_H
       
    20 #define STARTUPPUBSUBOBSERVER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32property.h>
       
    24 #include "MStartupPropertyResponder.h"
       
    25 #include "StartupAppUi.h"
       
    26 
       
    27 // CLASS DECLARATION
       
    28 class CStartupAppUi;
       
    29 class CStartupSubscriber;
       
    30 
       
    31 /**
       
    32 * Observes changes in P&S keys containing information which Startup application
       
    33 * is interested in such as global system state.
       
    34 */
       
    35 class CStartupPubSubObserver : public CBase, public MStartupPropertyResponder
       
    36     {
       
    37     public:  // Constructors and destructor
       
    38 
       
    39         /**
       
    40         * C++ constructor.
       
    41         */
       
    42         CStartupPubSubObserver( CStartupAppUi* aStartupAppUi );
       
    43 
       
    44         /**
       
    45         * Two-phased constructor.
       
    46         */
       
    47         static CStartupPubSubObserver* NewL( CStartupAppUi* aStartupAppUi );
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         ~CStartupPubSubObserver();
       
    53 
       
    54     private:
       
    55 
       
    56         /**
       
    57         * By default EPOC constructor is private.
       
    58         */
       
    59         void ConstructL();
       
    60 
       
    61         CStartupPubSubObserver();
       
    62 
       
    63     protected: // From MSysApPropertyResponder
       
    64 
       
    65         void HandlePropertyChangedL( const TUid& aCategory, TUint aKey );
       
    66 
       
    67     private:    // Data
       
    68         //reference to application class
       
    69         CStartupAppUi*        iStartupAppUi; //uses
       
    70 
       
    71         CStartupSubscriber*   iGlobalSystemStateSubscriber;
       
    72         CStartupSubscriber*   iStartupPhaseSubscriber;
       
    73 
       
    74 #if defined (RD_SCALABLE_UI_V2) && !defined(RD_STARTUP_ANIMATION_CUSTOMIZATION)
       
    75         CStartupSubscriber*   iTouchScreenCalibSyncSubscriber;
       
    76         TBool   iTouchScreenCalibSupport;
       
    77 #endif // RD_SCALABLE_UI_V2 && !RD_STARTUP_ANIMATION_CUSTOMIZATION
       
    78     
       
    79     };
       
    80 
       
    81 #endif      // STARTUPPUBSUBOBSERVER_H
       
    82 
       
    83 // End of File