// 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_STORAGEFILETYPE_OBJECT
#define LQTG_TYPE_STORAGEFILETYPE_OBJECT

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

#include <QPointer>

class LIBQTELEGRAMSHARED_EXPORT StorageFileTypeObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(StorageFileTypeClassType)
    Q_PROPERTY(StorageFileType core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum StorageFileTypeClassType {
        TypeStorageFileUnknown,
        TypeStorageFilePartial,
        TypeStorageFileJpeg,
        TypeStorageFileGif,
        TypeStorageFilePng,
        TypeStorageFilePdf,
        TypeStorageFileMp3,
        TypeStorageFileMov,
        TypeStorageFileMp4,
        TypeStorageFileWebp
    };

    StorageFileTypeObject(const StorageFileType &core, QObject *parent = 0);
    StorageFileTypeObject(QObject *parent = 0);
    virtual ~StorageFileTypeObject();

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

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

    StorageFileTypeObject &operator =(const StorageFileType &b);
    bool operator ==(const StorageFileType &b) const;

Q_SIGNALS:
    void coreChanged();
    void classTypeChanged();

private Q_SLOTS:

private:
    StorageFileType m_core;
};

#endif // LQTG_TYPE_STORAGEFILETYPE_OBJECT
