diff -r 1d92fd018dd4 -r 4a1905d205a2 qtms/src/qtmsclientsourceimpl.cpp --- a/qtms/src/qtmsclientsourceimpl.cpp Thu Jun 17 11:11:56 2010 -0500 +++ b/qtms/src/qtmsclientsourceimpl.cpp Fri Jun 25 17:07:52 2010 -0500 @@ -16,6 +16,7 @@ */ #include +#include #include #include #include "qtmsclientsourceimpl.h" @@ -32,8 +33,7 @@ RemoveObserver(*this); } -gint QTMSClientSourceImpl::Create(QTMSSource*& qsource, - TMS::TMSSource*& tmssource) +gint QTMSClientSourceImpl::Create(QTMSSource*& qsource, TMSSource*& tmssource) { gint ret(QTMS_RESULT_INSUFFICIENT_MEMORY); QTMSClientSourceImpl* self = new QTMSClientSourceImpl(); @@ -70,7 +70,8 @@ return ret; } -gint QTMSClientSourceImpl::RemoveObserver(TMS::TMSClientSourceObserver& obsrvr) +gint QTMSClientSourceImpl::RemoveObserver( + TMS::TMSClientSourceObserver& obsrvr) { gint ret(QTMS_RESULT_UNINITIALIZED_OBJECT); if (iSource) @@ -94,13 +95,15 @@ void QTMSClientSourceImpl::FillBuffer(TMS::TMSBuffer& buffer) { - emit QTMS::QTMSClientSource::FillBuffer(buffer); + emit QTMSClientSource::FillBuffer(reinterpret_cast (buffer)); } void QTMSClientSourceImpl::BufferProcessed(const TMS::TMSBuffer* buffer, gint reason) { - emit QTMS::QTMSClientSource::BufferProcessed(buffer, reason); + TMSBuffer* buf(const_cast (buffer)); + emit QTMSClientSource::BufferProcessed( + reinterpret_cast (buf), reason); } // End of file