forked from blue/squawk
Better way to store expanded elements in roster, several clean ups, translations
This commit is contained in:
parent
7e9eed2075
commit
d162494ec8
18 changed files with 874 additions and 252 deletions
|
@ -22,6 +22,7 @@
|
|||
#include <qabstractitemmodel.h>
|
||||
#include <deque>
|
||||
#include <map>
|
||||
#include <list>
|
||||
#include <QVector>
|
||||
|
||||
#include "shared/message.h"
|
||||
|
@ -86,9 +87,12 @@ public:
|
|||
QString getContactIconPath(const QString& account, const QString& jid, const QString& resource) const;
|
||||
Account* getAccount(const QString& name);
|
||||
const Account* getAccountConst(const QString& name) const;
|
||||
QModelIndex getAccountIndex(const QString& name);
|
||||
QModelIndex getGroupIndex(const QString& account, const QString& name);
|
||||
QModelIndex getContactIndex(const QString& account, const QString& jid, const QString& resource = "");
|
||||
QModelIndex getAccountIndex(const QString& name) const;
|
||||
QModelIndex getGroupIndex(const QString& account, const QString& name) const;
|
||||
QModelIndex getContactIndex(const QString& account, const QString& jid, const QString& resource = "") const;
|
||||
QModelIndex getIndexByPath(const std::list<QString>& path) const;
|
||||
std::list<QString> getItemPath(const QModelIndex& index) const;
|
||||
|
||||
bool markMessageAsRead(const ElId& elementId, const QString& messageId);
|
||||
void responseArchive(const QString& account, const QString& jid, const std::list<Shared::Message>& list, bool last);
|
||||
|
||||
|
@ -104,6 +108,7 @@ signals:
|
|||
void unreadMessagesCountChanged(int count);
|
||||
void unnoticedMessage(const QString& account, const Shared::Message& msg);
|
||||
void localPathInvalid(const QString& path);
|
||||
void addedElement(const std::list<QString>& path); //emits only on addition of Account, Contact, Room or Group. Presence and Participant are ignored
|
||||
|
||||
private slots:
|
||||
void onAccountDataChanged(const QModelIndex& tl, const QModelIndex& br, const QVector<int>& roles);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue