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