apm.h 1014 Bytes
Newer Older
Lukas Appelhans's avatar
Lukas Appelhans committed
1 2 3 4 5 6 7 8 9 10 11 12
/* This file is part of the Chakra project

   Copyright (C) 2011 Lukas Appelhans <l.appelhans@gmx.de>

   This program is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public
   License as published by the Free Software Foundation; either
   version 2 of the License, or (at your option) any later version.
*/
#ifndef APM_H
#define APM_H

13 14
#include <akabeibackend.h>

Lukas Appelhans's avatar
Lukas Appelhans committed
15
#include <QtCore/QObject>
16
#include <QStringList>
Lukas Appelhans's avatar
Lukas Appelhans committed
17

18 19 20
#include "cmdline.h"

class OperationManager : public QObject
Lukas Appelhans's avatar
Lukas Appelhans committed
21 22 23
{
Q_OBJECT
public:
24 25
    explicit OperationManager(APM::OperationType type, APM::OperationName operation, QHash<APM::OptionName, AkabeiOption> options, QStringList args, QObject* parent = 0);
    virtual ~OperationManager();
Lukas Appelhans's avatar
Lukas Appelhans committed
26
    
27 28 29 30
private slots:
    void statusChanged(Akabei::Backend::Status);
    void start();
    
31
private:
32 33 34
    APM::OperationType m_type;
    APM::OperationName m_operation;
    QHash<APM::OptionName, AkabeiOption> m_options;
35
    QStringList m_args;
Lukas Appelhans's avatar
Lukas Appelhans committed
36 37 38
};

#endif //APM:H