-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathorg.deepin.dde.PowerManager1Adaptor.cpp
More file actions
67 lines (58 loc) · 1.9 KB
/
Copy pathorg.deepin.dde.PowerManager1Adaptor.cpp
File metadata and controls
67 lines (58 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* This file was generated by qdbusxml2cpp version 0.8
* Command line was: qdbusxml2cpp ./dde-session-shell/xml/org.deepin.dde.PowerManager1.xml -a ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor -i ./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1.h
*
* qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "./dde-session-shell/toolGenerate/qdbusxml2cpp/org.deepin.dde.PowerManager1Adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
/*
* Implementation of adaptor class PowerManager1Adaptor
*/
PowerManager1Adaptor::PowerManager1Adaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
}
PowerManager1Adaptor::~PowerManager1Adaptor()
{
// destructor
}
bool PowerManager1Adaptor::CanHibernate()
{
// handle method call org.deepin.dde.PowerManager1.CanHibernate
bool out0;
QMetaObject::invokeMethod(parent(), "CanHibernate", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PowerManager1Adaptor::CanReboot()
{
// handle method call org.deepin.dde.PowerManager1.CanReboot
bool out0;
QMetaObject::invokeMethod(parent(), "CanReboot", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PowerManager1Adaptor::CanShutdown()
{
// handle method call org.deepin.dde.PowerManager1.CanShutdown
bool out0;
QMetaObject::invokeMethod(parent(), "CanShutdown", Q_RETURN_ARG(bool, out0));
return out0;
}
bool PowerManager1Adaptor::CanSuspend()
{
// handle method call org.deepin.dde.PowerManager1.CanSuspend
bool out0;
QMetaObject::invokeMethod(parent(), "CanSuspend", Q_RETURN_ARG(bool, out0));
return out0;
}