|
1 /* |
|
2 * Copyright (c) 2006-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 : CSatNotifyCallControlRequest.h |
|
16 * Part of : Common SIM ATK TSY / commonsimatktsy |
|
17 * Specific notifications class |
|
18 * Version : 1.0 |
|
19 * |
|
20 */ |
|
21 |
|
22 |
|
23 |
|
24 #ifndef CSATNOTIFYCALLCONTROLREQUEST_H |
|
25 #define CSATNOTIFYCALLCONTROLREQUEST_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 Call Control notification class. |
|
39 * Created when client requests to be notified if a request (of any other |
|
40 * existing client) has been modified by call control. |
|
41 * @lib Commonsimatktsy |
|
42 * @since 3.1 |
|
43 */ |
|
44 NONSHARABLE_CLASS ( CSatNotifyCallControlRequest ) : public CBase, |
|
45 public MSatNotificationsBase |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 * @param aNotificationsTsy: Pointer to NotificationsTsy |
|
52 * return CSatNotifyCallControlRequest*: created object |
|
53 */ |
|
54 static CSatNotifyCallControlRequest* NewL( |
|
55 CSatNotificationsTsy* aNotificationsTsy ); |
|
56 |
|
57 /** |
|
58 * C++ Destructor. |
|
59 */ |
|
60 ~CSatNotifyCallControlRequest(); |
|
61 |
|
62 private: |
|
63 /** |
|
64 * By default C++ constructor is private. |
|
65 * @param aNotificationsTsy: Pointer to NotificationsTsy |
|
66 */ |
|
67 CSatNotifyCallControlRequest( CSatNotificationsTsy* aNotificationsTsy ); |
|
68 |
|
69 /** |
|
70 * Class attributes are created in ConstructL. |
|
71 */ |
|
72 void ConstructL(); |
|
73 |
|
74 public: // Functions from base classes |
|
75 |
|
76 /** |
|
77 * Call Control Request Notification request received from client |
|
78 * @param aTsyReqHandle request handle from ETel |
|
79 * @param aPackage: Packed data |
|
80 * @return KErrNone |
|
81 */ |
|
82 TInt Notify( const TTsyReqHandle aTsyReqHandle, |
|
83 const TDataPackage& aPackage ); |
|
84 |
|
85 /** |
|
86 * Cancels notification request for Call Control Request. |
|
87 * @param aReqHandle notify request handle |
|
88 * @return KErrNone |
|
89 */ |
|
90 TInt CancelNotification( const TTsyReqHandle aReqHandle ); |
|
91 |
|
92 /** |
|
93 * Unpacks and passes Alpha Id for notification completion method |
|
94 * @param aDataPackage: Packaged return data |
|
95 * @param aErrorCode: Possible error code |
|
96 * @return KErrNone/ KErrCorrupt |
|
97 */ |
|
98 TInt CompleteNotifyL( CSatDataPackage* aDataPackage, TInt aErrorCode ); |
|
99 |
|
100 /** |
|
101 * Completes Call Control Notification Request message to client |
|
102 * @param aAlphaId: Reference to the Alpha ID |
|
103 * @param aResult: Result of the call control request |
|
104 * @param aErrorCode: Possible error code |
|
105 * @return KErrNone/ KErrCorrupt |
|
106 */ |
|
107 void CompleteAlphaId( RSat::TAlphaIdBuf& aAlphaId, |
|
108 RSat::TControlResult aResult, TInt aErrorCode ); |
|
109 |
|
110 private: // Data |
|
111 |
|
112 // Notify Call Control struct. Package allocated |
|
113 // in this class and received from ETel |
|
114 RSat::TCallControlV2Pckg* iCallControlV2Pckg; |
|
115 // Requested response format |
|
116 TUint8 iRequestedRspFormat; |
|
117 // Pointer to the notifications tsy class |
|
118 CSatNotificationsTsy* iNotificationsTsy; |
|
119 }; |
|
120 |
|
121 |
|
122 #endif // CSATNOTIFYCALLCONTROLREQUEST_H |