source: src-qt4/EasyPBI/backend.h @ ebba654

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

Move over the EasyPBI-devel to src-qt4/EasyPBI

  • 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.