/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Source file was org.kde.kmail.kmail.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 KMAILADAPTOR_H
#define KMAILADAPTOR_H

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

/*
 * Adaptor class for interface org.kde.kmail.kmail
 */
class KmailAdaptor: public QDBusAbstractAdaptor
{
    Q_OBJECT
    Q_CLASSINFO("D-Bus Interface", "org.kde.kmail.kmail")
    Q_CLASSINFO("D-Bus Introspection", ""
"  <interface name=\"org.kde.kmail.kmail\">\n"
"    <method name=\"checkMail\"/>\n"
"    <method name=\"openReader\"/>\n"
"    <method name=\"pauseBackgroundJobs\"/>\n"
"    <method name=\"resumeBackgroundJobs\"/>\n"
"    <method name=\"stopNetworkJobs\"/>\n"
"    <method name=\"resumeNetworkJobs\"/>\n"
"    <method name=\"accounts\">\n"
"      <arg direction=\"out\" type=\"as\"/>\n"
"    </method>\n"
"    <method name=\"checkAccount\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"account\"/>\n"
"    </method>\n"
"    <method name=\"selectFolder\">\n"
"      <arg direction=\"out\" type=\"b\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"folder\"/>\n"
"    </method>\n"
"    <method name=\"canQueryClose\">\n"
"      <arg direction=\"out\" type=\"b\"/>\n"
"    </method>\n"
"    <method name=\"handleCommandLine\">\n"
"      <arg direction=\"out\" type=\"b\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"noArgsOpensReader\"/>\n"
"      <arg direction=\"in\" type=\"as\" name=\"args\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"workingDir\"/>\n"
"    </method>\n"
"    <method name=\"openComposer\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"to\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"cc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"bcc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"subject\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"body\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"hidden\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"messageFile\"/>\n"
"      <arg direction=\"in\" type=\"as\" name=\"attachmentPaths\"/>\n"
"      <arg direction=\"in\" type=\"as\" name=\"customHeaders\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"replyTo\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"inReplyTo\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"identity\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"htmlBody\"/>\n"
"    </method>\n"
"    <method name=\"openComposer\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"to\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"cc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"bcc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"subject\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"body\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"hidden\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"messageFile\"/>\n"
"      <arg direction=\"in\" type=\"as\" name=\"attachmentPaths\"/>\n"
"      <arg direction=\"in\" type=\"as\" name=\"customHeaders\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"replyTo\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"inReplyTo\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"identity\"/>\n"
"    </method>\n"
"    <method name=\"openComposer\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"to\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"cc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"bcc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"subject\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"body\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"hidden\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"messageFile\"/>\n"
"      <arg direction=\"in\" type=\"as\" name=\"attachmentPaths\"/>\n"
"      <arg direction=\"in\" type=\"as\" name=\"customHeaders\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"replyTo\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"inReplyTo\"/>\n"
"    </method>\n"
"    <method name=\"openComposer\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"to\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"cc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"bcc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"subject\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"body\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"hidden\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"messageFile\"/>\n"
"      <arg direction=\"in\" type=\"as\" name=\"attachmentPaths\"/>\n"
"      <arg direction=\"in\" type=\"as\" name=\"customHeaders\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"replyTo\"/>\n"
"    </method>\n"
"    <method name=\"openComposer\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"to\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"cc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"bcc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"subject\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"body\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"hidden\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"messageFile\"/>\n"
"      <arg direction=\"in\" type=\"as\" name=\"attachmentPaths\"/>\n"
"      <arg direction=\"in\" type=\"as\" name=\"customHeaders\"/>\n"
"    </method>\n"
"    <method name=\"openComposer\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"to\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"cc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"bcc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"subject\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"body\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"hidden\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"attachName\"/>\n"
"      <arg direction=\"in\" type=\"ay\" name=\"attachCte\"/>\n"
"      <arg direction=\"in\" type=\"ay\" name=\"attachData\"/>\n"
"      <arg direction=\"in\" type=\"ay\" name=\"attachType\"/>\n"
"      <arg direction=\"in\" type=\"ay\" name=\"attachSubType\"/>\n"
"      <arg direction=\"in\" type=\"ay\" name=\"attachParamAttr\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"attachParamValue\"/>\n"
"      <arg direction=\"in\" type=\"ay\" name=\"attachContDisp\"/>\n"
"      <arg direction=\"in\" type=\"ay\" name=\"attachCharset\"/>\n"
"      <arg direction=\"in\" type=\"u\" name=\"identity\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"htmlBody\"/>\n"
"    </method>\n"
"    <method name=\"openComposer\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"to\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"cc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"bcc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"subject\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"body\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"attachName\"/>\n"
"      <arg direction=\"in\" type=\"ay\" name=\"attachCte\"/>\n"
"      <arg direction=\"in\" type=\"ay\" name=\"attachData\"/>\n"
"      <arg direction=\"in\" type=\"ay\" name=\"attachType\"/>\n"
"      <arg direction=\"in\" type=\"ay\" name=\"attachSubType\"/>\n"
"      <arg direction=\"in\" type=\"ay\" name=\"attachParamAttr\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"attachParamValue\"/>\n"
"      <arg direction=\"in\" type=\"ay\" name=\"attachContDisp\"/>\n"
"      <arg direction=\"in\" type=\"ay\" name=\"attachCharset\"/>\n"
"      <arg direction=\"in\" type=\"u\" name=\"identity\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"htmlBody\"/>\n"
"    </method>\n"
"    <method name=\"openComposer\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"to\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"cc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"bcc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"subject\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"body\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"hidden\"/>\n"
"    </method>\n"
"    <method name=\"newMessage\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"to\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"cc\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"bcc\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"hidden\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"useFolderId\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"messageFile\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"attachURL\"/>\n"
"    </method>\n"
"    <method name=\"showMail\">\n"
"      <arg direction=\"out\" type=\"b\"/>\n"
"      <arg direction=\"in\" type=\"x\" name=\"serialNumber\"/>\n"
"    </method>\n"
"    <method name=\"viewMessage\">\n"
"      <arg direction=\"out\" type=\"i\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"messageFile\"/>\n"
"    </method>\n"
"    <method name=\"updateConfig\"/>\n"
"    <method name=\"showFolder\">\n"
"      <arg direction=\"in\" type=\"s\" name=\"collectionId\"/>\n"
"    </method>\n"
"    <method name=\"reloadFolderArchiveConfig\"/>\n"
"    <method name=\"replyMail\">\n"
"      <arg direction=\"out\" type=\"b\"/>\n"
"      <arg direction=\"in\" type=\"x\" name=\"serialNumber\"/>\n"
"      <arg direction=\"in\" type=\"b\" name=\"replyToAll\"/>\n"
"    </method>\n"
"  </interface>\n"
        "")
public:
    KmailAdaptor(KMKernel *parent);
    ~KmailAdaptor() override;

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

public: // PROPERTIES
public Q_SLOTS: // METHODS
    QStringList accounts();
    bool canQueryClose();
    void checkAccount(const QString &account);
    void checkMail();
    bool handleCommandLine(bool noArgsOpensReader, const QStringList &args, const QString &workingDir);
    void newMessage(const QString &to, const QString &cc, const QString &bcc, bool hidden, bool useFolderId, const QString &messageFile, const QString &attachURL);
    void openComposer(const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, bool hidden);
    void openComposer(const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, const QString &attachName, const QByteArray &attachCte, const QByteArray &attachData, const QByteArray &attachType, const QByteArray &attachSubType, const QByteArray &attachParamAttr, const QString &attachParamValue, const QByteArray &attachContDisp, const QByteArray &attachCharset, uint identity, bool htmlBody);
    void openComposer(const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, bool hidden, const QString &attachName, const QByteArray &attachCte, const QByteArray &attachData, const QByteArray &attachType, const QByteArray &attachSubType, const QByteArray &attachParamAttr, const QString &attachParamValue, const QByteArray &attachContDisp, const QByteArray &attachCharset, uint identity, bool htmlBody);
    void openComposer(const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, bool hidden, const QString &messageFile, const QStringList &attachmentPaths, const QStringList &customHeaders);
    void openComposer(const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, bool hidden, const QString &messageFile, const QStringList &attachmentPaths, const QStringList &customHeaders, const QString &replyTo);
    void openComposer(const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, bool hidden, const QString &messageFile, const QStringList &attachmentPaths, const QStringList &customHeaders, const QString &replyTo, const QString &inReplyTo);
    void openComposer(const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, bool hidden, const QString &messageFile, const QStringList &attachmentPaths, const QStringList &customHeaders, const QString &replyTo, const QString &inReplyTo, const QString &identity);
    void openComposer(const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, bool hidden, const QString &messageFile, const QStringList &attachmentPaths, const QStringList &customHeaders, const QString &replyTo, const QString &inReplyTo, const QString &identity, bool htmlBody);
    void openReader();
    void pauseBackgroundJobs();
    void reloadFolderArchiveConfig();
    bool replyMail(qlonglong serialNumber, bool replyToAll);
    void resumeBackgroundJobs();
    void resumeNetworkJobs();
    bool selectFolder(const QString &folder);
    void showFolder(const QString &collectionId);
    bool showMail(qlonglong serialNumber);
    void stopNetworkJobs();
    void updateConfig();
    int viewMessage(const QString &messageFile);
Q_SIGNALS: // SIGNALS
};

#endif
