|
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 : CSatNotifySetUpIdleModeText.h |
|
16 * Part of : Common SIM ATK TSY / commonsimatktsy |
|
17 * Specific notifications class |
|
18 * Version : 1.0 |
|
19 * |
|
20 */ |
|
21 |
|
22 |
|
23 |
|
24 #ifndef CSATNOTIFYSETUPIDLEMODETEXT_H |
|
25 #define CSATNOTIFYSETUPIDLEMODETEXT_H |
|
26 |
|
27 |
|
28 // INCLUDES |
|
29 #include <etelsat.h> |
|
30 #include "MSatNotificationsBase.h" |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class CSatDataPackage; |
|
34 class CSatNotificationsTsy; |
|
35 |
|
36 /** |
|
37 * DESCRIPTION |
|
38 * SAT Set Up Idle Mode Text notification class. |
|
39 * Created when client requests to be notified when Set Up Idle Mode Text |
|
40 * command arrives from SIM. |
|
41 * |
|
42 * @lib Commonsimatktsy |
|
43 * @since 3.1 |
|
44 */ |
|
45 NONSHARABLE_CLASS ( CSatNotifySetUpIdleModeText ) : public CBase, |
|
46 public MSatNotificationsBase |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 |
|
50 /** |
|
51 * Two-phased constructor. |
|
52 * @param aNotificationsTsy: Pointer to NotificationsTsy |
|
53 * return CSatNotifySetUpIdleModeText*: created object |
|
54 */ |
|
55 static CSatNotifySetUpIdleModeText* NewL( |
|
56 CSatNotificationsTsy* aNotificationsTsy ); |
|
57 |
|
58 /** |
|
59 * C++ Destructor. |
|
60 */ |
|
61 ~CSatNotifySetUpIdleModeText( ); |
|
62 |
|
63 private: |
|
64 |
|
65 /** |
|
66 * By default C++ constructor is private. |
|
67 * @param aNotificationsTsy: Pointer to NotificationsTsy |
|
68 * @return None |
|
69 */ |
|
70 CSatNotifySetUpIdleModeText( CSatNotificationsTsy* aNotificationsTsy ); |
|
71 |
|
72 /** |
|
73 * Class attributes are created in ConstructL. |
|
74 * @param None |
|
75 * @return None |
|
76 */ |
|
77 void ConstructL( ); |
|
78 |
|
79 public: // Functions from base classes |
|
80 |
|
81 /** |
|
82 * Set Up Idle Mode Text Notification request received from client |
|
83 * @param aTsyReqHandle request handle from ETel |
|
84 * @param aPackage: Packed data |
|
85 * @return KErrNone |
|
86 */ |
|
87 TInt Notify( const TTsyReqHandle aTsyReqHandle, |
|
88 const TDataPackage& aPackage ); |
|
89 |
|
90 /** |
|
91 * Cancels notification request for Set Up Idle Mode Text. |
|
92 * @param aReqHandle notify request handle |
|
93 * @return KErrNone |
|
94 */ |
|
95 TInt CancelNotification( const TTsyReqHandle aReqHandle ); |
|
96 |
|
97 /** |
|
98 * Completes Set Up Idle Mode Text message to client |
|
99 * @param aDataPackage: Packaged return data |
|
100 * @param aErrorCode: Possible error code |
|
101 * @return KErrNone/ KErrCorrupt |
|
102 */ |
|
103 TInt CompleteNotifyL( CSatDataPackage* aDataPackage, TInt aErrorCode ); |
|
104 |
|
105 /** |
|
106 * From CSatNotificationsBase handles Set Up Idle Mode Text terminal response |
|
107 * coming from client. |
|
108 * @param aRsp: Response structure |
|
109 * @return KErrNone/ KErrCorrupt |
|
110 */ |
|
111 TInt TerminalResponseL( TDes8* aRsp ); |
|
112 |
|
113 public: // New functions |
|
114 |
|
115 /** |
|
116 * Create notification specific terminal response data |
|
117 * @param aPCmdNumber: Proactive command number |
|
118 * @param aGeneralResult: Result of the proactive command |
|
119 * @param aAdditionalInfo: Additional info for terminal response |
|
120 * @return Success/Failure value |
|
121 */ |
|
122 TInt CreateTerminalRespL( TUint8 aPCmdNumber, TUint8 aGeneralResult, |
|
123 TDesC16& aAdditionalInfo ); |
|
124 |
|
125 private: // Data |
|
126 |
|
127 // SetUpIdleModeText package store. |
|
128 RSat::TSetUpIdleModeTextV1Pckg* iSetUpIdleModeTextV1Pckg; |
|
129 // Pointer to the notifications tsy class |
|
130 CSatNotificationsTsy* iNotificationsTsy; |
|
131 }; |
|
132 |
|
133 |
|
134 #endif // CSATNOTIFYSETUPIDLEMODETEXT_H |