equal
deleted
inserted
replaced
21 #include <qtms.h> |
21 #include <qtms.h> |
22 #include <qtmsclientsink.h> |
22 #include <qtmsclientsink.h> |
23 #include <tmsclientsinkobsrvr.h> |
23 #include <tmsclientsinkobsrvr.h> |
24 |
24 |
25 // FORWARD DECLARATIONS |
25 // FORWARD DECLARATIONS |
26 namespace TMS { |
26 namespace TMS |
|
27 { |
27 class TMSBuffer; |
28 class TMSBuffer; |
28 class TMSSink; |
29 class TMSSink; |
29 } |
30 } |
30 |
31 |
31 namespace QTMS { |
32 namespace QTMS |
|
33 { |
32 |
34 |
33 // QTMSClientSinkImpl class |
35 // QTMSClientSinkImpl class |
34 class QTMSClientSinkImpl : public QTMSClientSink, |
36 class QTMSClientSinkImpl: public QTMSClientSink, public TMS::TMSClientSinkObserver |
35 public TMS::TMSClientSinkObserver |
37 { |
36 { |
|
37 public: |
38 public: |
38 static gint Create(QTMSSink*& qsink, TMS::TMSSink*& tmsclientsink); |
39 static gint Create(QTMSSink*& qsink, TMS::TMSSink*& tmsclientsink); |
39 virtual ~QTMSClientSinkImpl(); |
40 virtual ~QTMSClientSinkImpl(); |
40 |
41 |
41 gint AddObserver(TMS::TMSClientSinkObserver& obsrvr, gpointer user_data); |
42 gint AddObserver(TMS::TMSClientSinkObserver& obsrvr, gpointer user_data); |
47 void ProcessBuffer(const TMS::TMSBuffer* buffer); |
48 void ProcessBuffer(const TMS::TMSBuffer* buffer); |
48 |
49 |
49 private: |
50 private: |
50 QTMSClientSinkImpl(); |
51 QTMSClientSinkImpl(); |
51 gint PostConstruct(); |
52 gint PostConstruct(); |
52 }; |
53 }; |
53 |
54 |
54 } //namespace QTMS |
55 } //namespace QTMS |
55 |
56 |
56 #endif // QTMS_CLIENT_SINK_IMPL_H |
57 #endif // QTMS_CLIENT_SINK_IMPL_H |
57 |
|
58 // End of file |
58 // End of file |