KVIrc  4.9.2
DeveloperAPIs
AddonFunctions.h
Go to the documentation of this file.
1 #ifndef _ADDONFUNCTIONS_H_
2 #define _ADDONFUNCTIONS_H_
3 //=============================================================================
4 //
5 // File : AddonFunctions.h
6 // Creation date : Fri 02 May 2008 17:36:07 by Elvio Basello
7 //
8 // This file is part of the KVIrc IRC Client distribution
9 // Copyright (C) 2008 Elvio Basello <hellvis69 at netsons dot org>
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "kvi_settings.h"
28 #include "KviQString.h"
29 
30 #include <QWidget>
31 #include <QPixmap>
32 
33 #define KVI_CURRENT_ADDONS_ENGINE_VERSION "2.0.0"
34 
35 class AddonInfo
36 {
37 public:
38  QString szAuthor;
39  QString szName;
40  QString szVersion;
41  QString szDescription;
42  QString szMinVersion;
43  QString szImage;
44  QString szDirPath;
45  QString szSavePath;
46 };
47 
48 namespace AddonFunctions
49 {
50  bool checkDirTree(const QString & szDirPath, QString * pszError);
51  bool pack(AddonInfo & info, QString & szError);
52  bool notAValidAddonPackage(QString & szError);
53  bool installAddonPackage(const QString & szAddonPackageFileName, QString & szError, QWidget * pDialogParent = 0);
54  QString createRandomDir();
55 }
56 
57 #endif
bool pack(AddonInfo &info, QString &szError)
Definition: AddonFunctions.cpp:294
QString szAuthor
Definition: AddonFunctions.h:38
Definition: AddonFunctions.h:35
QString szName
Definition: AddonFunctions.h:39
QString szSavePath
Definition: AddonFunctions.h:45
bool installAddonPackage(const QString &szAddonPackageFileName, QString &szError, QWidget *pDialogParent)
Definition: AddonFunctions.cpp:57
QString szDescription
Definition: AddonFunctions.h:41
bool checkDirTree(const QString &szDirPath, QString *pszError)
Definition: AddonFunctions.cpp:272
QString szVersion
Definition: AddonFunctions.h:40
QString createRandomDir()
Definition: AddonFunctions.cpp:249
bool notAValidAddonPackage(QString &szError)
Definition: AddonFunctions.cpp:51
QString szMinVersion
Definition: AddonFunctions.h:42
QString szImage
Definition: AddonFunctions.h:43
This file contains compile time settings.
Helper functions for the QString class.
QString szDirPath
Definition: AddonFunctions.h:44