equal
deleted
inserted
replaced
22 using namespace QTMS; |
22 using namespace QTMS; |
23 using namespace TMS; |
23 using namespace TMS; |
24 |
24 |
25 QTMSClientSink::QTMSClientSink() : |
25 QTMSClientSink::QTMSClientSink() : |
26 iSink(NULL) |
26 iSink(NULL) |
27 { |
27 { |
28 } |
28 } |
29 |
29 |
30 QTMSClientSink::~QTMSClientSink() |
30 QTMSClientSink::~QTMSClientSink() |
31 { |
31 { |
32 delete iSink; |
32 delete iSink; |
33 } |
33 } |
34 |
34 |
35 gint QTMSClientSink::BufferProcessed(QTMSBuffer* buffer) |
35 gint QTMSClientSink::BufferProcessed(QTMSBuffer* buffer) |
36 { |
36 { |
37 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
37 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
38 if (iSink) |
38 if (iSink) { |
39 { |
|
40 TMSBuffer* buf(reinterpret_cast<TMSBuffer*> (buffer)); |
39 TMSBuffer* buf(reinterpret_cast<TMSBuffer*> (buffer)); |
41 status = static_cast<TMSClientSink*> (iSink)->BufferProcessed(buf); |
40 status = static_cast<TMSClientSink*> (iSink)->BufferProcessed(buf); |
42 } |
41 } |
43 return status; |
42 return status; |
44 } |
43 } |
45 |
44 |
46 gint QTMSClientSink::GetType(QTMSSinkType& sinktype) |
45 gint QTMSClientSink::GetType(QTMSSinkType& sinktype) |
47 { |
46 { |
48 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
47 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
49 if (iSink) |
48 if (iSink) { |
50 { |
|
51 status = static_cast<TMSClientSink*> (iSink)->GetType(sinktype); |
49 status = static_cast<TMSClientSink*> (iSink)->GetType(sinktype); |
52 } |
50 } |
53 return status; |
51 return status; |
54 } |
52 } |
55 |
53 |
56 // End of file |
54 // End of file |