sl@0: // Copyright (c) 2002-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 __LOGVIEWWINDOWLOCKOBSERVER_H__ sl@0: #define __LOGVIEWWINDOWLOCKOBSERVER_H__ sl@0: sl@0: // System includes sl@0: #include sl@0: sl@0: // User includes sl@0: #include sl@0: #include "LogCliServShared.h" sl@0: #include sl@0: sl@0: // Classes referenced sl@0: class RLogSession; sl@0: sl@0: sl@0: ///////////////////////////////////////////////////////////////////////////////////////// sl@0: // -----> MLogViewWindowLockObserver (header) sl@0: ///////////////////////////////////////////////////////////////////////////////////////// sl@0: class MLogViewWindowLockObserver sl@0: /** sl@0: @internalComponent sl@0: */ sl@0: { sl@0: public: // FROM MLogViewWindowLockObserver sl@0: virtual void HandleWindowLockStatusChangeL(TLogViewLockStatus aStatus) = 0; sl@0: }; sl@0: sl@0: sl@0: ///////////////////////////////////////////////////////////////////////////////////////// sl@0: // -----> CLogViewWindowLockObserver (header) sl@0: ///////////////////////////////////////////////////////////////////////////////////////// sl@0: NONSHARABLE_CLASS(CLogViewWindowLockObserver) : public CLogActive sl@0: /** sl@0: @internalComponent sl@0: */ sl@0: { sl@0: public: sl@0: CLogViewWindowLockObserver(RLogSession& aSession, TLogViewId aViewId, MLogViewWindowLockObserver& aObserver, TInt aPriority); sl@0: ~CLogViewWindowLockObserver(); sl@0: void ConstructL(); sl@0: sl@0: private: // FROM CLogActive sl@0: void DoRunL(); sl@0: void DoCancel(); sl@0: TInt RunError(TInt aError); sl@0: sl@0: private: sl@0: void IssueRequest(); sl@0: sl@0: private: sl@0: RLogSession& iSession; sl@0: TLogViewId iViewId; sl@0: MLogViewWindowLockObserver& iObserver; sl@0: }; sl@0: sl@0: sl@0: sl@0: #endif