// This file generated by libqtelegram-code-generator.
// You can download it from: https://github.com/Aseman-Land/libqtelegram-code-generator
// DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

#ifndef LQTG_TYPE_DOCUMENT_OBJECT
#define LQTG_TYPE_DOCUMENT_OBJECT

#include "telegramtypeqobject.h"
#include "telegram/types/document.h"

#include <QPointer>
#include "photosizeobject.h"

class LIBQTELEGRAMSHARED_EXPORT DocumentObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(DocumentClassType)
    Q_PROPERTY(qint64 accessHash READ accessHash WRITE setAccessHash NOTIFY accessHashChanged)
    Q_PROPERTY(QList<DocumentAttribute> attributes READ attributes WRITE setAttributes NOTIFY attributesChanged)
    Q_PROPERTY(qint32 date READ date WRITE setDate NOTIFY dateChanged)
    Q_PROPERTY(qint32 dcId READ dcId WRITE setDcId NOTIFY dcIdChanged)
    Q_PROPERTY(qint64 id READ id WRITE setId NOTIFY idChanged)
    Q_PROPERTY(QString mimeType READ mimeType WRITE setMimeType NOTIFY mimeTypeChanged)
    Q_PROPERTY(qint32 size READ size WRITE setSize NOTIFY sizeChanged)
    Q_PROPERTY(PhotoSizeObject* thumb READ thumb WRITE setThumb NOTIFY thumbChanged)
    Q_PROPERTY(qint32 version READ version WRITE setVersion NOTIFY versionChanged)
    Q_PROPERTY(Document core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum DocumentClassType {
        TypeDocumentEmpty,
        TypeDocument
    };

    DocumentObject(const Document &core, QObject *parent = 0);
    DocumentObject(QObject *parent = 0);
    virtual ~DocumentObject();

    void setAccessHash(qint64 accessHash);
    qint64 accessHash() const;

    void setAttributes(const QList<DocumentAttribute> &attributes);
    QList<DocumentAttribute> attributes() const;

    void setDate(qint32 date);
    qint32 date() const;

    void setDcId(qint32 dcId);
    qint32 dcId() const;

    void setId(qint64 id);
    qint64 id() const;

    void setMimeType(const QString &mimeType);
    QString mimeType() const;

    void setSize(qint32 size);
    qint32 size() const;

    void setThumb(PhotoSizeObject* thumb);
    PhotoSizeObject* thumb() const;

    void setVersion(qint32 version);
    qint32 version() const;

    void setClassType(quint32 classType);
    quint32 classType() const;

    void setCore(const Document &core);
    Document core() const;

    DocumentObject &operator =(const Document &b);
    bool operator ==(const Document &b) const;

Q_SIGNALS:
    void coreChanged();
    void classTypeChanged();
    void accessHashChanged();
    void attributesChanged();
    void dateChanged();
    void dcIdChanged();
    void idChanged();
    void mimeTypeChanged();
    void sizeChanged();
    void thumbChanged();
    void versionChanged();

private Q_SLOTS:
    void coreThumbChanged();

private:
    QPointer<PhotoSizeObject> m_thumb;
    Document m_core;
};

#endif // LQTG_TYPE_DOCUMENT_OBJECT
