/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v0/system/com.deepin.daemon.PowerManager.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManagerAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManager.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-api-proxy/toolGenerate/qdbusxml2cpp/com.deepin.daemon.PowerManagerAdaptor.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 PowerManagerAdaptor
 */

PowerManagerAdaptor::PowerManagerAdaptor(QObject *parent)
    : QDBusAbstractAdaptor(parent)
{
    // constructor
    setAutoRelaySignals(true);
}

PowerManagerAdaptor::~PowerManagerAdaptor()
{
    // destructor
}

QString PowerManagerAdaptor::virtualMachineName() const
{
    // get the value of property VirtualMachineName
    return qvariant_cast< QString >(parent()->property("VirtualMachineName"));
}

bool PowerManagerAdaptor::CanHibernate()
{
    // handle method call com.deepin.daemon.PowerManager.CanHibernate
    bool can;
    QMetaObject::invokeMethod(parent(), "CanHibernate", Q_RETURN_ARG(bool, can));
    return can;
}

bool PowerManagerAdaptor::CanReboot()
{
    // handle method call com.deepin.daemon.PowerManager.CanReboot
    bool can;
    QMetaObject::invokeMethod(parent(), "CanReboot", Q_RETURN_ARG(bool, can));
    return can;
}

bool PowerManagerAdaptor::CanShutdown()
{
    // handle method call com.deepin.daemon.PowerManager.CanShutdown
    bool can;
    QMetaObject::invokeMethod(parent(), "CanShutdown", Q_RETURN_ARG(bool, can));
    return can;
}

bool PowerManagerAdaptor::CanSuspend()
{
    // handle method call com.deepin.daemon.PowerManager.CanSuspend
    bool can;
    QMetaObject::invokeMethod(parent(), "CanSuspend", Q_RETURN_ARG(bool, can));
    return can;
}

