commondrm/drmutility/src/qdrmutilitydmgreventhandler.cpp
author hgs
Fri, 20 Aug 2010 11:00:50 +0300
changeset 69 5ce76b969369
parent 49 69d8e75812b7
permissions -rw-r--r--
201033_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);
	}