os/persistentdata/loggingservices/eventlogger/LogCli/inc/LogViewWindowLockObserver.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2002-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 __LOGVIEWWINDOWLOCKOBSERVER_H__
    17 #define __LOGVIEWWINDOWLOCKOBSERVER_H__
    18 
    19 // System includes
    20 #include <e32base.h>
    21 
    22 // User includes
    23 #include <logwrap.h>
    24 #include "LogCliServShared.h"
    25 #include <logviewchangeobserver.h>
    26 
    27 // Classes referenced
    28 class RLogSession;
    29 
    30 
    31 /////////////////////////////////////////////////////////////////////////////////////////
    32 // -----> MLogViewWindowLockObserver (header)
    33 /////////////////////////////////////////////////////////////////////////////////////////
    34 class MLogViewWindowLockObserver
    35 /**
    36 @internalComponent
    37 */
    38 	{
    39 public: // FROM MLogViewWindowLockObserver
    40 	virtual void HandleWindowLockStatusChangeL(TLogViewLockStatus aStatus) = 0;
    41 	};
    42 
    43 
    44 /////////////////////////////////////////////////////////////////////////////////////////
    45 // -----> CLogViewWindowLockObserver (header)
    46 /////////////////////////////////////////////////////////////////////////////////////////
    47 NONSHARABLE_CLASS(CLogViewWindowLockObserver) : public CLogActive
    48 /**
    49 @internalComponent
    50 */
    51 	{
    52 public:
    53 	CLogViewWindowLockObserver(RLogSession& aSession, TLogViewId aViewId, MLogViewWindowLockObserver& aObserver, TInt aPriority);
    54 	~CLogViewWindowLockObserver();
    55 	void ConstructL();
    56 
    57 private: // FROM CLogActive
    58 	void DoRunL();
    59 	void DoCancel();
    60 	TInt RunError(TInt aError);
    61 
    62 private:
    63 	void IssueRequest();
    64 
    65 private:
    66 	RLogSession& iSession;
    67 	TLogViewId iViewId; 
    68 	MLogViewWindowLockObserver& iObserver;
    69 	};
    70 
    71 
    72 
    73 #endif