|
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_ILBC_FORMAT_BODY_IMPL_H |
|
19 #define TMS_ILBC_FORMAT_BODY_IMPL_H |
|
20 |
|
21 #include <tms.h> |
|
22 #include "tmsformatbodyimpl.h" |
|
23 #include "tmsilbcformatbody.h" |
|
24 #include "tmsqueuehandler.h" |
|
25 |
|
26 namespace TMS { |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class TMSFormatObserver; |
|
30 class TMSCallProxy; |
|
31 |
|
32 // TMSILBCFormatBodyImpl class |
|
33 class TMSILBCFormatBodyImpl : public TMSILBCFormatBody, |
|
34 public TMSFormatBodyImpl, |
|
35 public MQueueHandlerObserver |
|
36 { |
|
37 public: |
|
38 static gint Create(TMSILBCFormatBody*& bodyimpl); |
|
39 virtual ~TMSILBCFormatBodyImpl(); |
|
40 |
|
41 // From TMSILBCFormatBody |
|
42 virtual gint SetMode(const TMSILBCCodecMode aMode); |
|
43 virtual gint GetMode(TMSILBCCodecMode& aMode); |
|
44 virtual gint SetCNG(const gboolean aCng); |
|
45 virtual gint GetCNG(gboolean& aCng); |
|
46 virtual gint SetVADMode(const gboolean aVad); |
|
47 virtual gint GetVADMode(gboolean& aVad); |
|
48 virtual gint GetType(TMSFormatType& Formattype); |
|
49 |
|
50 // From MQueueHandlerObserver starts |
|
51 virtual void QueueEvent(TInt aEventType, TInt aError, void* user_data); |
|
52 |
|
53 virtual void SetProxy(TMSGlobalContext* context, gpointer queuehandler); |
|
54 |
|
55 private: |
|
56 TMSILBCFormatBodyImpl(); |
|
57 gint PostConstruct(); |
|
58 |
|
59 private: |
|
60 TMSFormatObserver* iObserver; |
|
61 gpointer iUserData; |
|
62 TMSCallProxy* iProxy; |
|
63 TMSStreamType iStreamType; |
|
64 }; |
|
65 |
|
66 } //namespace TMS |
|
67 |
|
68 #endif // TMS_ILBC_FORMAT_BODY_IMPL_H |
|
69 |
|
70 // End of file |