summaryrefslogtreecommitdiffstats
path: root/api/logic/resources/ResourceHandler.cpp
blob: 46a4422c3a5eeff2940a176ad00b21e033a90d7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "ResourceHandler.h"

#include "Resource.h"

void ResourceHandler::setResult(const QVariant &result)
{
	m_result = result;
	if (m_resource)
	{
		m_resource->reportResult();
	}
}

void ResourceHandler::setFailure(const QString &reason)
{
	if (m_resource)
	{
		m_resource->reportFailure(reason);
	}
}

void ResourceHandler::setProgress(const int progress)
{
	if (m_resource)
	{
		m_resource->reportProgress(progress);
	}
}