~kobe24-lixiang/youker-assistant/trunk-1

« back to all changes in this revision

Viewing changes to src/shreddispatcher.h

  • Committer: kobe
  • Date: 2014-09-29 02:58:26 UTC
  • Revision ID: xiangli@ubuntukylin.com-20140929025826-fowrbafgpyxbwahi
add shred system dbus model

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2013 ~ 2014 National University of Defense Technology(NUDT) & Kylin Ltd.
 
3
 * Author: Kobe Lee
 
4
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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/>.
 
16
 */
 
17
 
 
18
#ifndef SHREDDISPATCHER_H
 
19
#define SHREDDISPATCHER_H
 
20
 
 
21
#include <QObject>
 
22
#include <QDBusInterface>
 
23
#include <QDBusConnection>
 
24
#include <QStringList>
 
25
#include <QProcess>
 
26
#include <QProcessEnvironment>
 
27
#include <QtDBus>
 
28
#include <QFileDialog>
 
29
#include <QMap>
 
30
#include <QMessageBox>
 
31
 
 
32
class ShredDispatcher : public QObject
 
33
{
 
34
    Q_OBJECT
 
35
public:
 
36
    explicit ShredDispatcher(QObject *parent = 0);
 
37
    ~ShredDispatcher();
 
38
    QString call_dbus_method(QString context);
 
39
    void exit_qt();
 
40
    Q_INVOKABLE int shred_file_qt(const QString &data);
 
41
 
 
42
private:
 
43
    QDBusInterface *shrediface;
 
44
};
 
45
 
 
46
#endif // SHREDDISPATCHER_H