os/mm/mmlibs/mmfw/src/ControllerFramework/mmfcontrollerframeworkpriv.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmlibs/mmfw/src/ControllerFramework/mmfcontrollerframeworkpriv.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,86 @@
     1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef MMFCONTROLLERFRAMEWORKPRIV_H
    1.20 +#define MMFCONTROLLERFRAMEWORKPRIV_H
    1.21 +
    1.22 +/**
    1.23 +@internalComponent
    1.24 +
    1.25 +Used to monitor the death of the controller subthread created by the controller proxy.
    1.26 +
    1.27 +@since 9.3
    1.28 +*/
    1.29 +NONSHARABLE_CLASS(CLogonMonitor) : public CActive
    1.30 +	{
    1.31 +public:
    1.32 +	/**
    1.33 +	Two phases constructor
    1.34 +	*/
    1.35 +	static CLogonMonitor* NewL(MLogonMonitorObserver* aLogonMonitorObserver);
    1.36 +	
    1.37 +	/**
    1.38 +	Destructor.
    1.39 +	*/
    1.40 +	~CLogonMonitor();
    1.41 +	
    1.42 +	/**
    1.43 +	Handle a request from the client to start monitoring a thread death
    1.44 +
    1.45 +	@param  aThread
    1.46 +	        The thread to start monitoring
    1.47 +	*/
    1.48 +	void StartMonitoring(RThread& aThread);
    1.49 +	
    1.50 +	RServer2& Server();
    1.51 +private:
    1.52 +	/**
    1.53 +	Constructor
    1.54 +	*/
    1.55 +	CLogonMonitor(MLogonMonitorObserver* aLogonMonitorObserver);
    1.56 +	
    1.57 +	/**
    1.58 +	Second phase constructor
    1.59 +	*/
    1.60 +	void ConstructL();
    1.61 +
    1.62 +private:
    1.63 +	/** 
    1.64 +	From CActive.
    1.65 +	*/
    1.66 +	void RunL();
    1.67 +	
    1.68 +	/** 
    1.69 +	From CActive.
    1.70 +	*/
    1.71 +	void DoCancel();
    1.72 +private:
    1.73 +	/** 
    1.74 +	A Pointer to the controller proxy. 
    1.75 +	*/
    1.76 +	MLogonMonitorObserver* iLogonMonitorObserver;
    1.77 +	/** 
    1.78 +	A Pointer to the monitored thread. This thread is owned by the controller proxy
    1.79 +	*/
    1.80 +	RThread* iThread;
    1.81 +	/**
    1.82 +	A Pointer to the currently installed active scheduler
    1.83 +	*/
    1.84 +	CActiveScheduler* iScheduler;
    1.85 +	
    1.86 +	RServer2 iServer;
    1.87 +	};
    1.88 +	
    1.89 +#endif // MMFCONTROLLERFRAMEWORKPRIV_H