// 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_INPUTFILE_OBJECT
#define LQTG_TYPE_INPUTFILE_OBJECT

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

#include <QPointer>

class LIBQTELEGRAMSHARED_EXPORT InputFileObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(InputFileClassType)
    Q_PROPERTY(qint64 id READ id WRITE setId NOTIFY idChanged)
    Q_PROPERTY(QString md5Checksum READ md5Checksum WRITE setMd5Checksum NOTIFY md5ChecksumChanged)
    Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
    Q_PROPERTY(qint32 parts READ parts WRITE setParts NOTIFY partsChanged)
    Q_PROPERTY(InputFile core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum InputFileClassType {
        TypeInputFile,
        TypeInputFileBig
    };

    InputFileObject(const InputFile &core, QObject *parent = 0);
    InputFileObject(QObject *parent = 0);
    virtual ~InputFileObject();

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

    void setMd5Checksum(const QString &md5Checksum);
    QString md5Checksum() const;

    void setName(const QString &name);
    QString name() const;

    void setParts(qint32 parts);
    qint32 parts() const;

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

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

    InputFileObject &operator =(const InputFile &b);
    bool operator ==(const InputFile &b) const;

Q_SIGNALS:
    void coreChanged();
    void classTypeChanged();
    void idChanged();
    void md5ChecksumChanged();
    void nameChanged();
    void partsChanged();

private Q_SLOTS:

private:
    InputFile m_core;
};

#endif // LQTG_TYPE_INPUTFILE_OBJECT
