|
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_INBAND_BODY_IMPL_H |
|
19 #define TMS_INBAND_BODY_IMPL_H |
|
20 |
|
21 #include <tms.h> |
|
22 #include "tmsinbandtonebody.h" |
|
23 #include "tmsclientserver.h" |
|
24 |
|
25 namespace TMS { |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class TMSInbandToneObserver; |
|
29 class TMSInbandTone; |
|
30 class TMSProxy; |
|
31 |
|
32 // TMSInbandBodyImpl class |
|
33 class TMSInbandToneBodyImpl : public TMSInbandToneBody |
|
34 { |
|
35 public: |
|
36 static gint Create(TMSInbandToneBody*& bodyimpl); |
|
37 virtual ~TMSInbandToneBodyImpl(); |
|
38 |
|
39 // From TMSInbandToneBody begins |
|
40 virtual gint AddObserver(TMSInbandToneObserver& obsrvr, gpointer user_data); |
|
41 virtual gint RemoveObserver(TMSInbandToneObserver& obsrvr); |
|
42 virtual gint Start(TMSInbandToneType inbandtone); |
|
43 virtual gint Stop(); |
|
44 |
|
45 void SetParent(TMSInbandTone*& parent); |
|
46 |
|
47 private: |
|
48 TMSInbandToneBodyImpl(); |
|
49 gint PostConstruct(); |
|
50 |
|
51 private: |
|
52 TMSInbandToneObserver* iObserver; |
|
53 gint iClientId; |
|
54 gpointer iUserData; |
|
55 TMSProxy* iProxy; |
|
56 TMSInbandTone* iParent; |
|
57 TMSInbandToneType iInbandType; |
|
58 }; |
|
59 |
|
60 } //namespace TMS |
|
61 |
|
62 #endif // TMS_DTMF_BODY_IMPL_H |
|
63 |