Doomseeker
Wadseeker
Download
Tracker
Git
Docs
Main Page
Plugin API
Related Pages
Modules
Classes
Files
File List
File Members
src
core
gui
dockBuddiesList.h
1
//------------------------------------------------------------------------------
2
// dockBuddiesList.h
3
//------------------------------------------------------------------------------
4
//
5
// This library is free software; you can redistribute it and/or
6
// modify it under the terms of the GNU Lesser General Public
7
// License as published by the Free Software Foundation; either
8
// version 2.1 of the License, or (at your option) any later version.
9
//
10
// This library 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 GNU
13
// Lesser General Public License for more details.
14
//
15
// You should have received a copy of the GNU Lesser General Public
16
// License along with this library; 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) 2009 Braden "Blzut3" Obrzut <admin@maniacsvault.net>
22
//------------------------------------------------------------------------------
23
24
#ifndef __DOCKBUDDIESLIST_H__
25
#define __DOCKBUDDIESLIST_H__
26
27
#include "dptr.h"
28
#include "
serverapi/serverptr.h
"
29
30
#include <QDialog>
31
#include <QDockWidget>
32
33
class
MasterManager
;
34
class
QAbstractButton;
35
class
QModelIndex;
36
37
class
DockBuddiesList
:
public
QDockWidget
38
{
39
Q_OBJECT
40
41
public
:
42
enum
ColumnId
43
{
44
BLCID_ID,
45
BLCID_BUDDY,
46
BLCID_LOCATION,
47
48
HOW_MANY_BUDDIESLIST_COLUMNS
49
};
50
51
DockBuddiesList
(QWidget *parent =
nullptr
);
52
~
DockBuddiesList
()
override
;
53
54
bool
hasBuddy(
const
ServerPtr &server);
55
56
public
slots:
57
void
addBuddy();
58
void
scan(
const
MasterManager
*master =
nullptr
);
59
60
signals:
61
void
joinServer(
const
ServerPtr &server);
62
void
scanCompleted();
63
64
protected
slots:
65
void
deleteBuddy();
66
void
followBuddy(
const
QModelIndex &index);
67
void
patternsListContextMenu(
const
QPoint &pos)
const
;
68
69
private
:
70
DPtr<DockBuddiesList>
d;
71
72
const
MasterManager
*masterClient;
73
bool
save;
74
};
75
76
class
AddBuddyDlg
:
public
QDialog
77
{
78
Q_OBJECT
79
80
public
:
81
AddBuddyDlg
(QWidget *parent =
nullptr
);
82
~
AddBuddyDlg
()
override
;
83
84
QRegExp pattern()
const
;
85
86
protected
slots:
87
void
buttonBoxClicked(QAbstractButton *button);
88
89
private
:
90
DPtr<AddBuddyDlg>
d;
91
};
92
93
#endif
/* __DOCKBUDDIESLIST_H__ */
AddBuddyDlg
Definition:
dockBuddiesList.h:76
DockBuddiesList
Definition:
dockBuddiesList.h:37
serverptr.h
MasterManager
Manager class for a number of MasterClient instances.
Definition:
mastermanager.h:40
DPtr< DockBuddiesList >
Doomseeker © 2009-2024 The Doomseeker Team