source: src-qt4/EasyPBI/ModuleUtils.h @ 0c42827

releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 0c42827 was 0c42827, checked in by Ken Moore <ken@…>, 10 months ago

Update EasyPBI to 2.3:
Changes Include:
Add ability to build from ports directly again.
Add legacy port-build options to the GUI.
Add item to show current package compile-time options.
Add ability to create a new module from either ports/packages.
Fix a bug in the default wrapper script for 10.x PBI's (container path is /usr/local/ now when running)

  • 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, bool packageBuild = true);
33        static QStringList generateWrapperScriptTemplate();
34
35};
36
37#endif
Note: See TracBrowser for help on using the repository browser.