forked from blue/squawk
offline avatars in mucs
This commit is contained in:
parent
29c7d31c89
commit
21c7d65027
16 changed files with 225 additions and 45 deletions
|
@ -69,8 +69,8 @@ public:
|
|||
void requestHistory(int count, const QString& before);
|
||||
void requestFromEmpty(int count, const QString& before);
|
||||
QString avatarPath(const QString& resource = "") const;
|
||||
QString folderPath() const;
|
||||
bool readAvatarInfo(Archive::AvatarInfo& target, const QString& resource = "") const;
|
||||
virtual bool setAvatar(const QByteArray& data, const QString& resource = "");
|
||||
virtual bool setAutoGeneratedAvatar(const QString& resource = "");
|
||||
virtual Shared::VCard handleResponseVCard(const QXmppVCardIq& card, const QString& resource);
|
||||
virtual void handlePresence(const QXmppPresence& pres) = 0;
|
||||
|
@ -89,6 +89,10 @@ public:
|
|||
const QString jid;
|
||||
const QString account;
|
||||
|
||||
protected:
|
||||
virtual bool setAvatar(const QByteArray& data, Archive::AvatarInfo& info, const QString& resource = "");
|
||||
virtual bool setAutoGeneratedAvatar(Archive::AvatarInfo& info, const QString& resource = "");
|
||||
|
||||
protected:
|
||||
QString name;
|
||||
ArchiveState archiveState;
|
||||
|
@ -103,7 +107,7 @@ protected:
|
|||
std::list<std::pair<int, QString>> requestCache;
|
||||
std::map<QString, Shared::Message> toCorrect;
|
||||
bool muc;
|
||||
|
||||
|
||||
private:
|
||||
void nextRequest();
|
||||
void performRequest(int count, const QString& before);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue