1 /* |
|
2 * Copyright (c) 2002-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 the License "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: Send Dtmf specific test class. Inherits CCommandBase. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef COMMANDSENDDTMF_H |
|
21 #define COMMANDSENDDTMF_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "satcommandbase.h" |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Class provides functionality to verify the validity SendDtmf |
|
30 * proactive command and to create an ETel response for it. |
|
31 * @lib SimAtk.dll |
|
32 */ |
|
33 NONSHARABLE_CLASS( CCommandSendDtmf ) : public CSatCommandBase |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * Constructor. |
|
39 */ |
|
40 CCommandSendDtmf( TSatIpc aIpc, const RSat& aSat, |
|
41 CStifItemParser& aParser, CStifLogger& aLog ); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 ~CCommandSendDtmf(); |
|
47 |
|
48 |
|
49 public: // Implemented pure virtual methods from CSatBase |
|
50 |
|
51 /** |
|
52 * Method requests notifications from Etel and |
|
53 * and resets the internal data structure. |
|
54 * @param aSimAtkStatus Reference to active object's request status |
|
55 * @return KErrNone |
|
56 */ |
|
57 TInt NotifySat( TRequestStatus& aSimAtkStatus ); |
|
58 |
|
59 /** |
|
60 * Method verifies the validity of received data by compaing |
|
61 * them against scripted parameters. |
|
62 * @param aItem Reference to Parser class holding parameter data |
|
63 * @param aLog Reference to logger |
|
64 * @return KErrNone if date was valid or KErrCorrupt if received data |
|
65 * and script did not match. |
|
66 */ |
|
67 TInt CheckData(); |
|
68 |
|
69 |
|
70 public: // Implemented pure virtual methods from CCommandBase |
|
71 |
|
72 /** |
|
73 * Constructs response packet for Etel from scripted |
|
74 * parameters. |
|
75 * @param aItem reference to Parser class holding parameter data |
|
76 * @return KErrNone or KErrCorrupt if parsing failed or mandatory |
|
77 * parameters were missing. |
|
78 */ |
|
79 TInt SendResponse(); |
|
80 |
|
81 |
|
82 private: // Data |
|
83 |
|
84 // Proactive command data and package |
|
85 #ifndef LEGACY |
|
86 RSat::TSendDtmfV5 iData; |
|
87 RSat::TSendDtmfV5Pckg iDataPckg; |
|
88 #else |
|
89 RSat::TSendDtmfV1 iData; |
|
90 RSat::TSendDtmfV1Pckg iDataPckg; |
|
91 #endif // LEGACY |
|
92 |
|
93 |
|
94 // Response data and package |
|
95 RSat::TSendDataRspV2 iRsp; |
|
96 RSat::TSendDataRspV2Pckg iRspPckg; |
|
97 }; |
|
98 |
|
99 #endif // COMMANDSENDDTMF_H |
|
100 |
|
101 // End of File |
|