23 #ifndef DOOMSEEKER_CORE_SERVERAPI_SERVERID_H
24 #define DOOMSEEKER_CORE_SERVERAPI_SERVERID_H
26 #include <QHostAddress>
27 #include "plugins/engineplugin.h"
28 #include "serverapi/server.h"
52 static ServerRuntimeId fromServer(
const ServerPtr server) {
return fromServer(server.data()); }
62 : m_plugin(plugin), m_address(address), m_port(port) {}
66 return m_plugin == other.m_plugin
67 && m_address == other.m_address
68 && m_port == other.m_port;
73 return !(*
this == other);
76 const QHostAddress &address()
const {
return m_address; }
78 unsigned short port()
const {
return m_port; }
82 QHostAddress m_address;
83 unsigned short m_port;