diff -r 000000000000 -r 2e3d3ce01487 startupservices/Startup/inc/StartupMediatorObserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/startupservices/Startup/inc/StartupMediatorObserver.h Tue Feb 02 10:12:00 2010 +0200 @@ -0,0 +1,78 @@ +/* +* Copyright (c) 2005-2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Declaration of CStartupMediatorObserver class +* +*/ + + +#ifndef STARTUPMEDIATOROBSERVER_H +#define STARTUPMEDIATOROBSERVER_H + +#include +#include + +class CStartupAppUi; + +class CStartupMediatorObserver : public CBase, + public MMediatorCommandResponseObserver + { + public: // Constructors and destructor + + /** + * C++ constructor. + */ + CStartupMediatorObserver( CStartupAppUi* aStartupAppUi ); + + /** + * Two-phased constructor. + */ + static CStartupMediatorObserver* NewL( CStartupAppUi* aStartupAppUi ); + + /** + * Destructor. + */ + ~CStartupMediatorObserver(); + + void IssueCommand(TInt aCommandId, TInt aData); + + void RaiseEvent( TUid aCategory, + TInt aEventId, + const TDesC8& aData ); + + public: // MMediatorCommandResponseObserver + + void CommandResponseL( TUid aDomain, + TUid aCategory, + TInt aCommandId, + TInt aStatus, + const TDesC8& aData ); + + private: + + /** + * By default EPOC constructor is private. + */ + void ConstructL(); + + private: //data + + CStartupAppUi* iStartupAppUi; //uses + CMediatorCommandInitiator* iCommandInitiator; + CMediatorEventProvider* iEventProvider; + TInt iSyncData; + }; + +#endif // STARTUPMEDIATOROBSERVER_H + +// End of File