systemswuis/touchscreencalib/inc/TouchScreenCalibPubSubObserver.h
branchRCL_3
changeset 14 5f281e37a2f5
parent 0 254040eb3b7d
equal deleted inserted replaced
13:90fe62538f66 14:5f281e37a2f5
       
     1 /*
       
     2 * Copyright (c) 2007 - 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:  
       
    15 *           This class the handles the received indications from the Public and
       
    16 *           Subscribe.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef TOUCHSCREENCALIBPUBSUBOBSERVER_H
       
    22 #define TOUCHSCREENCALIBPUBSUBOBSERVER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32property.h>
       
    26 #include "MTouchScreenCalibPropertyResponder.h"
       
    27 #include "TouchScreenCalibAppUi.h"
       
    28 
       
    29 // CLASS DECLARATION
       
    30 class CTouchScreenCalibAppUi;
       
    31 class CTouchScreenCalibSubscriber;
       
    32 
       
    33 class CTouchScreenCalibPubSubObserver : public CBase, public MTouchScreenCalibPropertyResponder
       
    34     {
       
    35     public:  // Constructors and destructor
       
    36         
       
    37         /**
       
    38         * C++ constructor.
       
    39         */
       
    40         CTouchScreenCalibPubSubObserver( CTouchScreenCalibAppUi* aTouchScreenCalibAppUi );
       
    41         
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         */
       
    45         static CTouchScreenCalibPubSubObserver* NewL( CTouchScreenCalibAppUi* aTouchScreenCalibAppUi );
       
    46         
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         ~CTouchScreenCalibPubSubObserver();
       
    51 
       
    52     private:
       
    53 
       
    54         /**
       
    55         * By default EPOC constructor is private.
       
    56         */
       
    57         void ConstructL();
       
    58 
       
    59         CTouchScreenCalibPubSubObserver();
       
    60 
       
    61     protected: // From MTouchScreenCalibPropertyResponder
       
    62 
       
    63         void HandlePropertyChangedL( const TUid& aCategory, TUint aKey );
       
    64 
       
    65     private:    // Data
       
    66         //reference to application class
       
    67         CTouchScreenCalibAppUi*         iTouchScreenCalibAppUi; //uses
       
    68         RProperty                       iProperty;
       
    69         CTouchScreenCalibSubscriber*    iGlobalSWStateSubscriber;
       
    70         CTouchScreenCalibSubscriber*    iTsyCallState;
       
    71     };
       
    72 
       
    73 #endif      // TOUCHSCREENCALIBPUBSUBOBSERVER_H   
       
    74             
       
    75 // End of File