forked from blue/squawk
Client node now displays in all participants and presences, some additional checkups before querying empty clients, refactoring
This commit is contained in:
parent
76a9c5da0c
commit
21b40a9ccb
19 changed files with 407 additions and 317 deletions
|
@ -21,9 +21,10 @@
|
|||
|
||||
|
||||
#include "item.h"
|
||||
#include "shared/enums.h"
|
||||
#include "shared/icons.h"
|
||||
#include "shared/global.h"
|
||||
#include <shared/enums.h>
|
||||
#include <shared/icons.h>
|
||||
#include <shared/global.h>
|
||||
#include <shared/clientid.h>
|
||||
|
||||
#include <QIcon>
|
||||
#include <QDateTime>
|
||||
|
@ -51,6 +52,10 @@ public:
|
|||
QString getStatus() const;
|
||||
void setStatus(const QString& p_state);
|
||||
virtual QIcon getStatusIcon(bool big = false) const;
|
||||
|
||||
Shared::ClientId getClient() const;
|
||||
void setClient(const Shared::ClientId& id);
|
||||
QString getClientNode() const;
|
||||
|
||||
virtual void update(const QString& key, const QVariant& value);
|
||||
|
||||
|
@ -58,6 +63,7 @@ protected:
|
|||
Shared::Availability availability;
|
||||
QDateTime lastActivity;
|
||||
QString status;
|
||||
Shared::ClientId client;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue