Skip to content
Snippets Groups Projects
package.h 747 B
Newer Older
akiraohgaki's avatar
akiraohgaki committed
#ifndef UTILITY_PACKAGE_H
#define UTILITY_PACKAGE_H

#include <QObject>

namespace Utility {

class Package : public QObject
{
    Q_OBJECT

public:
    explicit Package(QObject *parent = 0);

akiraohgaki's avatar
akiraohgaki committed
    static bool process(const QString &program, const QStringList &arguments);
akiraohgaki's avatar
akiraohgaki committed
    static bool installProgram(const QString &path, const QString &targetPath);
    static bool installFile(const QString &path, const QString &targetPath);
akiraohgaki's avatar
akiraohgaki committed
    static bool installPlasmapkg(const QString &path, const QString &type = "plasmoid");
    static bool uninstallPlasmapkg(const QString &path, const QString &type = "plasmoid");
akiraohgaki's avatar
akiraohgaki committed
    static bool uncompressArchive(const QString &path, const QString &targetDir);
akiraohgaki's avatar
akiraohgaki committed
};

} // namespace Utility

#endif // UTILITY_PACKAGE_H