/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp -m -a domeadaptor -i ekos/auxiliary/dome.h -l Ekos::Dome /chakra/desktop/kstars/src/kstars-3.5.0/kstars/org.kde.kstars.Ekos.Dome.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 "domeadaptor.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 DomeAdaptor
 */

DomeAdaptor::DomeAdaptor(Ekos::Dome *parent)
    : QDBusAbstractAdaptor(parent)
{
    // constructor
    setAutoRelaySignals(true);
}

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

double DomeAdaptor::azimuthPosition() const
{
    // get the value of property azimuthPosition
    return qvariant_cast< double >(parent()->property("azimuthPosition"));
}

void DomeAdaptor::setAzimuthPosition(double value)
{
    // set the value of property azimuthPosition
    parent()->setProperty("azimuthPosition", QVariant::fromValue(value));
}

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

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

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

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

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

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

bool DomeAdaptor::abort()
{
    // handle method call org.kde.kstars.Ekos.Dome.abort
    return parent()->abort();
}

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

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


#include "domeadaptor.moc"
