2019-03-31 21:05:09 +00:00
|
|
|
#ifndef GLOBAL_H
|
|
|
|
#define GLOBAL_H
|
|
|
|
|
2019-04-02 15:46:18 +00:00
|
|
|
#include <QString>
|
|
|
|
#include <deque>
|
|
|
|
|
2019-03-31 21:05:09 +00:00
|
|
|
namespace Shared {
|
|
|
|
|
|
|
|
enum ConnectionState {
|
|
|
|
disconnected,
|
|
|
|
connecting,
|
|
|
|
connected,
|
|
|
|
error
|
|
|
|
};
|
|
|
|
|
2019-04-07 14:02:41 +00:00
|
|
|
enum Availability {
|
|
|
|
online,
|
|
|
|
away,
|
|
|
|
extendedAway,
|
|
|
|
busy,
|
|
|
|
chatty,
|
|
|
|
offline
|
|
|
|
};
|
|
|
|
|
|
|
|
static const Availability availabilityHighest = offline;
|
|
|
|
static const Availability availabilityLowest = online;
|
|
|
|
|
2019-04-02 15:46:18 +00:00
|
|
|
static const std::deque<QString> ConnectionStateNames = {"Disconnected", "Connecting", "Connected", "Error"};
|
|
|
|
static const std::deque<QString> ConnectionStateThemeIcons = {"network-disconnect", "view-refresh", "network-connect", "state-error"};
|
|
|
|
|
2019-03-31 21:05:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GLOBAL_H
|