commondrm/drmutility/src/qdrmutilitydmgreventhandler.cpp
author hgs
Thu, 24 Jun 2010 12:39:58 +0300
changeset 49 69d8e75812b7
permissions -rw-r--r--
201025_01


#include <download.h>

#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);
	}