// 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_AUTHSENTCODETYPE_OBJECT
#define LQTG_TYPE_AUTHSENTCODETYPE_OBJECT

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

#include <QPointer>

class LIBQTELEGRAMSHARED_EXPORT AuthSentCodeTypeObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(AuthSentCodeTypeClassType)
    Q_PROPERTY(qint32 length READ length WRITE setLength NOTIFY lengthChanged)
    Q_PROPERTY(QString pattern READ pattern WRITE setPattern NOTIFY patternChanged)
    Q_PROPERTY(AuthSentCodeType core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum AuthSentCodeTypeClassType {
        TypeAuthSentCodeTypeApp,
        TypeAuthSentCodeTypeSms,
        TypeAuthSentCodeTypeCall,
        TypeAuthSentCodeTypeFlashCall
    };

    AuthSentCodeTypeObject(const AuthSentCodeType &core, QObject *parent = 0);
    AuthSentCodeTypeObject(QObject *parent = 0);
    virtual ~AuthSentCodeTypeObject();

    void setLength(qint32 length);
    qint32 length() const;

    void setPattern(const QString &pattern);
    QString pattern() const;

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

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

    AuthSentCodeTypeObject &operator =(const AuthSentCodeType &b);
    bool operator ==(const AuthSentCodeType &b) const;

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

private Q_SLOTS:

private:
    AuthSentCodeType m_core;
};

#endif // LQTG_TYPE_AUTHSENTCODETYPE_OBJECT
