|
1 /* |
|
2 * Copyright (c) 2008 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 #ifndef NSPTESTCONSOLEACTIONS_H |
|
19 #define NSPTESTCONSOLEACTIONS_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 class CRepository; |
|
24 class CNSPTestManager; |
|
25 class MNSPTestVisitor; |
|
26 |
|
27 class MNSPTestConsoleActions |
|
28 { |
|
29 public: |
|
30 // Write to the console |
|
31 virtual void DisplayMenu( const TDesC& aMenu , TInt aError = KErrNone ) = 0; |
|
32 virtual void DisplaySelection( TInt aPrefix, const TDesC& aText, TBool aAddPreLinebreak = EFalse ) = 0; |
|
33 virtual void DisplaySelection( TInt aPrefix, const TDesC& aText, |
|
34 const TDesC& aSelect, TBool aAddPreLinebreak = EFalse ) = 0; |
|
35 virtual void DisplaySelection( TInt aPrefix, const TDesC& aText, |
|
36 TUint32 aSelect, TBool aAddPreLinebreak = EFalse ) = 0; |
|
37 virtual void DisplaySelection( TInt aPrefix, const TDesC& aText, |
|
38 TInt aSelect, TBool aAddPreLinebreak = EFalse ) = 0; |
|
39 virtual void DisplayPrompt( const TDesC& aText, TBool aAddPreLinebreak = EFalse ) = 0; |
|
40 virtual void DisplayPrompt( TBool aAddPreLinebreak = EFalse ) = 0; |
|
41 virtual void DisplayOne( TBool aAddPreLinebreak = EFalse ) = 0; |
|
42 virtual void DisplayTwo( TBool aAddPreLinebreak = EFalse ) = 0; |
|
43 virtual void DisplayThree( TBool aAddPreLinebreak = EFalse ) = 0; |
|
44 virtual void DisplayFour( TBool aAddPreLinebreak = EFalse ) = 0; |
|
45 |
|
46 // Read from the console |
|
47 virtual void DoRead() = 0; // ASYNC |
|
48 virtual TKeyCode GetStringFromConsoleL( TDes& aBuffer ) = 0; // SYNC |
|
49 virtual TKeyCode GetTUint32FromConsoleL( TUint32& aTUint32 ) = 0; // SYNC |
|
50 |
|
51 // Central repository, used to write NAT settings |
|
52 virtual CRepository& Cenrep() = 0; |
|
53 |
|
54 // Test manager reference, used to execute tests. |
|
55 virtual CNSPTestManager& Manager() = 0; |
|
56 |
|
57 // Test console where output is directed. |
|
58 virtual CConsoleBase& Console() = 0; |
|
59 |
|
60 }; |
|
61 |
|
62 #endif // NSPTESTCONSOLEACTIONS_H |