Mercurial > bellaciao
diff contact.h @ 6:48045176d1c6
ContactT and Ji improvments
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 12 Aug 2011 22:08:37 +0200 |
parents | 220e5619bf87 |
children | 017925589d4c |
line wrap: on
line diff
--- a/contact.h Fri Aug 12 22:05:50 2011 +0200 +++ b/contact.h Fri Aug 12 22:08:37 2011 +0200 @@ -19,24 +19,29 @@ #ifndef CONTACT_H #define CONTACT_H +#include <QtGui> #include "jid.h" -#include <QtGui> - -typedef QHash<QString, QString> StringDict; class ContactT { public: ContactT(); ~ContactT(); + QList<QString> groups; Jid jid; - StringDict attributes; - QList<QString> groups; + void setProfile(const QString& profile); + const QString& getProfile() const; + void setAttributes(const QHash<QString, QString>& attr); + QHash<QString, QString> getAttributes() const; + const QString& getName() const; bool isConnected(); private: - bool connected; + bool m_connected; + bool m_presence_to, m_presence_from, m_presence_ask; + QString m_profile, m_name; + };