author | ivan.fildichev@opencode.com |
Thu, 18 Nov 2010 15:42:16 +0200 | |
branch | opencode |
changeset 88 | 5e27cc612ac7 |
parent 24 | 6638e7f4bd8f |
permissions | -rw-r--r-- |
24 | 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 |
* Name : CSatNotifySendData.h |
|
16 |
* Part of : Common SIM ATK TSY / commonsimatktsy |
|
17 |
* Specific notifications class |
|
18 |
* Version : 1.0 |
|
19 |
* |
|
20 |
*/ |
|
21 |
||
22 |
||
23 |
||
24 |
#ifndef CSATNOTIFYSENDDATA_H |
|
25 |
#define CSATNOTIFYSENDDATA_H |
|
26 |
||
27 |
||
28 |
// INCLUDES |
|
29 |
#include <etelsat.h> |
|
30 |
#include "MSatNotificationsBase.h" |
|
31 |
||
32 |
||
33 |
// FORWARD DECLARATIONS |
|
34 |
class CSatDataPackage; |
|
35 |
class CSatNotificationsTsy; |
|
36 |
||
37 |
/** |
|
38 |
* DESCRIPTIONs |
|
39 |
* SAT Notify SendData notification class. |
|
40 |
* Created when client requests to be notified when SendData |
|
41 |
* command arrives from SIM. |
|
42 |
* |
|
43 |
* The purpose of this command is to enable the SAT |
|
44 |
* (which alerts other applications in the phone) to be notified |
|
45 |
* of the changes to the SIM configuration that have occurred as |
|
46 |
* the result of a SIM application activity. It is up to SAT to |
|
47 |
* ensure this is done correctly. |
|
48 |
* @lib Commonsimatktsy |
|
49 |
* @since 3.1 |
|
50 |
*/ |
|
51 |
NONSHARABLE_CLASS ( CSatNotifySendData ) : public CBase, |
|
52 |
public MSatNotificationsBase |
|
53 |
{ |
|
54 |
public: // Constructors and destructor |
|
55 |
||
56 |
/** |
|
57 |
* Two-phased constructor. |
|
58 |
* @param aNotificationsTsy: Pointer to NotificationsTsy |
|
59 |
* return CSatNotifySendData*: created object |
|
60 |
*/ |
|
61 |
static CSatNotifySendData* NewL( |
|
62 |
CSatNotificationsTsy* aNotificationsTsy ); |
|
63 |
||
64 |
/** |
|
65 |
* C++ Destructor. |
|
66 |
*/ |
|
67 |
~CSatNotifySendData(); |
|
68 |
||
69 |
private: |
|
70 |
||
71 |
/** |
|
72 |
* By default C++ constructor is private. |
|
73 |
* @param aNotificationsTsy: Pointer to NotificationsTsy |
|
74 |
* @return None |
|
75 |
*/ |
|
76 |
CSatNotifySendData( CSatNotificationsTsy* aNotificationsTsy ); |
|
77 |
||
78 |
/** |
|
79 |
* Class attributes are created in ConstructL. |
|
80 |
* @param None |
|
81 |
* @return None |
|
82 |
*/ |
|
83 |
void ConstructL(); |
|
84 |
||
85 |
public: // Functions from base classes |
|
86 |
||
87 |
/** |
|
88 |
* Notification request received from client |
|
89 |
* @param aTsyReqHandle: request handle from ETel |
|
90 |
* @param aPackage: Packed data |
|
91 |
* @return KErrNone |
|
92 |
*/ |
|
93 |
TInt Notify( const TTsyReqHandle aTsyReqHandle, |
|
94 |
const TDataPackage& aPackage ); |
|
95 |
||
96 |
/** |
|
97 |
* Cancels notification request about send data. |
|
98 |
* @param aReqHandle notify request handle |
|
99 |
* @return KErrNone |
|
100 |
*/ |
|
101 |
TInt CancelNotification( const TTsyReqHandle aReqHandle ); |
|
102 |
||
103 |
/** |
|
104 |
* Completes the notification request received from client |
|
105 |
* @param aDataPackage: Packaged return data |
|
106 |
* @param aErrorCode: Possible error code |
|
107 |
* @return KErrNone/ KErrCorrupt |
|
108 |
*/ |
|
109 |
TInt CompleteNotifyL( CSatDataPackage* aDataPackage, TInt aErrorCode ); |
|
110 |
||
111 |
/** |
|
112 |
* Handles the Send data terminal response |
|
113 |
* @param aRsp: Response structure |
|
114 |
* @return KErrNone/ KErrCorrupt |
|
115 |
*/ |
|
116 |
TInt TerminalResponseL( TDes8* aRsp ); |
|
117 |
||
118 |
public: // New methods |
|
119 |
||
120 |
/** |
|
121 |
* Create notification specific terminal response data |
|
122 |
* @param aPCmdNumber: Proactive command number |
|
123 |
* @param aGeneralResult: Result of the proactive command |
|
124 |
* @param aAdditionalInfo: Additional info for terminal response |
|
125 |
* @param aChannelDataLength: channel data length |
|
126 |
* @return Success/Failure value |
|
127 |
*/ |
|
128 |
TInt CreateTerminalRespL( TUint8 aPCmdNumber, TUint8 aGeneralResult, |
|
129 |
const TDesC16& aAdditionalInfo, |
|
130 |
TUint8 aChannelDataLength ); |
|
131 |
||
132 |
||
133 |
private: // Data |
|
134 |
||
135 |
// Notify SendData struct. Package received from ETel. |
|
136 |
RSat::TSendDataV2Pckg* iSendDataRspV2Pckg; |
|
137 |
// Pointer to the notifications tsy class |
|
138 |
CSatNotificationsTsy* iNotificationsTsy; |
|
139 |
||
140 |
}; |
|
141 |
||
0
3553901f7fa8
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
142 |
#endif // CSATNOTIFYSENDDATA_H |