diff -r 50c53e893c3f -r 1221b68b8a5f commondrm/drmutility/src/qdrmutilitydmgreventhandler.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/commondrm/drmutility/src/qdrmutilitydmgreventhandler.cpp Tue Aug 31 15:29:38 2010 +0300 @@ -0,0 +1,22 @@ + +#include + +#include "qdrmutilitydmgreventhandler.h" +#include "drmutilitydmgrwrapper.h" + +QDrmUtilityDmgrEventHandler::QDrmUtilityDmgrEventHandler( CDrmUtilityDmgrWrapper& aDrmUtilityDmgrWrapper, WRT::Download& aDownload ) + : iDownload(aDownload), + iDrmUtilityDmgrWrapper(aDrmUtilityDmgrWrapper) + { + QT_TRAP_THROWING( + QObject::connect( &iDownload, + SIGNAL(downloadEvent(DownloadEvent*)), + this, SLOT(HandleDownloadEventL(DownloadEvent*)) + ) + ); + } + +void QDrmUtilityDmgrEventHandler::HandleDownloadEventL( WRT::DownloadEvent* aEvent ) + { + iDrmUtilityDmgrWrapper.HandleDownloadEventL(aEvent); + }