|
1 /* |
|
2 * Copyright (c) 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: Telephony Multimedia Service |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TMS_IP_CALL_BODY_IMPL_H |
|
19 #define TMS_IP_CALL_BODY_IMPL_H |
|
20 |
|
21 #include <tms.h> |
|
22 #include "tmscallbody.h" |
|
23 |
|
24 namespace TMS { |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class TMSStream; |
|
28 class TMSDTMF; |
|
29 class TMSRingTone; |
|
30 class TMSCallProxy; |
|
31 |
|
32 typedef std::vector<TMSStream*> StreamsVector; |
|
33 typedef std::vector<TMSCallProxy*> SessionsVector; |
|
34 |
|
35 // TMSIPCallBodyImpl class |
|
36 class TMSIPCallBodyImpl : public TMSCallBody |
|
37 { |
|
38 public: |
|
39 static gint Create(TMSCallBody*& bodyimpl); |
|
40 virtual ~TMSIPCallBodyImpl(); |
|
41 |
|
42 // From TMSCallBody |
|
43 virtual TMSCallType GetCallType(); |
|
44 virtual gint GetCallContextId(guint& ctxid); |
|
45 virtual gint CreateStream(TMSStreamType type, TMSStream*& strm); |
|
46 virtual gint DeleteStream(TMSStream*& strm); |
|
47 |
|
48 private: |
|
49 TMSIPCallBodyImpl(); |
|
50 gint PostConstruct(); |
|
51 gint AddStreamToList(TMSStream* strm); |
|
52 gint RemStreamFromList(TMSStream*& strm); |
|
53 |
|
54 private: |
|
55 TMSCallProxy* iSession; |
|
56 StreamsVector iStreamsVector; |
|
57 SessionsVector iSessionsVector; |
|
58 }; |
|
59 |
|
60 } //namespace TMS |
|
61 |
|
62 #endif // TMS_IP_CALL_BODY_IMPL_H |
|
63 |
|
64 // End of file |