diff -r 000000000000 -r 3e07fef1e154 testexecfw/statsrv/device/source/statapi/inc/stat_application.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testexecfw/statsrv/device/source/statapi/inc/stat_application.h Mon Mar 08 15:03:44 2010 +0800 @@ -0,0 +1,121 @@ +/* +* Copyright (c) 2005-2009 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: +* +*/ + + + +/************************************************************************* + * + * Switches + * + ************************************************************************/ +#ifndef __STATAPPLICATION_H__ +#define __STATAPPLICATION_H__ + +/************************************************************************* + * + * System Includes + * + ************************************************************************/ +#include +#include +#include +#include +#include +#include + +/************************************************************************* + * + * Local Includes + * + ************************************************************************/ +#include +#include "statapi.hrh" +#include "stat_window.h" +#include "stat_tcpip.h" +#include "stat_controller.h" + +#ifdef SYMBIAN_DIST_SERIES60 +#include +#endif + +/************************************************************************* + * + * Definitions + * + ************************************************************************/ +#ifdef SYMBIAN_DIST_SERIES60 +#define CPlatAppUi CAknAppUi +#else +#define CPlatAppUi CEikAppUi +#endif + +/************************************************************************* + * + * CStatApplication + * + ************************************************************************/ +class CStatApplication : public CEikApplication +{ +private: + CApaDocument* CreateDocumentL(); + TUid AppDllUid() const; +}; + +/************************************************************************* + * + * CStatDocument + * + ************************************************************************/ +class CStatDocument : public CEikDocument +{ +public: + static CStatDocument* NewL(CEikApplication& aApp); + CStatDocument(CEikApplication& aApp); + void ConstructL(); + +private: + CEikAppUi* CreateAppUiL(); +}; + +/************************************************************************* + * + * CStatAppUi + * + ************************************************************************/ +class CStatAppUi : public CPlatAppUi, public MCoeControlObserver +{ +public: + void ConstructL(); + ~CStatAppUi(); + + // From CEikAppUi + TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); + void HandleCommandL( TInt aCommand ); + void HandleForegroundEventL(TBool aForeground); + + // From MCoeControlObserver + void HandleControlEventL( CCoeControl* aControl, TCoeEvent aEventType ); + +private: + CStatController *iController; + CStatWindow *iWindow; +}; + + + +#endif //__STATAPPLICATION_H__ +