author | Oscar Gonzalez <oscar.1.gonzalez@nokia.com> |
Fri, 04 Jun 2010 13:03:15 +0100 | |
branch | opencode |
changeset 35 | 6fbc08ed9c42 |
parent 32 | 58332560b319 |
permissions | -rw-r--r-- |
24 | 1 |
// Copyright (c) 2008-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 |
// |
|
15 |
||
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
16 |
/** |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
17 |
@file |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
18 |
@internalAll |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
19 |
*/ |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
20 |
|
24 | 21 |
#ifndef __CCALLCONTROLMULTIPARTYDISPATCHER_H_ |
22 |
#define __CCALLCONTROLMULTIPARTYDISPATCHER_H_ |
|
23 |
||
24 |
// INCLUDES |
|
25 |
#include <e32std.h> |
|
26 |
#include <e32base.h> |
|
27 |
#include <e32def.h> |
|
28 |
#include <etelmm.h> |
|
29 |
||
30 |
#include <ctsy/ltsy/mltsydispatchfactory.h> |
|
31 |
||
32 |
||
33 |
#include "requestqueueoneshot.h" |
|
34 |
#include <ctsy/ltsy/ltsylogger.h> |
|
35 |
#include "mdispatchercallback.h" |
|
36 |
#include <ctsy/pluginapi/mmmessagemanagercallback.h> |
|
37 |
||
38 |
// FORWARD DECLARATIONS |
|
39 |
class CMmDataPackage; |
|
40 |
class MmMessageManagerCallback; |
|
41 |
class TDispatcherHolder; |
|
42 |
||
43 |
class MLtsyDispatchCallControlMultipartyConferenceHangUp; |
|
44 |
class MLtsyDispatchCallControlMultipartyConferenceAddCall; |
|
45 |
class MLtsyDispatchCallControlMultipartyCreateConference; |
|
46 |
class MLtsyDispatchCallControlMultipartyConferenceSwap; |
|
47 |
class MLtsyDispatchCallControlMultipartyConferenceGoOneToOne; |
|
48 |
||
49 |
||
50 |
// CLASS DECLARATION |
|
51 |
||
52 |
/** |
|
53 |
* This class is responsible for packing and unpacking data belonging |
|
54 |
* to CallControlMultiparty related requests to the Licensee LTSY. |
|
55 |
*/ |
|
56 |
class CCallControlMultipartyDispatcher : public CBase, public MDispatcherCallback |
|
57 |
{ |
|
58 |
public: |
|
59 |
||
60 |
virtual ~CCallControlMultipartyDispatcher(); |
|
61 |
||
62 |
static CCallControlMultipartyDispatcher* NewL( |
|
63 |
MLtsyDispatchFactoryV1& aLtsyFactory, |
|
64 |
MmMessageManagerCallback& aMessageManagerCallback, |
|
65 |
CRequestQueueOneShot& aRequestAsyncOneShot); |
|
66 |
||
67 |
static CCallControlMultipartyDispatcher* NewLC( |
|
68 |
MLtsyDispatchFactoryV1& aLtsyFactory, |
|
69 |
MmMessageManagerCallback& aMessageManagerCallback, |
|
70 |
CRequestQueueOneShot& aRequestAsyncOneShot); |
|
71 |
||
72 |
// Dispatcher functions for dispatching requests DOWN to the Licensee LTSY |
|
73 |
||
74 |
TInt DispatchConferenceHangUpL(const CMmDataPackage* aDataPackage); |
|
75 |
TInt DispatchConferenceAddCallL(const CMmDataPackage* aDataPackage); |
|
76 |
TInt DispatchCreateConferenceL(const CMmDataPackage* aDataPackage); |
|
77 |
TInt DispatchConferenceSwapL(const CMmDataPackage* aDataPackage); |
|
78 |
TInt DispatchConferenceGoOneToOneL(const CMmDataPackage* aDataPackage); |
|
79 |
||
80 |
// Complete functions for receiving completions UP from the Licensee LTSY |
|
81 |
// via the CCtsyDispatcherCallback object. |
|
82 |
||
83 |
void CallbackConferenceHangUp(TInt aError); |
|
84 |
void CallbackConferenceAddCall(TInt aError); |
|
85 |
void CallbackCreateConference(TInt aError); |
|
86 |
void CallbackConferenceSwap(TInt aError); |
|
87 |
void CallbackConferenceGoOneToOne(TInt aError, TInt aCallId); |
|
88 |
||
89 |
// From MDispatcherCallback |
|
90 |
void CallbackSync(CRequestQueueOneShot::TIpcDataPackage& aIpcDataPackage); |
|
91 |
||
92 |
// Other public functions |
|
93 |
void SetDispatcherHolder(TDispatcherHolder& aDispatcherHolder); |
|
94 |
||
95 |
private: |
|
96 |
||
97 |
CCallControlMultipartyDispatcher(MLtsyDispatchFactoryV1& aLtsyFactory, |
|
98 |
MmMessageManagerCallback& aMessageManagerCallback, |
|
99 |
CRequestQueueOneShot& aRequestAsyncOneShot); |
|
100 |
||
101 |
void ConstructL(); |
|
102 |
||
103 |
private: // Not owned |
|
104 |
||
105 |
MLtsyDispatchFactoryV1& iLtsyFactoryV1; |
|
106 |
MmMessageManagerCallback& iMessageManagerCallback; |
|
107 |
CRequestQueueOneShot& iRequestAsyncOneShot; |
|
108 |
TDispatcherHolder* iDispatcherHolder; |
|
109 |
||
110 |
// Interfaces in the Licensee LTSY, not owned by this object |
|
111 |
||
112 |
MLtsyDispatchCallControlMultipartyConferenceHangUp* iLtsyDispatchCallControlMultipartyConferenceHangUp; |
|
113 |
MLtsyDispatchCallControlMultipartyConferenceAddCall* iLtsyDispatchCallControlMultipartyConferenceAddCall; |
|
114 |
MLtsyDispatchCallControlMultipartyCreateConference* iLtsyDispatchCallControlMultipartyCreateConference; |
|
115 |
MLtsyDispatchCallControlMultipartyConferenceSwap* iLtsyDispatchCallControlMultipartyConferenceSwap; |
|
116 |
MLtsyDispatchCallControlMultipartyConferenceGoOneToOne* iLtsyDispatchCallControlMultipartyConferenceGoOneToOne; |
|
117 |
||
118 |
}; // class CCallControlMultipartyDispatcher |
|
119 |
||
120 |
#endif // __CCALLCONTROLMULTIPARTYDISPATCHER_H_ |
|
121 |