|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // CLtsyCallControlMultipartyHandler |
|
15 |
|
16 #ifndef __CLTSYDISPATCHCALLCONTROLMULTIPARTYHANDLER_H_ |
|
17 #define __CLTSYDISPATCHCALLCONTROLMULTIPARTYHANDLER_H_ |
|
18 |
|
19 // INCLUDES |
|
20 #include <e32std.h> |
|
21 #include <e32base.h> |
|
22 |
|
23 #include <ctsy/ltsy/mltsydispatchinterface.h> |
|
24 #include <ctsy/ltsy/mltsydispatchcallcontrolmultipartyinterface.h> |
|
25 #include "misdispatchinterfacesupported.h" |
|
26 #include "ltsymacros.h" |
|
27 |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CCtsyDispatcherCallback; |
|
32 |
|
33 // Can be removed in real LTSY implementation |
|
34 MTEST_FORWARD_DECLARE_MOCKLTSYENGINE |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * Implements interfaces from the CTSY Dispatcher. The CTSY Dispatcher uses these |
|
40 * interfaces to make requests to the Licensee LTSY. |
|
41 */ |
|
42 class CLtsyCallControlMultipartyHandler : public CBase, |
|
43 public MIsDispatchInterfaceSupported, |
|
44 public MLtsyDispatchCallControlMultipartyConferenceHangUp, |
|
45 public MLtsyDispatchCallControlMultipartyConferenceAddCall, |
|
46 public MLtsyDispatchCallControlMultipartyCreateConference, |
|
47 public MLtsyDispatchCallControlMultipartyConferenceSwap, |
|
48 public MLtsyDispatchCallControlMultipartyConferenceGoOneToOne |
|
49 { |
|
50 public: |
|
51 |
|
52 virtual ~CLtsyCallControlMultipartyHandler(); |
|
53 static CLtsyCallControlMultipartyHandler* NewL(CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
54 static CLtsyCallControlMultipartyHandler* NewLC(CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
55 |
|
56 // From MIsDispatchInterfaceSupported |
|
57 virtual TBool IsInterfaceSupported(TLtsyDispatchInterfaceApiId aDispatchApiId); |
|
58 void IsCallbackIndicatorSupported(TLtsyDispatchIndIdGroup aIdGroup, TUint32& aIndIdBitMask); |
|
59 |
|
60 |
|
61 |
|
62 // From MLtsyDispatchCallControlMultipartyConferenceHangUp |
|
63 virtual TInt HandleConferenceHangUpReqL(const RArray<TInt>& aCallIds); |
|
64 |
|
65 // From MLtsyDispatchCallControlMultipartyConferenceAddCall |
|
66 virtual TInt HandleConferenceAddCallReqL(TInt aCallId, TInt aExistingCallId); |
|
67 |
|
68 // From MLtsyDispatchCallControlMultipartyCreateConference |
|
69 virtual TInt HandleCreateConferenceReqL(TInt aHeldCallId, TInt aSecondCallId); |
|
70 |
|
71 // From MLtsyDispatchCallControlMultipartyConferenceSwap |
|
72 virtual TInt HandleConferenceSwapReqL(TInt aHeldCallId, TInt aConnectedCallId); |
|
73 |
|
74 // From MLtsyDispatchCallControlMultipartyConferenceGoOneToOne |
|
75 virtual TInt HandleConferenceGoOneToOneReqL(TInt aCallId); |
|
76 |
|
77 private: |
|
78 |
|
79 CLtsyCallControlMultipartyHandler(CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
80 void ConstructL(); |
|
81 |
|
82 private: |
|
83 |
|
84 // Not owned |
|
85 |
|
86 /** |
|
87 * Callback object in the CTSY Dispatcher. |
|
88 * |
|
89 * Used to complete a request back to the CTSY Dispatcher. |
|
90 */ |
|
91 CCtsyDispatcherCallback& iCtsyDispatcherCallback; |
|
92 |
|
93 public: |
|
94 |
|
95 |
|
96 }; // class CLtsyCallControlMultipartyHandler |
|
97 |
|
98 #endif // __CLTSYDISPATCHCALLCONTROLMULTIPARTYHANDLER_H_ |
|
99 |