|
1 /* |
|
2 * Copyright (c) 2005-2009 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 |
|
20 /************************************************************************* |
|
21 * |
|
22 * Switches |
|
23 * |
|
24 ************************************************************************/ |
|
25 #ifndef __STATCONSOLE_H__ |
|
26 #define __STATCONSOLE_H__ |
|
27 |
|
28 /************************************************************************* |
|
29 * |
|
30 * System Includes |
|
31 * |
|
32 ************************************************************************/ |
|
33 #include <e32base.h> |
|
34 #include <e32cons.h> |
|
35 |
|
36 /************************************************************************* |
|
37 * |
|
38 * Local Includes |
|
39 * |
|
40 ************************************************************************/ |
|
41 #include "stat_interfaces.h" |
|
42 |
|
43 /************************************************************************* |
|
44 * |
|
45 * Definitions |
|
46 * |
|
47 ************************************************************************/ |
|
48 |
|
49 /************************************************************************* |
|
50 * |
|
51 * CStatConsole |
|
52 * |
|
53 ************************************************************************/ |
|
54 class CStatConsole : public CBase, public MNotifyUI |
|
55 { |
|
56 public: |
|
57 // Construction |
|
58 static CStatConsole *NewL( CConsoleBase *aConsole, MNotifyLogMessage *const aMsg ); |
|
59 void ConstructL( CConsoleBase *aConsole, MNotifyLogMessage *const aMsg ); |
|
60 ~CStatConsole(); |
|
61 |
|
62 // MNotifyUI |
|
63 void HandleStatusChange( TInt aSessionId, TCommStatus aNewStatus ); |
|
64 void HandleError( TInt aError, void *aErrorData ); |
|
65 void HandleInfo( const TDesC *aInfo ); |
|
66 void UserExitRequest(); |
|
67 |
|
68 private: |
|
69 CConsoleBase *iConsole; |
|
70 TInt iUserExitRequest; |
|
71 |
|
72 MNotifyLogMessage *iMsg; |
|
73 }; |
|
74 |
|
75 #endif //__STATCONSOLE_H__ |