1 // This file generated by libqtelegram-code-generator. 2 // You can download it from: https://github.com/Aseman-Land/libqtelegram-code-generator 3 // DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN 4 5 #ifndef LQTG_TYPE_CONTACT 6 #define LQTG_TYPE_CONTACT 7 8 #include "telegramtypeobject.h" 9 #include <QtGlobal> 10 11 class LIBQTELEGRAMSHARED_EXPORT Contact : public TelegramTypeObject 12 { 13 public: 14 enum ContactType { 15 typeContact = 0xf911c994 16 }; 17 18 Contact(ContactType classType = typeContact, InboundPkt *in = 0); 19 Contact(InboundPkt *in); 20 virtual ~Contact(); 21 22 void setMutual(bool mutual); 23 bool mutual() const; 24 25 void setUserId(qint32 userId); 26 qint32 userId() const; 27 28 void setClassType(ContactType classType); 29 ContactType classType() const; 30 31 bool fetch(InboundPkt *in); 32 bool push(OutboundPkt *out) const; 33 34 bool operator ==(const Contact &b); 35 36 private: 37 bool m_mutual; 38 qint32 m_userId; 39 ContactType m_classType; 40 }; 41 42 #endif // LQTG_TYPE_CONTACT 43