diff options
Diffstat (limited to 'common/resourceconfig.cpp')
-rw-r--r-- | common/resourceconfig.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/resourceconfig.cpp b/common/resourceconfig.cpp index 68ac0bc..5270df6 100644 --- a/common/resourceconfig.cpp +++ b/common/resourceconfig.cpp | |||
@@ -49,6 +49,16 @@ void ResourceConfig::addResource(const QByteArray &identifier, const QByteArray | |||
49 | settings->sync(); | 49 | settings->sync(); |
50 | } | 50 | } |
51 | 51 | ||
52 | void ResourceConfig::setResourceType(const QByteArray &identifier, const QByteArray &type) | ||
53 | { | ||
54 | auto settings = getConfig("resources"); | ||
55 | settings->beginGroup(QString::fromLatin1(identifier)); | ||
56 | settings->setValue(Sink::ApplicationDomain::SinkResource::ResourceType::name, type); | ||
57 | settings->endGroup(); | ||
58 | settings->sync(); | ||
59 | } | ||
60 | |||
61 | |||
52 | void ResourceConfig::removeResource(const QByteArray &identifier) | 62 | void ResourceConfig::removeResource(const QByteArray &identifier) |
53 | { | 63 | { |
54 | auto settings = getConfig("resources"); | 64 | auto settings = getConfig("resources"); |