/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp -m -a scheduleradaptor -i ekos/scheduler/scheduler.h -l Ekos::Scheduler /chakra/desktop/kstars/src/kstars-3.4.2/kstars/org.kde.kstars.Ekos.Scheduler.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 "scheduleradaptor.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 SchedulerAdaptor
 */

SchedulerAdaptor::SchedulerAdaptor(Ekos::Scheduler *parent)
    : QDBusAbstractAdaptor(parent)
{
    // constructor
    setAutoRelaySignals(true);
}

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

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

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

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

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

bool SchedulerAdaptor::loadScheduler(const QString &fileURL)
{
    // handle method call org.kde.kstars.Ekos.Scheduler.loadScheduler
    return parent()->loadScheduler(fileURL);
}

void SchedulerAdaptor::resetAllJobs()
{
    // handle method call org.kde.kstars.Ekos.Scheduler.resetAllJobs
    parent()->resetAllJobs();
}

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

void SchedulerAdaptor::stop()
{
    // handle method call org.kde.kstars.Ekos.Scheduler.stop
    parent()->stop();
}


#include "scheduleradaptor.moc"
