source: src-qt4/EasyPBI/ModuleUtils.h @ c6b6d5e

releng/10.0releng/10.0.1releng/10.0.2
Last change on this file since c6b6d5e was c6b6d5e, checked in by Ken Moore <ken@…>, 7 months ago

Fix up the wrapper-script generator in EasyPBI

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#ifndef _EASYPBI_MODULE_UTILS_H
2#define _EASYPBI_MODULE_UTILS_H
3
4#include <QString>
5#include <QStringList>
6#include <QFile>
7#include <QDir>
8
9#include "PBIModule.h"
10
11class ModuleUtils{
12
13public:
14        //Valid/Recommended values
15        static QStringList validXdgCategories();
16        static QString recommendedXdgCategory(QString portCategory);
17        static QStringList validExternalLinkTypes();
18        static QString addExternalLinkType(QString current, QString newtype);
19        static QStringList validRepoCategories();
20        static QString recommendedRepoCategory(QString portCategory);
21        static QStringList validRepoTypes();
22       
23        //XDG Simplifications
24        static bool xdgExecUsesRoot(QString exec);
25        static QString pruneXdgLine(QString exec);
26        static QString generateXdgExec(QString shortExec, bool useRoot);
27        static QString generateXdgPath(QString shortline);
28
29        //General Module Utilities
30        static void compressModule(QString modulePath);
31        static PBIModule newModule(QString moduleDir, QString port, QString iconFile);
32        static QString generatePbiBuildCmd(QString confDir, QString outDir, QString sigFile);
33        static QStringList generateWrapperScriptTemplate();
34
35};
36
37#endif
Note: See TracBrowser for help on using the repository browser.