os/persistentdata/loggingservices/eventlogger/LogCli/src/LogViewWindowLockObserver.cpp
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #include "LogViewWindowLockObserver.h"
19 #include "logservcli.h"
22 /////////////////////////////////////////////////////////////////////////////////////////
23 // -----> CLogViewWindowLockObserver (source)
24 /////////////////////////////////////////////////////////////////////////////////////////
26 CLogViewWindowLockObserver::CLogViewWindowLockObserver(RLogSession& aSession, TLogViewId aViewId, MLogViewWindowLockObserver& aObserver, TInt aPriority)
27 : CLogActive(aPriority), iSession(aSession), iViewId(aViewId), iObserver(aObserver)
31 CLogViewWindowLockObserver::~CLogViewWindowLockObserver()
36 void CLogViewWindowLockObserver::ConstructL()
41 /////////////////////////////////////////////////////////////////////////////////////////
42 /////////////////////////////////////////////////////////////////////////////////////////
43 /////////////////////////////////////////////////////////////////////////////////////////
45 void CLogViewWindowLockObserver::DoRunL()
47 User::LeaveIfError(iStatus.Int());
48 const TLogViewLockStatus state = static_cast<TLogViewLockStatus>(iStatus.Int());
51 iObserver.HandleWindowLockStatusChangeL(state);
54 void CLogViewWindowLockObserver::DoCancel()
56 iSession.Send(ELogViewNotifyLockStatusChangeCancel, TIpcArgs(iViewId));
59 TInt CLogViewWindowLockObserver::RunError(TInt /*aError*/)
65 /////////////////////////////////////////////////////////////////////////////////////////
66 /////////////////////////////////////////////////////////////////////////////////////////
67 /////////////////////////////////////////////////////////////////////////////////////////
69 void CLogViewWindowLockObserver::IssueRequest()
71 iSession.Send(ELogViewNotifyLockStatusChange, TIpcArgs(iViewId), iStatus);