sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef MMFCONTROLLERFRAMEWORKPRIV_H sl@0: #define MMFCONTROLLERFRAMEWORKPRIV_H sl@0: sl@0: /** sl@0: @internalComponent sl@0: sl@0: Used to monitor the death of the controller subthread created by the controller proxy. sl@0: sl@0: @since 9.3 sl@0: */ sl@0: NONSHARABLE_CLASS(CLogonMonitor) : public CActive sl@0: { sl@0: public: sl@0: /** sl@0: Two phases constructor sl@0: */ sl@0: static CLogonMonitor* NewL(MLogonMonitorObserver* aLogonMonitorObserver); sl@0: sl@0: /** sl@0: Destructor. sl@0: */ sl@0: ~CLogonMonitor(); sl@0: sl@0: /** sl@0: Handle a request from the client to start monitoring a thread death sl@0: sl@0: @param aThread sl@0: The thread to start monitoring sl@0: */ sl@0: void StartMonitoring(RThread& aThread); sl@0: sl@0: RServer2& Server(); sl@0: private: sl@0: /** sl@0: Constructor sl@0: */ sl@0: CLogonMonitor(MLogonMonitorObserver* aLogonMonitorObserver); sl@0: sl@0: /** sl@0: Second phase constructor sl@0: */ sl@0: void ConstructL(); sl@0: sl@0: private: sl@0: /** sl@0: From CActive. sl@0: */ sl@0: void RunL(); sl@0: sl@0: /** sl@0: From CActive. sl@0: */ sl@0: void DoCancel(); sl@0: private: sl@0: /** sl@0: A Pointer to the controller proxy. sl@0: */ sl@0: MLogonMonitorObserver* iLogonMonitorObserver; sl@0: /** sl@0: A Pointer to the monitored thread. This thread is owned by the controller proxy sl@0: */ sl@0: RThread* iThread; sl@0: /** sl@0: A Pointer to the currently installed active scheduler sl@0: */ sl@0: CActiveScheduler* iScheduler; sl@0: sl@0: RServer2 iServer; sl@0: }; sl@0: sl@0: #endif // MMFCONTROLLERFRAMEWORKPRIV_H