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 __LOGCLIENTOBSERVER_H__ sl@0: #define __LOGCLIENTOBSERVER_H__ sl@0: sl@0: // System includes sl@0: #include sl@0: sl@0: // User includes sl@0: #include sl@0: sl@0: // Classes referenced sl@0: class CLogClient; sl@0: class MLogClientChangeObserver; sl@0: sl@0: sl@0: ///////////////////////////////////////////////////////////////////////////////////////// sl@0: // -----> CLogClientObserver (header) sl@0: ///////////////////////////////////////////////////////////////////////////////////////// sl@0: NONSHARABLE_CLASS(CLogClientObserver) : public CActive sl@0: /** sl@0: @internalComponent sl@0: */ sl@0: { sl@0: public: sl@0: static CLogClientObserver* NewL(CLogClient& aClient, MLogClientChangeObserver& aObserver, TInt aPriority); sl@0: ~CLogClientObserver(); sl@0: sl@0: private: sl@0: CLogClientObserver(CLogClient& aClient, MLogClientChangeObserver& aObserver, TInt aPriority); sl@0: sl@0: private: // FROM CActive sl@0: void RunL(); sl@0: void DoCancel(); sl@0: TInt RunError(TInt aError); sl@0: sl@0: private: sl@0: void RequestChanges(); sl@0: void RequestChangesCancel(); sl@0: void NotifyObserverL(); sl@0: sl@0: private: sl@0: CLogClient& iClient; sl@0: MLogClientChangeObserver& iObserver; sl@0: // sl@0: TPckgBuf iContextBuf; sl@0: TPckgBuf iParamBuf1; sl@0: TPckgBuf iParamBuf2; sl@0: TPckgBuf iParamBuf3; sl@0: }; sl@0: sl@0: sl@0: #endif