1 /* |
|
2 * Copyright (c) 2010 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: QT Bindings for TMS |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef QTMS_CLIENT_SOURCE_IMPL_H |
|
19 #define QTMS_CLIENT_SOURCE_IMPL_H |
|
20 |
|
21 #include <qtms.h> |
|
22 #include <qtmsclientsource.h> |
|
23 #include <tmsclientsourceobsrvr.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 namespace TMS |
|
27 { |
|
28 class TMSBuffer; |
|
29 class TMSSource; |
|
30 } |
|
31 |
|
32 namespace QTMS |
|
33 { |
|
34 |
|
35 // QTMSClientSourceImpl class |
|
36 class QTMSClientSourceImpl: public QTMSClientSource, public TMS::TMSClientSourceObserver |
|
37 { |
|
38 public: |
|
39 |
|
40 static gint Create(QTMSSource*& qsource, TMS::TMSSource*& tmssource); |
|
41 virtual ~QTMSClientSourceImpl(); |
|
42 |
|
43 gint AddObserver(TMS::TMSClientSourceObserver& obsrvr, gpointer user_data); |
|
44 gint RemoveObserver(TMS::TMSClientSourceObserver& obsrvr); |
|
45 |
|
46 gint GetSource(TMS::TMSSource*& tmssource); |
|
47 |
|
48 //From TMSClientSourceObserver |
|
49 void FillBuffer(TMS::TMSBuffer& buffer); |
|
50 void BufferProcessed(const TMS::TMSBuffer* buffer, gint reason); |
|
51 |
|
52 private: |
|
53 QTMSClientSourceImpl(); |
|
54 gint PostConstruct(); |
|
55 }; |
|
56 |
|
57 } //namespace QTMS |
|
58 |
|
59 #endif // QTMS_CLIENT_SOURCE_IMPL_H |
|
60 // End of file |
|