os/mm/mmlibs/mmfw/src/ControllerFramework/mmfcontrollerframeworkpriv.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef MMFCONTROLLERFRAMEWORKPRIV_H
    17 #define MMFCONTROLLERFRAMEWORKPRIV_H
    18 
    19 /**
    20 @internalComponent
    21 
    22 Used to monitor the death of the controller subthread created by the controller proxy.
    23 
    24 @since 9.3
    25 */
    26 NONSHARABLE_CLASS(CLogonMonitor) : public CActive
    27 	{
    28 public:
    29 	/**
    30 	Two phases constructor
    31 	*/
    32 	static CLogonMonitor* NewL(MLogonMonitorObserver* aLogonMonitorObserver);
    33 	
    34 	/**
    35 	Destructor.
    36 	*/
    37 	~CLogonMonitor();
    38 	
    39 	/**
    40 	Handle a request from the client to start monitoring a thread death
    41 
    42 	@param  aThread
    43 	        The thread to start monitoring
    44 	*/
    45 	void StartMonitoring(RThread& aThread);
    46 	
    47 	RServer2& Server();
    48 private:
    49 	/**
    50 	Constructor
    51 	*/
    52 	CLogonMonitor(MLogonMonitorObserver* aLogonMonitorObserver);
    53 	
    54 	/**
    55 	Second phase constructor
    56 	*/
    57 	void ConstructL();
    58 
    59 private:
    60 	/** 
    61 	From CActive.
    62 	*/
    63 	void RunL();
    64 	
    65 	/** 
    66 	From CActive.
    67 	*/
    68 	void DoCancel();
    69 private:
    70 	/** 
    71 	A Pointer to the controller proxy. 
    72 	*/
    73 	MLogonMonitorObserver* iLogonMonitorObserver;
    74 	/** 
    75 	A Pointer to the monitored thread. This thread is owned by the controller proxy
    76 	*/
    77 	RThread* iThread;
    78 	/**
    79 	A Pointer to the currently installed active scheduler
    80 	*/
    81 	CActiveScheduler* iScheduler;
    82 	
    83 	RServer2 iServer;
    84 	};
    85 	
    86 #endif // MMFCONTROLLERFRAMEWORKPRIV_H