/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp -m -a compositingadaptor -i dbusinterface.h -l KWin::CompositorDBusInterface /usr/src/ports/kwin/kwin-5.4.3-1.i686/src/kwin-5.4.3/org.kde.kwin.Compositing.xml
 *
 * qdbusxml2cpp is Copyright (C) 2016 The Qt Company Ltd.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#include "compositingadaptor.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 CompositingAdaptor
 */

CompositingAdaptor::CompositingAdaptor(KWin::CompositorDBusInterface *parent)
    : QDBusAbstractAdaptor(parent)
{
    // constructor
    setAutoRelaySignals(true);
}

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

bool CompositingAdaptor::active() const
{
    // get the value of property active
    return qvariant_cast< bool >(parent()->property("active"));
}

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

bool CompositingAdaptor::compositingPossible() const
{
    // get the value of property compositingPossible
    return qvariant_cast< bool >(parent()->property("compositingPossible"));
}

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

bool CompositingAdaptor::openGLIsBroken() const
{
    // get the value of property openGLIsBroken
    return qvariant_cast< bool >(parent()->property("openGLIsBroken"));
}

QStringList CompositingAdaptor::supportedOpenGLPlatformInterfaces() const
{
    // get the value of property supportedOpenGLPlatformInterfaces
    return qvariant_cast< QStringList >(parent()->property("supportedOpenGLPlatformInterfaces"));
}

void CompositingAdaptor::resume()
{
    // handle method call org.kde.kwin.Compositing.resume
    parent()->resume();
}

void CompositingAdaptor::suspend()
{
    // handle method call org.kde.kwin.Compositing.suspend
    parent()->suspend();
}


#include "compositingadaptor.moc"
