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

« back to all changes in this revision

Viewing changes to shreddbus/ShredAdaptor.cpp

  • 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
 * This file was generated by qdbusxml2cpp version 0.7
 
3
 * Command line was: qdbusxml2cpp shredInterfaceServer.xml -a ShredAdaptor
 
4
 *
 
5
 * qdbusxml2cpp is Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
 
6
 *
 
7
 * This is an auto-generated file.
 
8
 * Do not edit! All changes made to it will be lost.
 
9
 */
 
10
 
 
11
#include "ShredAdaptor.h"
 
12
#include <QtCore/QMetaObject>
 
13
#include <QtCore/QByteArray>
 
14
#include <QtCore/QList>
 
15
#include <QtCore/QMap>
 
16
#include <QtCore/QString>
 
17
#include <QtCore/QStringList>
 
18
#include <QtCore/QVariant>
 
19
 
 
20
/*
 
21
 * Implementation of adaptor class UkshredAdaptor
 
22
 */
 
23
 
 
24
UkshredAdaptor::UkshredAdaptor(QObject *parent)
 
25
    : QDBusAbstractAdaptor(parent)
 
26
{
 
27
    // constructor
 
28
    setAutoRelaySignals(true);
 
29
}
 
30
 
 
31
UkshredAdaptor::~UkshredAdaptor()
 
32
{
 
33
    // destructor
 
34
}
 
35
 
 
36
void UkshredAdaptor::exitDbus(const QString &data)
 
37
{
 
38
    // handle method call org.freedesktop.ukshred.exitDbus
 
39
    QMetaObject::invokeMethod(parent(), "exitDbus", Q_ARG(QString, data));
 
40
}
 
41
 
 
42
int UkshredAdaptor::shredFile(const QString &data)
 
43
{
 
44
    // handle method call org.freedesktop.ukshred.shredFile
 
45
    int response;
 
46
    QMetaObject::invokeMethod(parent(), "shredFile", Q_RETURN_ARG(int, response), Q_ARG(QString, data));
 
47
    return response;
 
48
}
 
49