aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/addon/AddonFunctions.h
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2015-09-15 01:10:11 +0200
committerGravatar Szymon Tomasz Stefanek2015-09-15 01:10:11 +0200
commit7337ca5d7f5c35cec949319069f6a3aa6b079d81 (patch)
treec86f5c669cac25135099be916120af69b2962413 /src/modules/addon/AddonFunctions.h
parentAdd the ability to not store the icons when saving a theme (diff)
downloadKVIrc-7337ca5d7f5c35cec949319069f6a3aa6b079d81.tar.gz
KVIrc-7337ca5d7f5c35cec949319069f6a3aa6b079d81.tar.bz2
KVIrc-7337ca5d7f5c35cec949319069f6a3aa6b079d81.zip
Add addon.pack to package addons manually. Improve addon support.
Diffstat (limited to 'src/modules/addon/AddonFunctions.h')
-rw-r--r--src/modules/addon/AddonFunctions.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/modules/addon/AddonFunctions.h b/src/modules/addon/AddonFunctions.h
index adcc455c2..b4de8b668 100644
--- a/src/modules/addon/AddonFunctions.h
+++ b/src/modules/addon/AddonFunctions.h
@@ -32,8 +32,23 @@
#define KVI_CURRENT_ADDONS_ENGINE_VERSION "2.0.0"
+class AddonInfo
+{
+public:
+ QString szAuthor;
+ QString szName;
+ QString szVersion;
+ QString szDescription;
+ QString szMinVersion;
+ QString szIcon;
+ QString szDirPath;
+ QString szSavePath;
+};
+
namespace AddonFunctions
{
+ bool checkDirTree(const QString &szDirPath,QString * pszError);
+ bool pack(AddonInfo &info,QString &szError);
bool notAValidAddonPackage(QString & szError);
bool installAddonPackage(const QString & szAddonPackageFileName, QString & szError, QWidget * pDialogParent = 0);
QString createRandomDir();