aboutsummaryrefslogtreecommitdiff
blob: d67558be924bfbab04e09cbad1da82d563ae04d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
    <one line to give the library's name and an idea of what it does.>
    Copyright (C) 2011  Θεόφιλος Ιντζόγλου <int.teo@gmail.com>

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/


#ifndef QPORTAGE_H
#define QPORTAGE_H

#include <QObject>
#include <QStringList>

class PackageProperties;

namespace CppPortage {

class portage : public QObject
{
    Q_OBJECT
    
    explicit portage(QObject* parent = 0);
    virtual ~portage();

    QStringList             versions(const QString&, bool);
    int                     hardMasked(const QString&, QStringList&, QStringList&);
    QStringList             installedFiles(const QString&);
    
    QString                 bestVersion(QStringList);
    QString                 bestEbuild(const QString&);
    QString                 depEbuild(const QString&);
    
    QStringList             maskingStatus(const QString&);
    QString                 maskingReason(const QString&);
    
    long int                packageSizeInt(const QString&);
    QString                 packageSizeString(const QString&);
    PackageProperties*      properties(const QString&);
    bool                    isOverlay(const QString&);
    QString                 overlay(const QString&);
    QString                 overlayNameFromPath(const QString&);
    QString                 overlayNameFromPkg(const QString&);
    QString                 path(const QString&, int);
    
    QStringList             resolvedPkgs();
    QStringList             unresolvedPkgs();
    QStringList             allNodes();
    QStringList             installedList();

}; // End of class

} // End of namespace

#endif // QPORTAGE_H