os/persistentdata/loggingservices/eventlogger/LogCli/inc/LogViewWindowLockObserver.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/persistentdata/loggingservices/eventlogger/LogCli/inc/LogViewWindowLockObserver.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,73 @@
     1.4 +// Copyright (c) 2002-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 __LOGVIEWWINDOWLOCKOBSERVER_H__
    1.20 +#define __LOGVIEWWINDOWLOCKOBSERVER_H__
    1.21 +
    1.22 +// System includes
    1.23 +#include <e32base.h>
    1.24 +
    1.25 +// User includes
    1.26 +#include <logwrap.h>
    1.27 +#include "LogCliServShared.h"
    1.28 +#include <logviewchangeobserver.h>
    1.29 +
    1.30 +// Classes referenced
    1.31 +class RLogSession;
    1.32 +
    1.33 +
    1.34 +/////////////////////////////////////////////////////////////////////////////////////////
    1.35 +// -----> MLogViewWindowLockObserver (header)
    1.36 +/////////////////////////////////////////////////////////////////////////////////////////
    1.37 +class MLogViewWindowLockObserver
    1.38 +/**
    1.39 +@internalComponent
    1.40 +*/
    1.41 +	{
    1.42 +public: // FROM MLogViewWindowLockObserver
    1.43 +	virtual void HandleWindowLockStatusChangeL(TLogViewLockStatus aStatus) = 0;
    1.44 +	};
    1.45 +
    1.46 +
    1.47 +/////////////////////////////////////////////////////////////////////////////////////////
    1.48 +// -----> CLogViewWindowLockObserver (header)
    1.49 +/////////////////////////////////////////////////////////////////////////////////////////
    1.50 +NONSHARABLE_CLASS(CLogViewWindowLockObserver) : public CLogActive
    1.51 +/**
    1.52 +@internalComponent
    1.53 +*/
    1.54 +	{
    1.55 +public:
    1.56 +	CLogViewWindowLockObserver(RLogSession& aSession, TLogViewId aViewId, MLogViewWindowLockObserver& aObserver, TInt aPriority);
    1.57 +	~CLogViewWindowLockObserver();
    1.58 +	void ConstructL();
    1.59 +
    1.60 +private: // FROM CLogActive
    1.61 +	void DoRunL();
    1.62 +	void DoCancel();
    1.63 +	TInt RunError(TInt aError);
    1.64 +
    1.65 +private:
    1.66 +	void IssueRequest();
    1.67 +
    1.68 +private:
    1.69 +	RLogSession& iSession;
    1.70 +	TLogViewId iViewId; 
    1.71 +	MLogViewWindowLockObserver& iObserver;
    1.72 +	};
    1.73 +
    1.74 +
    1.75 +
    1.76 +#endif