/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp -m -a focusadaptor -i ekos/focus/focus.h -l Ekos::Focus /chakra/desktop/kstars/src/kstars-3.3.9/kstars/org.kde.kstars.Ekos.Focus.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 "focusadaptor.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 FocusAdaptor
 */

FocusAdaptor::FocusAdaptor(Ekos::Focus *parent)
    : QDBusAbstractAdaptor(parent)
{
    // constructor
    setAutoRelaySignals(true);
}

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

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

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

void FocusAdaptor::setCamera(const QString &value)
{
    // set the value of property camera
    parent()->setProperty("camera", QVariant::fromValue(value));
}

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

void FocusAdaptor::setFilter(const QString &value)
{
    // set the value of property filter
    parent()->setProperty("filter", QVariant::fromValue(value));
}

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

void FocusAdaptor::setFilterWheel(const QString &value)
{
    // set the value of property filterWheel
    parent()->setProperty("filterWheel", QVariant::fromValue(value));
}

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

void FocusAdaptor::setFocuser(const QString &value)
{
    // set the value of property focuser
    parent()->setProperty("focuser", QVariant::fromValue(value));
}

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

Ekos::FocusState FocusAdaptor::status() const
{
    // get the value of property status
    return qvariant_cast< Ekos::FocusState >(parent()->property("status"));
}

void FocusAdaptor::abort()
{
    // handle method call org.kde.kstars.Ekos.Focus.abort
    parent()->abort();
}

bool FocusAdaptor::canAutoFocus()
{
    // handle method call org.kde.kstars.Ekos.Focus.canAutoFocus
    return parent()->canAutoFocus();
}

void FocusAdaptor::capture()
{
    // handle method call org.kde.kstars.Ekos.Focus.capture
    parent()->capture();
}

bool FocusAdaptor::focusIn(int ms)
{
    // handle method call org.kde.kstars.Ekos.Focus.focusIn
    return parent()->focusIn(ms);
}

void FocusAdaptor::focusOut()
{
    // handle method call org.kde.kstars.Ekos.Focus.focusOut
    parent()->focusOut();
}

bool FocusAdaptor::focusOut(int ms)
{
    // handle method call org.kde.kstars.Ekos.Focus.focusOut
    return parent()->focusOut(ms);
}

void FocusAdaptor::resetFrame()
{
    // handle method call org.kde.kstars.Ekos.Focus.resetFrame
    parent()->resetFrame();
}

void FocusAdaptor::setAutoFocusParameters(int boxSize, int stepSize, int maxTravel, double tolerance)
{
    // handle method call org.kde.kstars.Ekos.Focus.setAutoFocusParameters
    parent()->setAutoFocusParameters(boxSize, stepSize, maxTravel, tolerance);
}

void FocusAdaptor::setAutoStarEnabled(bool enable)
{
    // handle method call org.kde.kstars.Ekos.Focus.setAutoStarEnabled
    parent()->setAutoStarEnabled(enable);
}

void FocusAdaptor::setAutoSubFrameEnabled(bool enable)
{
    // handle method call org.kde.kstars.Ekos.Focus.setAutoSubFrameEnabled
    parent()->setAutoSubFrameEnabled(enable);
}

void FocusAdaptor::setBinning(int binX, int binY)
{
    // handle method call org.kde.kstars.Ekos.Focus.setBinning
    parent()->setBinning(binX, binY);
}

void FocusAdaptor::setImageFilter(const QString &value)
{
    // handle method call org.kde.kstars.Ekos.Focus.setImageFilter
    parent()->setImageFilter(value);
}

void FocusAdaptor::start()
{
    // handle method call org.kde.kstars.Ekos.Focus.start
    parent()->start();
}


#include "focusadaptor.moc"
