// 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_PHONECALLDISCARDREASON_OBJECT
#define LQTG_TYPE_PHONECALLDISCARDREASON_OBJECT

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

#include <QPointer>

class LIBQTELEGRAMSHARED_EXPORT PhoneCallDiscardReasonObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(PhoneCallDiscardReasonClassType)
    Q_PROPERTY(PhoneCallDiscardReason core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum PhoneCallDiscardReasonClassType {
        TypePhoneCallDiscardReasonMissed,
        TypePhoneCallDiscardReasonDisconnect,
        TypePhoneCallDiscardReasonHangup,
        TypePhoneCallDiscardReasonBusy
    };

    PhoneCallDiscardReasonObject(const PhoneCallDiscardReason &core, QObject *parent = 0);
    PhoneCallDiscardReasonObject(QObject *parent = 0);
    virtual ~PhoneCallDiscardReasonObject();

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

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

    PhoneCallDiscardReasonObject &operator =(const PhoneCallDiscardReason &b);
    bool operator ==(const PhoneCallDiscardReason &b) const;

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

private Q_SLOTS:

private:
    PhoneCallDiscardReason m_core;
};

#endif // LQTG_TYPE_PHONECALLDISCARDREASON_OBJECT
