// 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_PRIVACYKEY_OBJECT
#define LQTG_TYPE_PRIVACYKEY_OBJECT

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

#include <QPointer>

class LIBQTELEGRAMSHARED_EXPORT PrivacyKeyObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(PrivacyKeyClassType)
    Q_PROPERTY(PrivacyKey core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum PrivacyKeyClassType {
        TypePrivacyKeyStatusTimestamp,
        TypePrivacyKeyChatInvite,
        TypePrivacyKeyPhoneCall
    };

    PrivacyKeyObject(const PrivacyKey &core, QObject *parent = 0);
    PrivacyKeyObject(QObject *parent = 0);
    virtual ~PrivacyKeyObject();

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

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

    PrivacyKeyObject &operator =(const PrivacyKey &b);
    bool operator ==(const PrivacyKey &b) const;

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

private Q_SLOTS:

private:
    PrivacyKey m_core;
};

#endif // LQTG_TYPE_PRIVACYKEY_OBJECT
