summaryrefslogtreecommitdiffstats
path: root/common/resourceconfig.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-07-08 09:57:40 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-07-08 09:57:40 +0200
commitc0a8d67cde03e33bf21e0f186f85d4c89c7ff572 (patch)
tree26e5ee4213faf334bc57f2fd9243bcbbee2a83de /common/resourceconfig.h
parent228a3380328535f30fcb187cae7db2415ec2d314 (diff)
downloadsink-c0a8d67cde03e33bf21e0f186f85d4c89c7ff572.tar.gz
sink-c0a8d67cde03e33bf21e0f186f85d4c89c7ff572.zip
Extracted resource config
Diffstat (limited to 'common/resourceconfig.h')
-rw-r--r--common/resourceconfig.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/resourceconfig.h b/common/resourceconfig.h
new file mode 100644
index 0000000..eda870f
--- /dev/null
+++ b/common/resourceconfig.h
@@ -0,0 +1,32 @@
1/*
2 * Copyright (C) 2014 Christian Mollekopf <chrigi_1@fastmail.fm>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20#pragma once
21
22#include <QList>
23#include <QByteArray>
24#include <QPair>
25
26class ResourceConfig
27{
28public:
29 static QList<QPair<QByteArray, QByteArray> > getResources();
30 static void addResource(const QByteArray &identifier, const QByteArray &type);
31 static void removeResource(const QByteArray &identifier);
32};