mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 09:59:59 +03:00
NOISSUE reorganize and document libraries
This commit is contained in:
parent
47e37635f5
commit
b6d455a02b
368 changed files with 159 additions and 275 deletions
28
api/logic/resources/ResourceHandler.cpp
Normal file
28
api/logic/resources/ResourceHandler.cpp
Normal file
|
|
@ -0,0 +1,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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue