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

releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 0c42827 was 0c42827, checked in by Ken Moore <ken@…>, 6 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: 712 bytes
Line 
1#ifndef _BACKEND_H
2#define _BACKEND_H
3
4#include <QString>
5#include <QDebug>
6#include <QIcon>
7#include <QProcess>
8#include <QCoreApplication>
9#include <QFile>
10
11
12class Backend{
13public:
14  static QIcon icon(QString);
15  static QStringList getCmdOutput(QString cmd, QString dir = ""); //Run a command and return the output
16  //Package database query functions
17  static QStringList getPkgList();   //output format: <category>/<pkgname>
18  static QStringList getPkgInfo(QString pkgname); //output format: [<name>, <port>, <maintainer>, <website>]
19  static QStringList getPkgOpts(QString pkgname); //output format: <option>=<off/on>
20  //Port query functions
21  static QStringList getPortOpts(QString portPath);
22};
23
24#endif
25
Note: See TracBrowser for help on using the repository browser.