/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp -m -a dustcapadaptor -i ekos/auxiliary/dustcap.h -l Ekos::DustCap /chakra/desktop/kstars/src/kstars-3.4.3/kstars/org.kde.kstars.Ekos.DustCap.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 "dustcapadaptor.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 DustCapAdaptor
 */

DustCapAdaptor::DustCapAdaptor(Ekos::DustCap *parent)
    : QDBusAbstractAdaptor(parent)
{
    // constructor
    setAutoRelaySignals(true);
}

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

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

ISD::ParkStatus DustCapAdaptor::parkStatus() const
{
    // get the value of property parkStatus
    return qvariant_cast< ISD::ParkStatus >(parent()->property("parkStatus"));
}

ISD::DustCap::Status DustCapAdaptor::status() const
{
    // get the value of property status
    return qvariant_cast< ISD::DustCap::Status >(parent()->property("status"));
}

bool DustCapAdaptor::hasLight()
{
    // handle method call org.kde.kstars.Ekos.DustCap.hasLight
    return parent()->hasLight();
}

bool DustCapAdaptor::park()
{
    // handle method call org.kde.kstars.Ekos.DustCap.park
    return parent()->park();
}

bool DustCapAdaptor::setBrightness(int in0)
{
    // handle method call org.kde.kstars.Ekos.DustCap.setBrightness
    return parent()->setBrightness(in0);
}

bool DustCapAdaptor::setLightEnabled(bool in0)
{
    // handle method call org.kde.kstars.Ekos.DustCap.setLightEnabled
    return parent()->setLightEnabled(in0);
}

bool DustCapAdaptor::unpark()
{
    // handle method call org.kde.kstars.Ekos.DustCap.unpark
    return parent()->unpark();
}


#include "dustcapadaptor.moc"
