/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp -m -a powermanagementinhibitadaptor -c PowerManagementInhibitAdaptor -i powerdevilfdoconnector.h -l PowerDevil::FdoConnector /builds/chakra/packages/core/powerdevil/src/powerdevil-5.17.3/daemon/org.freedesktop.PowerManagement.Inhibit.xml
 *
 * qdbusxml2cpp is Copyright (C) 2019 The Qt Company Ltd.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#include "powermanagementinhibitadaptor.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 PowerManagementInhibitAdaptor
 */

PowerManagementInhibitAdaptor::PowerManagementInhibitAdaptor(PowerDevil::FdoConnector *parent)
    : QDBusAbstractAdaptor(parent)
{
    // constructor
    setAutoRelaySignals(true);
}

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

bool PowerManagementInhibitAdaptor::HasInhibit()
{
    // handle method call org.freedesktop.PowerManagement.Inhibit.HasInhibit
    return parent()->HasInhibit();
}

uint PowerManagementInhibitAdaptor::Inhibit(const QString &application, const QString &reason)
{
    // handle method call org.freedesktop.PowerManagement.Inhibit.Inhibit
    return parent()->Inhibit(application, reason);
}

void PowerManagementInhibitAdaptor::UnInhibit(uint cookie)
{
    // handle method call org.freedesktop.PowerManagement.Inhibit.UnInhibit
    parent()->UnInhibit(cookie);
}


#include "powermanagementinhibitadaptor.moc"
