Ignore:
Timestamp:
10/25/13 10:25:42 (12 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
59bd189e, 47cbe52
Parents:
f15ae5d
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/EasyPBI/backend.h

    r1620346 r7a4b57b  
    55#include <QDebug> 
    66#include <QIcon> 
     7#include <QProcess> 
     8#include <QCoreApplication> 
    79 
    810 
    911class Backend{ 
    10  
    11 private: 
    12  
    13  
    1412public: 
    1513  static QIcon icon(QString); 
    16  
    17  
     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> 
    1819}; 
    1920 
Note: See TracChangeset for help on using the changeset viewer.