sdkcreationmw/sdkruntimes/MIDP/DebugAgent/src/JavaDebugAgentAppUi.h
changeset 0 b26acd06ea60
equal deleted inserted replaced
-1:000000000000 0:b26acd06ea60
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __JAVA_DEBUG_AGENT_APP_UI_H__
       
    20 #define __JAVA_DEBUG_AGENT_APP_UI_H__
       
    21 
       
    22 #include <aknviewappui.h>
       
    23 #include "JavaDebugAgentDriver.h"
       
    24 #include "JavaDebugAgentBasicLogView.h"
       
    25 
       
    26 class CJavaDebugAgentSettings;
       
    27 class CJavaDebugAgentSettingsView;
       
    28 class CJavaDebugAgentAppUi : public CAknViewAppUi, MJavaDebugAgentObserver
       
    29 {
       
    30 private:
       
    31     CAsyncCallBack iAsyncDeleteDriver;
       
    32     CJavaDebugAgentBasicLogView* iLogView;
       
    33     CJavaDebugAgentSettingsView* iSettingsView;
       
    34     CJavaDebugAgentDriver* iDriver;
       
    35     TInt iDefaultSoftKeys;
       
    36     TInt iCurrentSoftKeys;
       
    37     TBool iSlaveMode;
       
    38 
       
    39 public:
       
    40     CJavaDebugAgentAppUi();
       
    41     virtual ~CJavaDebugAgentAppUi();
       
    42     virtual void ConstructL();
       
    43     virtual void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
       
    44 
       
    45 	// CEikAppUi
       
    46     virtual void HandleResourceChangeL(TInt aType);
       
    47 
       
    48     // MJavaDebugAgentObserver
       
    49     virtual void StateChanged(CJavaDebugAgentDriver::TState aState);
       
    50 
       
    51 private:
       
    52     void HandleCommandL(TInt aCommand);
       
    53     CJavaDebugAgentDriver* NewDriverLC();
       
    54     void DeleteDriver();
       
    55     void HandleListenL();
       
    56     void HandleConnectL();
       
    57     static TInt AsyncDeleteDriver(TAny* aThis);
       
    58 };
       
    59 
       
    60 #endif // __JAVA_DEBUG_AGENT_APP_UI_H__
       
    61 
       
    62 /**
       
    63  * Local Variables:
       
    64  * mode: c++
       
    65  * c-basic-offset: 4
       
    66  * indent-tabs-mode: nil
       
    67  * End:
       
    68  */