/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Source file was org.kde.ktimetracker.ktimetracker.xml
 *
 * qdbusxml2cpp is Copyright (C) The Qt Company Ltd. and other contributors.
 *
 * This is an auto-generated file.
 * This file may have been hand-edited. Look for HAND-EDIT comments
 * before re-generating it.
 */

#ifndef MAINADAPTOR_H
#define MAINADAPTOR_H

#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "base/timetrackerwidget.h"
#include <QtCore/qcontainerfwd.h>

/*
 * Adaptor class for interface org.kde.ktimetracker.ktimetracker
 */
class MainAdaptor: public QDBusAbstractAdaptor
{
    Q_OBJECT
    Q_CLASSINFO("D-Bus Interface", "org.kde.ktimetracker.ktimetracker")
    Q_CLASSINFO("D-Bus Introspection", ""
"  <interface name=\"org.kde.ktimetracker.ktimetracker\">\n"
"    <method name=\"version\">\n"
"      <arg direction=\"out\" type=\"s\"/>\n"
"    </method>\n"
"    <method name=\"taskIdsFromName\">\n"
"      <arg direction=\"out\" type=\"as\" name=\"out\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskName\"/>\n"
"      <annotation value=\"QStringList\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
"    </method>\n"
"    <method name=\"newTask\"/>\n"
"    <method name=\"addTask\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskName\"/>\n"
"    </method>\n"
"    <method name=\"addSubTask\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskName\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskId\"/>\n"
"    </method>\n"
"    <method name=\"deleteTask\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskId\"/>\n"
"    </method>\n"
"    <method name=\"activeTasks\">\n"
"      <arg direction=\"out\" type=\"as\" name=\"out\"/>\n"
"      <annotation value=\"QStringList\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
"    </method>\n"
"    <method name=\"setPercentComplete\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskId\"/>\n"
"      <arg direction=\"in\" type=\"i\" name=\"perCent\"/>\n"
"    </method>\n"
"    <method name=\"bookTime\">\n"
"      <arg direction=\"out\" type=\"i\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskId\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"dateTime\"/>\n"
"      <arg direction=\"in\" type=\"i\" name=\"minutes\"/>\n"
"    </method>\n"
"    <method name=\"changeTime\">\n"
"      <arg direction=\"out\" type=\"i\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskId\"/>\n"
"      <arg direction=\"in\" type=\"i\" name=\"minutes\"/>\n"
"    </method>\n"
"    <method name=\"error\">\n"
"      <arg direction=\"out\" type=\"s\"/>\n"
"      <arg direction=\"in\" type=\"i\" name=\"errorCode\"/>\n"
"    </method>\n"
"    <method name=\"isIdleDetectionPossible\">\n"
"      <arg direction=\"out\" type=\"b\"/>\n"
"    </method>\n"
"    <method name=\"totalMinutesForTaskId\">\n"
"      <arg direction=\"out\" type=\"i\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskId\"/>\n"
"    </method>\n"
"    <method name=\"startTimerFor\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskId\"/>\n"
"    </method>\n"
"    <method name=\"stopTimerFor\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskId\"/>\n"
"    </method>\n"
"    <method name=\"startTimerForTaskName\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskName\"/>\n"
"      <arg direction=\"out\" type=\"b\"/>\n"
"    </method>\n"
"    <method name=\"stopTimerForTaskName\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskName\"/>\n"
"      <arg direction=\"out\" type=\"b\"/>\n"
"    </method>\n"
"    <method name=\"startNewSession\"/>\n"
"    <method name=\"stopAllTimersDBUS\"/>\n"
"    <method name=\"tasks\">\n"
"      <arg direction=\"out\" type=\"as\" name=\"out\"/>\n"
"      <annotation value=\"QStringList\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
"    </method>\n"
"    <method name=\"exportCSVFile\">\n"
"      <arg direction=\"out\" type=\"s\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"filename\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"from\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"to\"/>\n"
"      <arg direction=\"in\" type=\"i\" name=\"type\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"decimalMinutes\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"allTasks\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"delimiter\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"quote\"/>\n"
"    </method>\n"
"    <method name=\"importPlannerFile\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"filename\"/>\n"
"    </method>\n"
"    <method name=\"isActive\">\n"
"      <arg direction=\"out\" type=\"b\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskId\"/>\n"
"    </method>\n"
"    <method name=\"isTaskNameActive\">\n"
"      <arg direction=\"out\" type=\"b\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"taskName\"/>\n"
"    </method>\n"
"    <method name=\"saveAll\"/>\n"
"    <method name=\"quit\"/>\n"
"  </interface>\n"
        "")
public:
    MainAdaptor(TimeTrackerWidget *parent);
    ~MainAdaptor() override;

    inline TimeTrackerWidget *parent() const
    { return static_cast<TimeTrackerWidget *>(QObject::parent()); }

public: // PROPERTIES
public Q_SLOTS: // METHODS
    QStringList activeTasks();
    void addSubTask(const QString &taskName, const QString &taskId);
    void addTask(const QString &taskName);
    int bookTime(const QString &taskId, const QString &dateTime, int minutes);
    int changeTime(const QString &taskId, int minutes);
    void deleteTask(const QString &taskId);
    QString error(int errorCode);
    QString exportCSVFile(const QString &filename, const QString &from, const QString &to, int type, bool decimalMinutes, bool allTasks, const QString &delimiter, const QString &quote);
    void importPlannerFile(const QString &filename);
    bool isActive(const QString &taskId);
    bool isIdleDetectionPossible();
    bool isTaskNameActive(const QString &taskName);
    void newTask();
    void quit();
    void saveAll();
    void setPercentComplete(const QString &taskId, int perCent);
    void startNewSession();
    void startTimerFor(const QString &taskId);
    bool startTimerForTaskName(const QString &taskName);
    void stopAllTimersDBUS();
    void stopTimerFor(const QString &taskId);
    bool stopTimerForTaskName(const QString &taskName);
    QStringList taskIdsFromName(const QString &taskName);
    QStringList tasks();
    int totalMinutesForTaskId(const QString &taskId);
    QString version();
Q_SIGNALS: // SIGNALS
};

#endif
