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