diff -r cf5481c2bc0b -r 69946d1824c4 videocollection/videocollectionwrapper/src/videodeleteworker.cpp --- a/videocollection/videocollectionwrapper/src/videodeleteworker.cpp Fri Apr 16 14:59:52 2010 +0300 +++ b/videocollection/videocollectionwrapper/src/videodeleteworker.cpp Mon May 03 12:32:50 2010 +0300 @@ -14,14 +14,16 @@ * Description: VideoDeleteWorker class implementation * */ -// INCLUDE FILES + +// Version : %version: % +// INCLUDE FILES #include + #include "videocollectioncommon.h" #include "videocollectionclient.h" #include "videodeleteworker.h" - - +#include "videocollectiontrace.h" // ================= MEMBER FUNCTIONS ======================= // @@ -47,6 +49,7 @@ mLastStatus(0), mLastStatusData(QVariant()) { + FUNC_LOG; } @@ -56,6 +59,7 @@ // VideoDeleteWorker::~VideoDeleteWorker() { + FUNC_LOG; if(mRequestWaitTimer && mRequestWaitTimer->isActive()) { mRequestWaitTimer->stop(); @@ -71,6 +75,7 @@ // void VideoDeleteWorker::requestDelete(const QList &indexList) { + FUNC_LOG; if(!mRequestWaitTimer) { mRequestWaitTimer = new QTimer(); @@ -95,6 +100,7 @@ // int VideoDeleteWorker::removeFromRequest(TMPXItemId &itemId) { + FUNC_LOG; mRemoveBuffer.remove(itemId); return mRemoveBuffer.count(); } @@ -105,6 +111,7 @@ // bool VideoDeleteWorker::isDeleting() { + FUNC_LOG; return mRemoveBuffer.count() ? true : false; } @@ -114,6 +121,9 @@ // void VideoDeleteWorker::updateStatus(int status, QVariant data) { + FUNC_LOG; + INFO_1("VideoDeleteWorker::updateStatus() status: %d", status); + // do not update invalid status if(status != VideoCollectionCommon::statusDeleteSucceed && status != VideoCollectionCommon::statusSingleDeleteFail && @@ -159,6 +169,7 @@ // int VideoDeleteWorker::getLastStatus(QVariant &data) { + FUNC_LOG; data = mLastStatusData; return mLastStatus; } @@ -169,6 +180,7 @@ // void VideoDeleteWorker::clearStatus() { + FUNC_LOG; mLastStatus = 0; mLastStatusData = QVariant(); } @@ -179,15 +191,16 @@ // void VideoDeleteWorker::continueSlot() { - if(!mRequestWaitTimer || !mRemoveBuffer.count()) - { - return; - } - if(!mRequestWaitTimer->isActive()) - { - mRequestWaitTimer->setSingleShot(true); - mRequestWaitTimer->start(0); - } + FUNC_LOG; + if(!mRequestWaitTimer || !mRemoveBuffer.count()) + { + return; + } + if(!mRequestWaitTimer->isActive()) + { + mRequestWaitTimer->setSingleShot(true); + mRequestWaitTimer->start(0); + } } // ----------------------------------------------------------------------------- @@ -196,6 +209,7 @@ // void VideoDeleteWorker::execDeleteBlockSlot() { + FUNC_LOG; if(!mRemoveBuffer.count()) { return; @@ -226,6 +240,7 @@ // void VideoDeleteWorker::flushAll() { + FUNC_LOG; if(!mRemoveBuffer.count()) { return; @@ -234,7 +249,5 @@ mCollectionClient.deleteVideos(&ids); mRemoveBuffer.clear(); } - - // End of file