|
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_STREAM_BODY_H |
|
19 #define TMS_STREAM_BODY_H |
|
20 |
|
21 #include <tms.h> |
|
22 |
|
23 namespace TMS { |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class TMSStreamObserver; |
|
27 class TMSSource; |
|
28 class TMSSink; |
|
29 class TMSFormat; |
|
30 class TMSEffect; |
|
31 class TMSBuffer; |
|
32 |
|
33 // Class declaration |
|
34 class TMSStreamBody |
|
35 { |
|
36 public: |
|
37 virtual ~TMSStreamBody() {} |
|
38 |
|
39 virtual gint AddObserver(TMSStreamObserver& obsrvr, |
|
40 gpointer user_data) = 0; |
|
41 virtual gint RemoveObserver(TMSStreamObserver& obsrvr) = 0; |
|
42 virtual gint AddSource(TMSSource* source) = 0; |
|
43 virtual gint RemoveSource(TMSSource* source) = 0; |
|
44 virtual gint AddSink(TMSSink* sink) = 0; |
|
45 virtual gint RemoveSink(TMSSink* sink) = 0; |
|
46 virtual gint SetFormat(TMSFormat* format) = 0; |
|
47 virtual gint ResetFormat(TMSFormat* format) = 0; |
|
48 virtual gint AddEffect(TMSEffect* effect) = 0; |
|
49 virtual gint RemoveEffect(TMSEffect* effect) = 0; |
|
50 virtual gint GetState() = 0; |
|
51 virtual gint GetStreamType() = 0; |
|
52 virtual gint GetStreamId() = 0; |
|
53 virtual gint Init() = 0; |
|
54 virtual gint Pause() = 0; |
|
55 virtual gint Start() = 0; |
|
56 virtual gint Stop() = 0; |
|
57 virtual void Deinit() = 0; |
|
58 |
|
59 private: |
|
60 }; |
|
61 |
|
62 } //namespace TMS |
|
63 |
|
64 #endif //TMS_STREAM_BODY_H |