systemswuis/touchscreencalib/tscstartupextensionplugin/inc/tscpluginsubscriber.h
branchRCL_3
changeset 14 5f281e37a2f5
parent 0 254040eb3b7d
equal deleted inserted replaced
13:90fe62538f66 14:5f281e37a2f5
       
     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:  TSC Subscriber (Publish & Subscribe).
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef TSCPLUGINSUBSCRIBER_H
       
    20 #define TSCPLUGINSUBSCRIBER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <e32property.h>
       
    25 #include "MTSCPlugInPropertyResponder.h"
       
    26 
       
    27 // CLASS DECLARATION
       
    28 /**
       
    29 *  CTSCPlugInSubscriber
       
    30 *  
       
    31 *  @lib   tscstartupextensionplugin
       
    32 *  @since 3.2
       
    33 */
       
    34 
       
    35 class CTSCPlugInSubscriber : public CActive
       
    36 {
       
    37 public:
       
    38     /**
       
    39     * Two-phased constructor.
       
    40     */         
       
    41     static CTSCPlugInSubscriber* NewL( MTSCPlugInPropertyResponder& aTSCPlugInPropertyResponder, 
       
    42                                      const TUid& aCategory, 
       
    43                                      TUint aKey );
       
    44 
       
    45     /**
       
    46     * Destructor.
       
    47     */
       
    48      ~CTSCPlugInSubscriber();
       
    49 
       
    50      void Subscribe();
       
    51 
       
    52 private:
       
    53      CTSCPlugInSubscriber( MTSCPlugInPropertyResponder& aTSCPlugInPropertyResponder, 
       
    54                          const TUid& aCategory, TUint 
       
    55                          aKey );
       
    56      void ConstructL();
       
    57 
       
    58 public: // from CActive
       
    59     /**
       
    60     *	@param none
       
    61     *	@return none
       
    62     */    
       
    63     void RunL();
       
    64     
       
    65     /**
       
    66     *	@param aError the error returned
       
    67     *	@return error
       
    68     */
       
    69     TInt RunError( TInt aError );
       
    70 
       
    71     /**
       
    72     *	@param none
       
    73     *	@return none
       
    74     */    
       
    75     void DoCancel();
       
    76 	
       
    77 private: // Methods not implemented
       
    78     CTSCPlugInSubscriber( const CTSCPlugInSubscriber& );           // Copy constructor
       
    79     CTSCPlugInSubscriber& operator=( const CTSCPlugInSubscriber& );// Assigment operator
       
    80 
       
    81 private:
       
    82 
       
    83     MTSCPlugInPropertyResponder&    iTSCPlugInPropertyResponder;
       
    84     RProperty                       iProperty;
       
    85     TUid                            iCategory;
       
    86     TUint                           iKey;
       
    87 };
       
    88 
       
    89 
       
    90 #endif // TSCPLUGINSUBSCRIBER_H
       
    91 
       
    92 // End of File