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