2
* Copyright (C) 2013 ~ 2014 National University of Defense Technology(NUDT) & Kylin Ltd.
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; version 3.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
#ifndef SHREDDISPATCHER_H
19
#define SHREDDISPATCHER_H
22
#include <QDBusInterface>
23
#include <QDBusConnection>
24
#include <QStringList>
26
#include <QProcessEnvironment>
28
#include <QFileDialog>
30
#include <QMessageBox>
32
class ShredDispatcher : public QObject
36
explicit ShredDispatcher(QObject *parent = 0);
38
QString call_dbus_method(QString context);
40
Q_INVOKABLE int shred_file_qt(const QString &data);
43
QDBusInterface *shrediface;
46
#endif // SHREDDISPATCHER_H