Doomseeker
Wadseeker
Download
Tracker
Git
Docs
Main Page
Plugin API
Modules
Classes
Files
File List
src
core
configuration
serverpasswordsummary.h
1
//------------------------------------------------------------------------------
2
// serverpasswordsummary.h
3
//------------------------------------------------------------------------------
4
//
5
// This program is free software; you can redistribute it and/or
6
// modify it under the terms of the GNU General Public License
7
// as published by the Free Software Foundation; either version 2
8
// of the License, or (at your option) any later version.
9
//
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with this program; if not, write to the Free Software
17
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18
// 02110-1301, USA.
19
//
20
//------------------------------------------------------------------------------
21
// Copyright (C) 2014 "Zalewa" <zalewapl@gmail.com>
22
//------------------------------------------------------------------------------
23
#ifndef idA2EA6505_8AD6_40F7_AD19A3DFD8DBC961
24
#define idA2EA6505_8AD6_40F7_AD19A3DFD8DBC961
25
26
#include "dptr.h"
27
#include <QString>
28
#include <QVariant>
29
30
class
Server
;
31
class
ServerSummary
;
32
33
class
ServerPasswordType
34
{
35
public
:
36
static
const
QString CONNECT;
37
static
const
QString INGAME;
38
};
39
40
class
ServerPasswordSummary
41
{
42
public
:
43
static
ServerPasswordSummary
deserializeQVariant(
const
QVariant& v);
44
45
ServerPasswordSummary
();
55
ServerPasswordSummary
(
const
Server
*server,
const
QString &type);
56
~
ServerPasswordSummary
();
57
58
const
QString& address()
const
;
59
const
QString& game()
const
;
60
bool
isValid()
const
;
61
const
QString& name()
const
;
62
unsigned
short
port()
const
;
63
64
QVariant serializeQVariant()
const
;
65
66
const
ServerSummary
&serverSummary()
const
;
67
void
setServerSummary(
const
ServerSummary
&val);
68
72
void
setType(
const
QString &val);
73
81
float
similarity(
const
ServerPasswordSummary
& other)
const
;
82
83
QDateTime time()
const
;
84
88
const
QString &type()
const
;
96
const
QString &typeWithCompatibility()
const
;
97
98
private
:
99
DPtr<ServerPasswordSummary>
d;
100
};
101
102
#endif
Server
A representation of a server for a given game.
Definition:
server.h:93
ServerPasswordType
Definition:
serverpasswordsummary.h:33
ServerSummary
Definition:
serversummary.h:32
ServerPasswordSummary
Definition:
serverpasswordsummary.h:40
DPtr< ServerPasswordSummary >
Doomseeker © 2009-2024 The Doomseeker Team