|
33
|
1 |
/*
|
|
|
2 |
* Copyright (c) 2002-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: This is the handler for the SIM Application Toolkit
|
|
|
15 |
* active commands.
|
|
|
16 |
*
|
|
|
17 |
*/
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
#ifndef CSATCACTIVECOMMANDHANDLER_H
|
|
|
21 |
#define CSATCACTIVECOMMANDHANDLER_H
|
|
|
22 |
|
|
|
23 |
// INCLUDES
|
|
|
24 |
#include <e32base.h>
|
|
|
25 |
#include <etelsat.h>
|
|
|
26 |
#include "MSatUiAdapter.h"
|
|
|
27 |
|
|
|
28 |
// FORWARD DECLARATIONS
|
|
|
29 |
|
|
|
30 |
class RSatUiSession;
|
|
|
31 |
|
|
|
32 |
// CLASS DECLARATION
|
|
|
33 |
|
|
|
34 |
/**
|
|
|
35 |
* This class handles end user -initiated commands.
|
|
|
36 |
* It is derived from an abstract interface (MSatUiAdapter) so that
|
|
|
37 |
* the implementation is not exposed to the user of this class.
|
|
|
38 |
*
|
|
|
39 |
* @lib SatClient.lib
|
|
|
40 |
* @since Series 60 2.6
|
|
|
41 |
*/
|
|
|
42 |
class CSatCActiveCommandHandler : public CBase, public MSatUiAdapter
|
|
|
43 |
{
|
|
|
44 |
public: // Constructors and destructor
|
|
|
45 |
|
|
|
46 |
/**
|
|
|
47 |
* Two-phased constructor.
|
|
|
48 |
* @param aSat A pointer to a session (does not take ownership).
|
|
|
49 |
*/
|
|
|
50 |
static CSatCActiveCommandHandler* NewL( RSatUiSession* aSat );
|
|
|
51 |
|
|
|
52 |
/**
|
|
|
53 |
* Destructor.
|
|
|
54 |
*/
|
|
|
55 |
virtual ~CSatCActiveCommandHandler();
|
|
|
56 |
|
|
|
57 |
public: // New functions
|
|
|
58 |
|
|
|
59 |
/**
|
|
|
60 |
* From MSatUiAdapter
|
|
|
61 |
*
|
|
|
62 |
* Menu Selection active command handling.
|
|
|
63 |
* @param aMenuItem The index of the selected menu item (starts from 0).
|
|
|
64 |
* @param aHelpRequested A flag indicating whether help was req'd.
|
|
|
65 |
*/
|
|
|
66 |
void MenuSelection(
|
|
|
67 |
TInt aMenuItem,
|
|
|
68 |
TBool aHelpRequested );
|
|
|
69 |
|
|
|
70 |
/**
|
|
|
71 |
* From MSatUiAdapter
|
|
|
72 |
*
|
|
|
73 |
* Session terminanation active command handling.
|
|
|
74 |
* @param aType The type of termination
|
|
|
75 |
*/
|
|
|
76 |
void SessionTerminated( TInt8 aType );
|
|
|
77 |
|
|
|
78 |
private: // Constructors
|
|
|
79 |
|
|
|
80 |
/**
|
|
|
81 |
* C++ default constructor.
|
|
|
82 |
* @param aSat A pointer to a session (does not take ownership).
|
|
|
83 |
*/
|
|
|
84 |
CSatCActiveCommandHandler( RSatUiSession* aSat );
|
|
|
85 |
|
|
|
86 |
private: // Data
|
|
|
87 |
|
|
|
88 |
/**
|
|
|
89 |
* Reference to the Sat API
|
|
|
90 |
*/
|
|
|
91 |
RSatUiSession* iSession;
|
|
|
92 |
|
|
|
93 |
/**
|
|
|
94 |
* The data structure for the command data
|
|
|
95 |
*/
|
|
|
96 |
RSat::TMenuSelectionV1 iMenuSelectionData;
|
|
|
97 |
|
|
|
98 |
/**
|
|
|
99 |
* The data package for IPC
|
|
|
100 |
*/
|
|
|
101 |
RSat::TMenuSelectionV1Pckg iMenuSelectionPckg;
|
|
|
102 |
|
|
|
103 |
};
|
|
|
104 |
|
|
|
105 |
#endif // CSATCACTIVECOMMANDHANDLER_H
|
|
|
106 |
|
|
|
107 |
// End of File
|