summaryrefslogtreecommitdiffstats
path: root/common/resourceconfig.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-22 16:35:09 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-22 16:35:09 +0100
commite8ab53258c044969146be385629a80afe801dee5 (patch)
tree170ded5835b8a60ef813964530aff7c79e52f4a0 /common/resourceconfig.h
parent50069f3c28b4130a9a81c25746d2c9d97c0356f5 (diff)
downloadsink-e8ab53258c044969146be385629a80afe801dee5.tar.gz
sink-e8ab53258c044969146be385629a80afe801dee5.zip
Turn operations of resources into a special case.
Resources don't live inside a resource context, and as such inherently are a special case. By also removing the option to manually specify the identifier, the commandline is a lot easier to use.
Diffstat (limited to 'common/resourceconfig.h')
-rw-r--r--common/resourceconfig.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/resourceconfig.h b/common/resourceconfig.h
index fec9f56..cc9cb94 100644
--- a/common/resourceconfig.h
+++ b/common/resourceconfig.h
@@ -28,6 +28,7 @@ class ResourceConfig
28{ 28{
29public: 29public:
30 static QMap<QByteArray, QByteArray> getResources(); 30 static QMap<QByteArray, QByteArray> getResources();
31 static QByteArray newIdentifier(const QByteArray &type);
31 static void addResource(const QByteArray &identifier, const QByteArray &type); 32 static void addResource(const QByteArray &identifier, const QByteArray &type);
32 static void removeResource(const QByteArray &identifier); 33 static void removeResource(const QByteArray &identifier);
33 static void clear(); 34 static void clear();