diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2015-03-28 14:29:06 +0100 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2015-03-28 14:29:06 +0100 |
| commit | 0e0593acc8509b82425d91d2607c12871f03f786 (patch) | |
| tree | 5d9c0e8432e84029fc3c8dc1837d72053958e315 /ClientInfo.hpp | |
| parent | a80915a8bf0d853839a66887d35f7b380e4b09e7 (diff) | |
| download | manager-0e0593acc8509b82425d91d2607c12871f03f786.tar.gz manager-0e0593acc8509b82425d91d2607c12871f03f786.zip | |
scenarios.lst now supports --league, to activate league for a specific
scenario in the autohosting list.
Diffstat (limited to 'ClientInfo.hpp')
| -rw-r--r-- | ClientInfo.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ClientInfo.hpp b/ClientInfo.hpp index a9010eb..9c39c44 100644 --- a/ClientInfo.hpp +++ b/ClientInfo.hpp @@ -3,6 +3,7 @@ #include <QString> enum ClientInterface { + Auto = 0, Clonk = 1, IRC = 1 << 1, Management = 1 << 2 @@ -66,6 +67,13 @@ public: return ret; } + static inline ClientInfo autoClient() + { + ClientInfo ret; + ret.interface = Auto; + return ret; + } + inline bool operator==(const ClientInfo& other) { return other.interface == interface && other.nick == nick && (interface == Clonk ? other.pcName == pcName && other.CUID == CUID : true); @@ -78,6 +86,6 @@ public: inline QString toString() const { - return (!nick.isEmpty() ? nick + (interface == Clonk ? " (" + pcName + ")" : " (IRC)") : ""); + return interface == Auto ? "~auto~" : interface == Management ? management.name + " {CLI}" : (!nick.isEmpty() ? nick + (interface == Clonk ? " (" + pcName + ")" : " [IRC]") : ""); } }; |
