source: src-qt4/EasyPBI/backend.h @ 7a4b57b

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

Add the first backend functions for EasyPBI to pull information from the pkgng repo instead of requiring a local copy of the FreeBSD ports tree. Just missing the ability to read the pkg-plist within a package now.

  • Property mode set to 100644
File size: 600 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
10
11class Backend{
12public:
13  static QIcon icon(QString);
14  static QStringList getCmdOutput(QString cmd); //Run a command and return the output
15  //Package database query functions
16  static QStringList getPkgList();   //output format: <category>/<pkgname>
17  static QStringList getPkgInfo(QString pkgname); //output format: [<name>, <port>, <maintainer>, <website>]
18  static QStringList getPkgOpts(QString pkgname); //output format: <option>=<off/on>
19};
20
21#endif
22
Note: See TracBrowser for help on using the repository browser.