diff -r 7b58e65d61ee -r d141fc1ad77b qtms/src/qtmsclientsourceimpl.cpp --- a/qtms/src/qtmsclientsourceimpl.cpp Wed Jun 23 18:45:38 2010 +0300 +++ b/qtms/src/qtmsclientsourceimpl.cpp Tue Jul 06 14:48:59 2010 +0300 @@ -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