systemswuis/touchscreencalib/tsccustcmds/inc/tscsubscriber.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:33:30 +0100
branchRCL_3
changeset 35 5f281e37a2f5
parent 0 254040eb3b7d
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201029 Kit: 201035

/*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0""
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  TSC Subscriber (Publish & Subscribe).
*
*/

#ifndef TSCPLUGINSUBSCRIBER_H
#define TSCPLUGINSUBSCRIBER_H

// INCLUDES
#include <e32base.h>
#include <e32property.h>
#include "MTSCPropertyResponder.h"

// CLASS DECLARATION
/**
*  CTSCSubscriber
*  
*  @lib   tscstartupextensionplugin
*  @since 3.2
*/

class CTSCSubscriber : public CActive
{
public:
    /**
    * Two-phased constructor.
    */         
    static CTSCSubscriber* NewL( MTSCPropertyResponder& aTSCPropertyResponder, 
                                     const TUid& aCategory, 
                                     TUint aKey );

    /**
    * Destructor.
    */
     ~CTSCSubscriber();

     void Subscribe();

private:
     CTSCSubscriber( MTSCPropertyResponder& aTSCPropertyResponder, 
                         const TUid& aCategory, TUint 
                         aKey );
     void ConstructL();

public: // from CActive
    /**
    *	@param none
    *	@return none
    */    
    void RunL();
    
    /**
    *	@param aError the error returned
    *	@return error
    */
    TInt RunError( TInt aError );

    /**
    *	@param none
    *	@return none
    */    
    void DoCancel();
	
private: // Methods not implemented
    CTSCSubscriber( const CTSCSubscriber& );           // Copy constructor
    CTSCSubscriber& operator=( const CTSCSubscriber& );// Assigment operator

private:

    MTSCPropertyResponder&          iTSCPropertyResponder;
    RProperty                       iProperty;
    TUid                            iCategory;
    TUint                           iKey;
};


#endif // TSCSUBSCRIBER_H

// End of File