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