// 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_POSTADDRESS_OBJECT
#define LQTG_TYPE_POSTADDRESS_OBJECT

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

#include <QPointer>

class LIBQTELEGRAMSHARED_EXPORT PostAddressObject : public TelegramTypeQObject
{
    Q_OBJECT
    Q_ENUMS(PostAddressClassType)
    Q_PROPERTY(QString city READ city WRITE setCity NOTIFY cityChanged)
    Q_PROPERTY(QString countryIso2 READ countryIso2 WRITE setCountryIso2 NOTIFY countryIso2Changed)
    Q_PROPERTY(QString postCode READ postCode WRITE setPostCode NOTIFY postCodeChanged)
    Q_PROPERTY(QString state READ state WRITE setState NOTIFY stateChanged)
    Q_PROPERTY(QString streetLine1 READ streetLine1 WRITE setStreetLine1 NOTIFY streetLine1Changed)
    Q_PROPERTY(QString streetLine2 READ streetLine2 WRITE setStreetLine2 NOTIFY streetLine2Changed)
    Q_PROPERTY(PostAddress core READ core WRITE setCore NOTIFY coreChanged)
    Q_PROPERTY(quint32 classType READ classType WRITE setClassType NOTIFY classTypeChanged)

public:
    enum PostAddressClassType {
        TypePostAddress
    };

    PostAddressObject(const PostAddress &core, QObject *parent = 0);
    PostAddressObject(QObject *parent = 0);
    virtual ~PostAddressObject();

    void setCity(const QString &city);
    QString city() const;

    void setCountryIso2(const QString &countryIso2);
    QString countryIso2() const;

    void setPostCode(const QString &postCode);
    QString postCode() const;

    void setState(const QString &state);
    QString state() const;

    void setStreetLine1(const QString &streetLine1);
    QString streetLine1() const;

    void setStreetLine2(const QString &streetLine2);
    QString streetLine2() const;

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

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

    PostAddressObject &operator =(const PostAddress &b);
    bool operator ==(const PostAddress &b) const;

Q_SIGNALS:
    void coreChanged();
    void classTypeChanged();
    void cityChanged();
    void countryIso2Changed();
    void postCodeChanged();
    void stateChanged();
    void streetLine1Changed();
    void streetLine2Changed();

private Q_SLOTS:

private:
    PostAddress m_core;
};

#endif // LQTG_TYPE_POSTADDRESS_OBJECT
