Debian Codegraph @

src/connectionwidget.cpp

raw symbols SCIP
1 /***************************************************************************
2 * Copyright (C) 2009- by The qGo Project *
3 * *
4 * This file is part of qGo. *
5 * *
6 * qGo is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, see <http://www.gnu.org/licenses/> *
18 * or write to the Free Software Foundation, Inc., *
19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
20 ***************************************************************************/
21 #include "connectionwidget.h"cxx . . $ `<file>/src/connectionwidget.h`/
22 #include "ui_connectionwidget.h"cxx . . $ `<file>/build/ui/ui_connectionwidget.h`/
23
24 #include "defines.h"cxx . . $ `<file>/src/defines.h`/
25 #include "network/networkconnection.h"cxx . . $ `<file>/src/network/networkconnection.h`/
26 #include "network/talk.h"cxx . . $ `<file>/src/network/talk.h`/
27 #include "network/gamedialog.h"cxx . . $ `<file>/src/network/gamedialog.h`/
28 #include "listviews.h"cxx . . $ `<file>/src/listviews.h`/
29 #include "playergamelistings.h"cxx . . $ `<file>/src/network/playergamelistings.h`/ //FIXME should be moved out
30 #include "network/consoledispatch.h"cxx . . $ `<file>/src/network/consoledispatch.h`/ //FIXME for channel chat
31 #include "messages.h"cxx . . $ `<file>/src/network/messages.h`/
32 #include "room.h"cxx . . $ `<file>/src/network/room.h`/
33 #include "friendslistdialog.h"cxx . . $ `<file>/src/network/friendslistdialog.h`/
34
35 ConnectionWidgetcxx . . $ ConnectionWidget#::ConnectionWidgetcxx . . $ ConnectionWidget#ConnectionWidget(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent) :
36 QWidgetcxx . . $ QWidget#QWidget(872e7b0c281abd8d).(parent),
37 uicxx . . $ ConnectionWidget#ui.(new Uicxx . . $ Ui/::ConnectionWidgetcxx . . $ Ui/ConnectionWidget#)
38 {
39 connectioncxx . . $ ConnectionWidget#connection. = 0;
40 roomcxx . . $ ConnectionWidget#room. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
41 uicxx . . $ ConnectionWidget#ui.->setupUicxx . . $ Ui_ConnectionWidget#setupUi(108f35f7aa7f3cf9).(this);
42 connectionWidgetcxx . . $ connectionWidget. = this; // FIXME: remove this global variable
43 gamesListProxyModelcxx . . $ ConnectionWidget#gamesListProxyModel. = new GamesListSortFilterProxyModelcxx . . $ GamesListSortFilterProxyModel#GamesListSortFilterProxyModel(749de1b6ae65bddd).(this);
44 uicxx . . $ ConnectionWidget#ui.->gamesViewcxx . . $ Ui_ConnectionWidget#gamesView.->setModelcxx . . $ QTableView#setModel(c6e1f1e42522b780).(gamesListProxyModelcxx . . $ ConnectionWidget#gamesListProxyModel.);
45 playerListProxyModelcxx . . $ ConnectionWidget#playerListProxyModel. = new PlayerListSortFilterProxyModelcxx . . $ PlayerListSortFilterProxyModel#PlayerListSortFilterProxyModel(749de1b6ae65bddd).(this);
46 uicxx . . $ ConnectionWidget#ui.->playerViewcxx . . $ Ui_ConnectionWidget#playerView.->setModelcxx . . $ QTableView#setModel(c6e1f1e42522b780).(playerListProxyModelcxx . . $ ConnectionWidget#playerListProxyModel.);
47 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->filterOpenCheckBoxcxx . . $ Ui_ConnectionWidget#filterOpenCheckBox., &QCheckBoxcxx . . $ QCheckBox#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., playerListProxyModelcxx . . $ ConnectionWidget#playerListProxyModel., &PlayerListSortFilterProxyModelcxx . . $ PlayerListSortFilterProxyModel#::setFilterOpencxx . . $ PlayerListSortFilterProxyModel#setFilterOpen(b45ddcbc8423892c).);
48 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->filterFriendsCheckBoxcxx . . $ Ui_ConnectionWidget#filterFriendsCheckBox., &QCheckBoxcxx . . $ QCheckBox#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., playerListProxyModelcxx . . $ ConnectionWidget#playerListProxyModel., &PlayerListSortFilterProxyModelcxx . . $ PlayerListSortFilterProxyModel#::setFilterFriendscxx . . $ PlayerListSortFilterProxyModel#setFilterFriends(b45ddcbc8423892c).);
49 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->filterWatchesCheckBoxcxx . . $ Ui_ConnectionWidget#filterWatchesCheckBox., &QCheckBoxcxx . . $ QCheckBox#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., playerListProxyModelcxx . . $ ConnectionWidget#playerListProxyModel., &PlayerListSortFilterProxyModelcxx . . $ PlayerListSortFilterProxyModel#::setFilterFanscxx . . $ PlayerListSortFilterProxyModel#setFilterFans(b45ddcbc8423892c).);
50 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->filterWatchesCheckBoxcxx . . $ Ui_ConnectionWidget#filterWatchesCheckBox., &QCheckBoxcxx . . $ QCheckBox#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., gamesListProxyModelcxx . . $ ConnectionWidget#gamesListProxyModel., &GamesListSortFilterProxyModelcxx . . $ GamesListSortFilterProxyModel#::setFilterWatchcxx . . $ GamesListSortFilterProxyModel#setFilterWatch(b45ddcbc8423892c).);
51 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->playerListFilterLineEditcxx . . $ Ui_ConnectionWidget#playerListFilterLineEdit., &QLineEditcxx . . $ QLineEdit#::textChangedcxx . . $ QLineEdit#textChanged(3520e46b33348bf6)., playerListProxyModelcxx . . $ ConnectionWidget#playerListProxyModel., &PlayerListSortFilterProxyModelcxx . . $ PlayerListSortFilterProxyModel#::setFilterWildcardcxx . . $ QSortFilterProxyModel#setFilterWildcard(3520e46b33348bf6).);
52
53 QSettingscxx . . $ QSettings# settingscxx . . $ QSettings#QSettings(749de1b6ae65bddd).;
54 QVariantcxx . . $ QVariant# var = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("LOWRANKFILTER"cxx . . $ QString#QString(85c52e162fed56f9).);
55 uicxx . . $ ConnectionWidget#ui.->playerViewcxx . . $ Ui_ConnectionWidget#playerView.->setAlternatingRowColorscxx . . $ QAbstractItemView#setAlternatingRowColors(b45ddcbc8423892c).(settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("ALTERNATELISTCOLORS"cxx . . $ QString#QString(85c52e162fed56f9).,QVariantcxx . . $ QVariant#QVariant(b45ddcbc8423892c).(false)).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).());
56 uicxx . . $ ConnectionWidget#ui.->gamesViewcxx . . $ Ui_ConnectionWidget#gamesView.->setAlternatingRowColorscxx . . $ QAbstractItemView#setAlternatingRowColors(b45ddcbc8423892c).(settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("ALTERNATELISTCOLORS"cxx . . $ QString#QString(85c52e162fed56f9).,QVariantcxx . . $ QVariant#QVariant(b45ddcbc8423892c).(false)).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).());
57 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox., QOverloadcxx . . $ QOverload#<int>::ofcxx . . $ QOverload#of(adaf930115d2ed26).(&QComboBoxcxx . . $ QComboBox#::currentIndexChangedcxx . . $ QComboBox#currentIndexChanged(d4f767463ce0a6b3).), this, &ConnectionWidgetcxx . . $ ConnectionWidget#::setRankSpreadViewcxx . . $ ConnectionWidget#setRankSpreadView(49f6e7a06ebc5aa8).);
58 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox., QOverloadcxx . . $ QOverload#<int>::ofcxx . . $ QOverload#of(adaf930115d2ed26).(&QComboBoxcxx . . $ QComboBox#::currentIndexChangedcxx . . $ QComboBox#currentIndexChanged(d4f767463ce0a6b3).), this, &ConnectionWidgetcxx . . $ ConnectionWidget#::setRankSpreadViewcxx . . $ ConnectionWidget#setRankSpreadView(49f6e7a06ebc5aa8).);
59 if(var !=cxx . . $ QVariant#`operator!=`(d03696648ee9d662). QVariantcxx . . $ QVariant#QVariant(ced63f7c635d850d).())
60 {
61 uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(var.toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).());
62 uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("HIGHRANKFILTER"cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).());
63 } else {
64 uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0);
65 uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(0);
66 }
67
68 uicxx . . $ ConnectionWidget#ui.->filterOpenCheckBoxcxx . . $ Ui_ConnectionWidget#filterOpenCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("OPENFILTER"cxx . . $ QString#QString(85c52e162fed56f9).).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).());
69 uicxx . . $ ConnectionWidget#ui.->filterFriendsCheckBoxcxx . . $ Ui_ConnectionWidget#filterFriendsCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("FRIENDSFILTER"cxx . . $ QString#QString(85c52e162fed56f9).).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).());
70 uicxx . . $ ConnectionWidget#ui.->filterWatchesCheckBoxcxx . . $ Ui_ConnectionWidget#filterWatchesCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("WATCHESFILTER"cxx . . $ QString#QString(85c52e162fed56f9).).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).());
71
72 uicxx . . $ ConnectionWidget#ui.->changeServerButtoncxx . . $ Ui_ConnectionWidget#changeServerButton.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
73 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->changeServerButtoncxx . . $ Ui_ConnectionWidget#changeServerButton., &QPushButtoncxx . . $ QPushButton#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, &ConnectionWidgetcxx . . $ ConnectionWidget#::slot_changeServercxx . . $ ConnectionWidget#slot_changeServer(49f6e7a06ebc5aa8).);
74
75 uicxx . . $ ConnectionWidget#ui.->createRoomButtoncxx . . $ Ui_ConnectionWidget#createRoomButton.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
76 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->createRoomButtoncxx . . $ Ui_ConnectionWidget#createRoomButton., &QPushButtoncxx . . $ QPushButton#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, &ConnectionWidgetcxx . . $ ConnectionWidget#::slot_createRoomcxx . . $ ConnectionWidget#slot_createRoom(49f6e7a06ebc5aa8).);
77
78 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->connectButtoncxx . . $ Ui_ConnectionWidget#connectButton., &QPushButtoncxx . . $ QPushButton#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, &ConnectionWidgetcxx . . $ ConnectionWidget#::disconnectFromServercxx . . $ ConnectionWidget#disconnectFromServer(49f6e7a06ebc5aa8).);
79
80 /* We need to integrate this room list with the new room code FIXME */
81 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->roomComboBoxcxx . . $ Ui_ConnectionWidget#roomComboBox., QOverloadcxx . . $ QOverload#<const QString&>::ofcxx . . $ QOverload#of(10f12c8ee2ee35dd).(&QComboBoxcxx . . $ QComboBox#::currentIndexChangedcxx . . $ QComboBox#currentIndexChanged(3520e46b33348bf6).), this, &ConnectionWidgetcxx . . $ ConnectionWidget#::slot_roomListClickedcxx . . $ ConnectionWidget#slot_roomListClicked(3520e46b33348bf6).);
82 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->channelComboBoxcxx . . $ Ui_ConnectionWidget#channelComboBox., QOverloadcxx . . $ QOverload#<const QString&>::ofcxx . . $ QOverload#of(10f12c8ee2ee35dd).(&QComboBoxcxx . . $ QComboBox#::currentIndexChangedcxx . . $ QComboBox#currentIndexChanged(3520e46b33348bf6).), this, &ConnectionWidgetcxx . . $ ConnectionWidget#::slot_channelListClickedcxx . . $ ConnectionWidget#slot_channelListClicked(3520e46b33348bf6).);
83
84 //creates the connection code
85 seekMenucxx . . $ ConnectionWidget#seekMenu. = new QMenucxx . . $ QMenu#QMenu(108f35f7aa7f3cf9).();
86 uicxx . . $ ConnectionWidget#ui.->seekToolButtoncxx . . $ Ui_ConnectionWidget#seekToolButton.->setMenucxx . . $ QToolButton#setMenu(cb52c12b49e9b51b).(seekMenucxx . . $ ConnectionWidget#seekMenu.);
87
88 connectcxx . . $ QObject#connect(835f87066c895669).(seekMenucxx . . $ ConnectionWidget#seekMenu., &QMenucxx . . $ QMenu#::triggeredcxx . . $ QMenu#triggered(92b1e80c0a7f1406)., this, QOverloadcxx . . $ QOverload#<QAction*>::ofcxx . . $ QOverload#of(5dd2fb42ab9045a4).(&ConnectionWidgetcxx . . $ ConnectionWidget#::slot_seekcxx . . $ ConnectionWidget#slot_seek(92b1e80c0a7f1406).));
89 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->seekToolButtoncxx . . $ Ui_ConnectionWidget#seekToolButton., &QToolButtoncxx . . $ QToolButton#::toggledcxx . . $ QAbstractButton#toggled(b45ddcbc8423892c)., this, QOverloadcxx . . $ QOverload#<bool>::ofcxx . . $ QOverload#of(4f3c502bd41b74d9).(&ConnectionWidgetcxx . . $ ConnectionWidget#::slot_seekcxx . . $ ConnectionWidget#slot_seek(b45ddcbc8423892c).));
90
91 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->commandLineComboBoxcxx . . $ Ui_ConnectionWidget#commandLineComboBox., QOverloadcxx . . $ QOverload#<const QString&>::ofcxx . . $ QOverload#of(10f12c8ee2ee35dd).(&QComboBoxcxx . . $ QComboBox#::activatedcxx . . $ QComboBox#activated(3520e46b33348bf6).), this, &ConnectionWidgetcxx . . $ ConnectionWidget#::slot_cmdactivatedcxx . . $ ConnectionWidget#slot_cmdactivated(3520e46b33348bf6).);
92
93 // connecting the server tab buttons
94 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->quietCheckBoxcxx . . $ Ui_ConnectionWidget#quietCheckBox., &QCheckBoxcxx . . $ QCheckBox#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, &ConnectionWidgetcxx . . $ ConnectionWidget#::slot_cbquietcxx . . $ ConnectionWidget#slot_cbquiet(49f6e7a06ebc5aa8).);
95 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->openCheckBoxcxx . . $ Ui_ConnectionWidget#openCheckBox., &QCheckBoxcxx . . $ QCheckBox#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, &ConnectionWidgetcxx . . $ ConnectionWidget#::slot_cbopencxx . . $ ConnectionWidget#slot_cbopen(49f6e7a06ebc5aa8).);
96 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->lookingCheckBoxcxx . . $ Ui_ConnectionWidget#lookingCheckBox., &QCheckBoxcxx . . $ QCheckBox#::clickedcxx . . $ QAbstractButton#clicked(b45ddcbc8423892c)., this, &ConnectionWidgetcxx . . $ ConnectionWidget#::setLookingcxx . . $ ConnectionWidget#setLooking(b45ddcbc8423892c).);
97 connectcxx . . $ QObject#connect(835f87066c895669).(uicxx . . $ ConnectionWidget#ui.->editFriendsWatchesButtoncxx . . $ Ui_ConnectionWidget#editFriendsWatchesButton., &QPushButtoncxx . . $ QPushButton#::pressedcxx . . $ QAbstractButton#pressed(49f6e7a06ebc5aa8)., this, &ConnectionWidgetcxx . . $ ConnectionWidget#::slot_editFriendsWatchesListcxx . . $ ConnectionWidget#slot_editFriendsWatchesList(49f6e7a06ebc5aa8).);
98
99 bool ok;
100 int sort_column, sort_order_int;
101 Qtcxx . . $ Qt/::SortOrdercxx . . $ Qt/SortOrder# sort_order;
102 sort_column = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("PlayerListSortColumn"cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(&ok);
103 if ((sort_column <= 0) || (sort_column >= P_TOTALCOLUMNScxx . . $ P_TOTALCOLUMNS.) || (!ok))
104 sort_column = PC_NAMEcxx . . $ PC_NAME.; // default value
105 sort_order_int = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("PlayerListSortOrder"cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(&ok);
106 if ((sort_order_int < 0) || (sort_order_int > 1) || (!ok))
107 sort_order = Qtcxx . . $ Qt/::AscendingOrdercxx . . $ Qt/AscendingOrder.; // default value
108 else
109 sort_order = static_cast<Qtcxx . . $ Qt/::SortOrdercxx . . $ Qt/SortOrder#>(sort_order_int);
110 uicxx . . $ ConnectionWidget#ui.->playerViewcxx . . $ Ui_ConnectionWidget#playerView.->sortByColumncxx . . $ QTableView#sortByColumn(11168df8d4e8286d).(sort_column,sort_order);
111
112 sort_column = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("GamesListSortColumn"cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(&ok);
113 if ((sort_column <= 0) || (sort_column >= G_TOTALCOLUMNScxx . . $ G_TOTALCOLUMNS.) || (!ok))
114 sort_column = GC_IDcxx . . $ GC_ID.; // default value
115 sort_order_int = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("GamesListSortOrder"cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).(&ok);
116 if ((sort_order_int < 0) || (sort_order_int > 1) || (!ok))
117 sort_order = Qtcxx . . $ Qt/::AscendingOrdercxx . . $ Qt/AscendingOrder.; // default value
118 else
119 sort_order = static_cast<Qtcxx . . $ Qt/::SortOrdercxx . . $ Qt/SortOrder#>(sort_order_int);
120 uicxx . . $ ConnectionWidget#ui.->gamesViewcxx . . $ Ui_ConnectionWidget#gamesView.->sortByColumncxx . . $ QTableView#sortByColumn(11168df8d4e8286d).(sort_column,sort_order);
121
122 QFontcxx . . $ QFont# monospaceFontcxx . . $ QFont#QFont(7ae16150a604556).("Monospace"cxx . . $ QString#QString(85c52e162fed56f9).);
123 monospaceFont.setStyleHintcxx . . $ QFont#setStyleHint(5f69bb8fd37dc5d9).(QFontcxx . . $ QFont#::TypeWritercxx . . $ QFont#TypeWriter.);
124 uicxx . . $ ConnectionWidget#ui.->MultiLineEdit2cxx . . $ Ui_ConnectionWidget#MultiLineEdit2.->setFontcxx . . $ QWidget#setFont(d0a4bd0c8524b912).(monospaceFont);
125 }
126
127 ConnectionWidgetcxx . . $ ConnectionWidget#::~cxx . . $ ConnectionWidget#`~ConnectionWidget`(ced63f7c635d850d).ConnectionWidgetcxx . . $ ConnectionWidget#()
128 {
129 QSettingscxx . . $ QSettings# settingscxx . . $ QSettings#QSettings(749de1b6ae65bddd).;
130 settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("LOWRANKFILTER"cxx . . $ QString#QString(85c52e162fed56f9)., uicxx . . $ QVariant#QVariant(d4f767463ce0a6b3).->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).());
131 settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("HIGHRANKFILTER"cxx . . $ QString#QString(85c52e162fed56f9)., uicxx . . $ QVariant#QVariant(d4f767463ce0a6b3).->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).());
132
133 settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("OPENFILTER"cxx . . $ QString#QString(85c52e162fed56f9)., uicxx . . $ QVariant#QVariant(b45ddcbc8423892c).->filterOpenCheckBoxcxx . . $ Ui_ConnectionWidget#filterOpenCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).());
134 settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("FRIENDSFILTER"cxx . . $ QString#QString(85c52e162fed56f9)., uicxx . . $ QVariant#QVariant(b45ddcbc8423892c).->filterFriendsCheckBoxcxx . . $ Ui_ConnectionWidget#filterFriendsCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).());
135 settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("WATCHESFILTER"cxx . . $ QString#QString(85c52e162fed56f9)., uicxx . . $ QVariant#QVariant(b45ddcbc8423892c).->filterWatchesCheckBoxcxx . . $ Ui_ConnectionWidget#filterWatchesCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).());
136
137 settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("PlayerListSortColumn"cxx . . $ QString#QString(85c52e162fed56f9).,QVariantcxx . . $ QVariant#QVariant(d4f767463ce0a6b3).(playerListProxyModelcxx . . $ ConnectionWidget#playerListProxyModel.->sortColumncxx . . $ QSortFilterProxyModel#sortColumn(455f465bc33b4cdf).()));
138 settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("PlayerListSortOrder"cxx . . $ QString#QString(85c52e162fed56f9).,QVariantcxx . . $ QVariant#QVariant(d4f767463ce0a6b3).(playerListProxyModelcxx . . $ ConnectionWidget#playerListProxyModel.->sortOrdercxx . . $ QSortFilterProxyModel#sortOrder(3d035b40950d32d6).()));
139 settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("GamesListSortColumn"cxx . . $ QString#QString(85c52e162fed56f9).,QVariantcxx . . $ QVariant#QVariant(d4f767463ce0a6b3).(gamesListProxyModelcxx . . $ ConnectionWidget#gamesListProxyModel.->sortColumncxx . . $ QSortFilterProxyModel#sortColumn(455f465bc33b4cdf).()));
140 settings.setValuecxx . . $ QSettings#setValue(1c60a90c724e6bfb).("GamesListSortOrder"cxx . . $ QString#QString(85c52e162fed56f9).,QVariantcxx . . $ QVariant#QVariant(d4f767463ce0a6b3).(gamesListProxyModelcxx . . $ ConnectionWidget#gamesListProxyModel.->sortOrdercxx . . $ QSortFilterProxyModel#sortOrder(3d035b40950d32d6).()));
141 delete uicxx . . $ ConnectionWidget#ui.;
142 cleanupServerDatacxx . . $ ConnectionWidget#cleanupServerData(49f6e7a06ebc5aa8).();
143 }
144
145 void ConnectionWidgetcxx . . $ ConnectionWidget#::cleanupServerDatacxx . . $ ConnectionWidget#cleanupServerData(49f6e7a06ebc5aa8).(void)
146 {
147 //delete serverliststorage; no header, done in mainwindow FIXME awkward
148 qDeleteAllcxx . . $ qDeleteAll(77d9f17553126ecb).(roomListcxx . . $ ConnectionWidget#roomList.);
149 qDeleteAllcxx . . $ qDeleteAll(77d9f17553126ecb).(channelListcxx . . $ ConnectionWidget#channelList.);
150 }
151 /*
152 * return pressed in edit line -> command to send
153 */
154
155 void ConnectionWidgetcxx . . $ ConnectionWidget#::slot_cmdactivatedcxx . . $ ConnectionWidget#slot_cmdactivated(3520e46b33348bf6).(const QStringcxx . . $ QString# &cmd)
156 {
157 if(connectioncxx . . $ ConnectionWidget#connection.->consoleIsChatcxx . . $ NetworkConnection#consoleIsChat(c9857a73d68e59ba).())
158 {
159 connectioncxx . . $ ConnectionWidget#connection.->sendMsgcxx . . $ NetworkConnection#sendMsg(679a3afc1f0f3212).((unsigned int)0, cmdcxx . . $ QString#QString(132dd6869045752b).);
160 uicxx . . $ ConnectionWidget#ui.->commandLineComboBoxcxx . . $ Ui_ConnectionWidget#commandLineComboBox.->clearEditTextcxx . . $ QComboBox#clearEditText(49f6e7a06ebc5aa8).();
161 return;
162 }
163 if (cmd.trimmedcxx . . $ QString#trimmed(dca2c5857e9adf82).().isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).())
164 return;
165 if (cmd.midcxx . . $ QString#mid(44b7563da18aea72).(0,2).containscxx . . $ QString#contains(8cce4688c16f48f3).("ob"cxx . . $ QString#QString(85c52e162fed56f9).))
166 {
167 QStringcxx . . $ QString# cmd2 = cmdcxx . . $ QString#QString(132dd6869045752b).;
168 int number = cmd2.replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[\\S]+\\s"cxx . . $ QString#QString(85c52e162fed56f9).), ""cxx . . $ QString#QString(85c52e162fed56f9).).toIntcxx . . $ QString#toInt(d7972accae11ee1f).();
169 if (roomcxx . . $ ConnectionWidget#room. && number)
170 {
171 GameListingcxx . . $ GameListing# * g = roomcxx . . $ ConnectionWidget#room.->getGameListingcxx . . $ Room#getGameListing(d402167d8f57cf00).(number);
172 connectioncxx . . $ ConnectionWidget#connection.->sendObservecxx . . $ NetworkConnection#sendObserve(963dc8955d49573e).(g);
173 }
174 }
175 else if (cmd.midcxx . . $ QString#mid(44b7563da18aea72).(0,4).containscxx . . $ QString#contains(8cce4688c16f48f3).("yell"cxx . . $ QString#QString(85c52e162fed56f9).) || cmd.midcxx . . $ QString#mid(44b7563da18aea72).(0,1) ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). ";")
176 {
177 QStringcxx . . $ QString# cmd2 = cmdcxx . . $ QString#QString(132dd6869045752b).;
178 cmd2.replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("^[\\S]+\\s"cxx . . $ QString#QString(85c52e162fed56f9).), ""cxx . . $ QString#QString(85c52e162fed56f9).);
179 connectioncxx . . $ ConnectionWidget#connection.->getConsoleDispatchcxx . . $ NetworkConnection#getConsoleDispatch(5304ece8b917e47).()->recvTextcxx . . $ ConsoleDispatch#recvText(7df51288a9ebd664).(cmd2cxx . . $ QString#QString(132dd6869045752b).); //copy back since otherwise doesn't appear
180 connectioncxx . . $ ConnectionWidget#connection.->sendConsoleTextcxx . . $ NetworkConnection#sendConsoleText(85c52e162fed56f9).(cmd.toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).());
181 uicxx . . $ ConnectionWidget#ui.->commandLineComboBoxcxx . . $ Ui_ConnectionWidget#commandLineComboBox.->clearEditTextcxx . . $ QComboBox#clearEditText(49f6e7a06ebc5aa8).();
182 }
183 else
184 {
185 connectioncxx . . $ ConnectionWidget#connection.->sendConsoleTextcxx . . $ NetworkConnection#sendConsoleText(85c52e162fed56f9).(cmd.toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).());
186 uicxx . . $ ConnectionWidget#ui.->commandLineComboBoxcxx . . $ Ui_ConnectionWidget#commandLineComboBox.->clearEditTextcxx . . $ QComboBox#clearEditText(49f6e7a06ebc5aa8).();
187 }
188 }
189
190 void ConnectionWidgetcxx . . $ ConnectionWidget#::setNetworkConnectioncxx . . $ ConnectionWidget#setNetworkConnection(bdf7e61fb2b15626).(NetworkConnectioncxx . . $ NetworkConnection# * conn)
191 {
192 if (connectioncxx . . $ ConnectionWidget#connection. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
193 connectioncxx . . $ ConnectionWidget#connection.->disconnectcxx . . $ QObject#disconnect(105bbb4f746c4352).(this);
194 connectioncxx . . $ ConnectionWidget#connection. = conn;
195 connectionEstablishedcxx . . $ ConnectionWidget#connectionEstablished. =cxx . . $ QDateTime#`operator=`(6dbf9ff24243cdf2). QDateTimecxx . . $ QDateTime#::currentDateTimecxx . . $ QDateTime#currentDateTime(bf5129c8228c71c0).();
196 if (connectioncxx . . $ ConnectionWidget#connection. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
197 {
198 connectcxx . . $ QObject#connect(835f87066c895669).(connectioncxx . . $ ConnectionWidget#connection., &NetworkConnectioncxx . . $ NetworkConnection#::readycxx . . $ NetworkConnection#ready(49f6e7a06ebc5aa8)., this, &ConnectionWidgetcxx . . $ ConnectionWidget#::loadConnectionSettingscxx . . $ ConnectionWidget#loadConnectionSettings(49f6e7a06ebc5aa8).);
199 unsigned long flags = connectioncxx . . $ ConnectionWidget#connection.->getPlayerListColumnscxx . . $ NetworkConnection#getPlayerListColumns(f708dce9a8856c70).();
200 if(flags & PL_NOWINSLOSSEScxx . . $ `src/network/networkconnection.h:229:11`!)
201 {
202 uicxx . . $ ConnectionWidget#ui.->playerViewcxx . . $ Ui_ConnectionWidget#playerView.->hideColumncxx . . $ QTableView#hideColumn(d4f767463ce0a6b3).(PC_WINScxx . . $ PC_WINS.);
203 uicxx . . $ ConnectionWidget#ui.->playerViewcxx . . $ Ui_ConnectionWidget#playerView.->hideColumncxx . . $ QTableView#hideColumn(d4f767463ce0a6b3).(PC_LOSSEScxx . . $ PC_LOSSES.);
204 }
205 if(flags & PL_NOMATCHPREFScxx . . $ `src/network/networkconnection.h:230:11`!)
206 {
207 uicxx . . $ ConnectionWidget#ui.->playerViewcxx . . $ Ui_ConnectionWidget#playerView.->hideColumncxx . . $ QTableView#hideColumn(d4f767463ce0a6b3).(PC_MATCHPREFScxx . . $ PC_MATCHPREFS.);
208 }
209 setRankSpreadViewcxx . . $ ConnectionWidget#setRankSpreadView(49f6e7a06ebc5aa8).();
210 }
211 }
212
213 void ConnectionWidgetcxx . . $ ConnectionWidget#::loadConnectionSettingscxx . . $ ConnectionWidget#loadConnectionSettings(49f6e7a06ebc5aa8).(void)
214 {
215 QSettingscxx . . $ QSettings# settingscxx . . $ QSettings#QSettings(749de1b6ae65bddd).;
216 const bool looking = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("LOOKING_FOR_GAMES"cxx . . $ QString#QString(85c52e162fed56f9).).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).();
217 uicxx . . $ ConnectionWidget#ui.->lookingCheckBoxcxx . . $ Ui_ConnectionWidget#lookingCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(looking);
218
219 const bool open = settings.valuecxx . . $ QSettings#value(12a1b1749da49362).("OPEN_FOR_GAMES"cxx . . $ QString#QString(85c52e162fed56f9).).toBoolcxx . . $ QVariant#toBool(50ce9a9e25b4a850).();
220 uicxx . . $ ConnectionWidget#ui.->openCheckBoxcxx . . $ Ui_ConnectionWidget#openCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(open);
221
222 if (connectioncxx . . $ ConnectionWidget#connection. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
223 {
224 connectioncxx . . $ ConnectionWidget#connection.->sendTogglecxx . . $ NetworkConnection#sendToggle(37c160c81b6367f7).("looking"cxx . . $ QString#QString(85c52e162fed56f9)., looking);
225 connectioncxx . . $ ConnectionWidget#connection.->sendTogglecxx . . $ NetworkConnection#sendToggle(37c160c81b6367f7).("open"cxx . . $ QString#QString(85c52e162fed56f9)., open);
226 }
227 }
228
229
230 /*
231 * slot_connect: emitted when connect button has toggled
232 */
233 void ConnectionWidgetcxx . . $ ConnectionWidget#::disconnectFromServercxx . . $ ConnectionWidget#disconnectFromServer(49f6e7a06ebc5aa8).(void)
234 {
235 if(!connectioncxx . . $ ConnectionWidget#connection.)
236 return;
237 /* There was definitely a crash from disconnecting
238 * with a logindialog open because the logindialog kept
239 * calling network connection code. What doesn't make
240 * sense is that the logindialog is modal, so its like
241 * the server list allowed the hitting of the connect
242 * button, breaking the modality of the logindialog and
243 * allowing a crash here... FIXME But we should never
244 * get here. */
245 // For the time being just made the dialog modal
246 if (closeConnectioncxx . . $ ConnectionWidget#closeConnection(73da94e76e6bd037).() == 0)
247 this->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false);
248 }
249
250 /* FIXME I feel like all the UI elements below that hide
251 * should hide on destruction of connection, not on
252 * reconnect to another service. At the same time,
253 * ORO reconnects as part of its session so that would
254 * be a bit tricky. We'll leave it here for now. */
255 void ConnectionWidgetcxx . . $ ConnectionWidget#::setupButtonscxx . . $ ConnectionWidget#setupButtons(49f6e7a06ebc5aa8).(void)
256 {
257 unsigned long rs_flags = connectioncxx . . $ ConnectionWidget#connection.->getRoomStructureFlagscxx . . $ NetworkConnection#getRoomStructureFlags(f708dce9a8856c70).();
258 if(rs_flags & RS_NOROOMLISTcxx . . $ `src/network/networkconnection.h:234:11`!)
259 {
260 uicxx . . $ ConnectionWidget#ui.->roomComboBoxcxx . . $ Ui_ConnectionWidget#roomComboBox.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
261 uicxx . . $ ConnectionWidget#ui.->roomsLabelcxx . . $ Ui_ConnectionWidget#roomsLabel.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
262 }
263 else if(rs_flags & RS_SHORTROOMLISTcxx . . $ `src/network/networkconnection.h:235:11`!)
264 {
265 uicxx . . $ ConnectionWidget#ui.->roomComboBoxcxx . . $ Ui_ConnectionWidget#roomComboBox.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).();
266 uicxx . . $ ConnectionWidget#ui.->roomsLabelcxx . . $ Ui_ConnectionWidget#roomsLabel.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).();
267 }
268 else if(rs_flags & RS_LONGROOMLISTcxx . . $ `src/network/networkconnection.h:236:11`!)
269 {
270 /* Here, FIXME, we'd want to replace
271 * the menu with a button that brings
272 * up a window with a tree list, to join
273 * different rooms */
274 }
275
276 uicxx . . $ ConnectionWidget#ui.->changeServerButtoncxx . . $ Ui_ConnectionWidget#changeServerButton.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(connectioncxx . . $ ConnectionWidget#connection.->supportsServerChangecxx . . $ NetworkConnection#supportsServerChange(c9857a73d68e59ba).());
277 uicxx . . $ ConnectionWidget#ui.->createRoomButtoncxx . . $ Ui_ConnectionWidget#createRoomButton.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(connectioncxx . . $ ConnectionWidget#connection.->supportsCreateRoomcxx . . $ NetworkConnection#supportsCreateRoom(c9857a73d68e59ba).());
278 uicxx . . $ ConnectionWidget#ui.->refreshPlayersButtoncxx . . $ Ui_ConnectionWidget#refreshPlayersButton.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(connectioncxx . . $ ConnectionWidget#connection.->supportsRefreshListsButtonscxx . . $ NetworkConnection#supportsRefreshListsButtons(c9857a73d68e59ba).());
279 uicxx . . $ ConnectionWidget#ui.->refreshGamesButtoncxx . . $ Ui_ConnectionWidget#refreshGamesButton.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(connectioncxx . . $ ConnectionWidget#connection.->supportsRefreshListsButtonscxx . . $ NetworkConnection#supportsRefreshListsButtons(c9857a73d68e59ba).());
280
281 if(connectioncxx . . $ ConnectionWidget#connection.->supportsSeekcxx . . $ NetworkConnection#supportsSeek(c9857a73d68e59ba).())
282 {
283 uicxx . . $ ConnectionWidget#ui.->seekToolButtoncxx . . $ Ui_ConnectionWidget#seekToolButton.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).();
284 uicxx . . $ ConnectionWidget#ui.->handicapComboBoxcxx . . $ Ui_ConnectionWidget#handicapComboBox.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).();
285 }
286 else
287 {
288 uicxx . . $ ConnectionWidget#ui.->seekToolButtoncxx . . $ Ui_ConnectionWidget#seekToolButton.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
289 uicxx . . $ ConnectionWidget#ui.->handicapComboBoxcxx . . $ Ui_ConnectionWidget#handicapComboBox.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
290 }
291 if(connectioncxx . . $ ConnectionWidget#connection.->supportsChannelscxx . . $ NetworkConnection#supportsChannels(c9857a73d68e59ba).())
292 {
293 uicxx . . $ ConnectionWidget#ui.->channelsLabelcxx . . $ Ui_ConnectionWidget#channelsLabel.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).();
294 uicxx . . $ ConnectionWidget#ui.->channelComboBoxcxx . . $ Ui_ConnectionWidget#channelComboBox.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).();
295 }
296 else
297 {
298 uicxx . . $ ConnectionWidget#ui.->channelsLabelcxx . . $ Ui_ConnectionWidget#channelsLabel.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
299 uicxx . . $ ConnectionWidget#ui.->channelComboBoxcxx . . $ Ui_ConnectionWidget#channelComboBox.->hidecxx . . $ QWidget#hide(49f6e7a06ebc5aa8).();
300 }
301
302 /* FIXME Also need away message and maybe game/player refresh */
303 #ifdef FIXME
304 // quiet mode? if yes do clear table before refresh
305 gamesListSteadyUpdate = ! ui->quietCheckBox->isChecked();
306 playerListSteadyUpdate = ! ui->quietCheckBox->isChecked();
307
308 // enable extended user info features
309 setColumnsForExtUserInfo();
310
311 // check for messages
312 if (youhavemsg)
313 sendcommand("message", false);
314 // init shouts (TODO)
315
316 // show current Server name in status bar
317 statusServer->setText(" " + myAccount->svname + " ");
318 #endif //FIXME
319 }
320
321 /* Shouldn't be here. FIXME */
322 /* Maybe it should be here? */
323 void ConnectionWidgetcxx . . $ ConnectionWidget#::onConnectionErrorcxx . . $ ConnectionWidget#onConnectionError(49f6e7a06ebc5aa8).(void)
324 {
325 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("ConnectionWidget::onConnectionError(void)");
326 closeConnectioncxx . . $ ConnectionWidget#closeConnection(73da94e76e6bd037).(true); //probably don't care about return here since connection is likely dead.
327 //could be a crash here though or maybe shouldn't be here at all doublecheck FIXME
328 /* FIXME this can get stuck open if we get a connection error on connect, like the app doesn't quit when
329 * the main window is closed */
330 this->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false);
331 }
332
333 int ConnectionWidgetcxx . . $ ConnectionWidget#::closeConnectioncxx . . $ ConnectionWidget#closeConnection(73da94e76e6bd037).(bool error)
334 {
335 if(connectioncxx . . $ ConnectionWidget#connection.)
336 {
337 if(!error && connectioncxx . . $ ConnectionWidget#connection.->checkForOpenBoardscxx . . $ NetworkConnection#checkForOpenBoards(b126dc7c1de90089).() < 0)
338 return -1;
339 NetworkConnectioncxx . . $ NetworkConnection# * c = connectioncxx . . $ ConnectionWidget#connection.;
340 connectioncxx . . $ ConnectionWidget#connection. = 0;
341 uicxx . . $ ConnectionWidget#ui.->connectButtoncxx . . $ Ui_ConnectionWidget#connectButton.->blockSignalscxx . . $ QObject#blockSignals(4264aff4942d46ac).(true);
342 uicxx . . $ ConnectionWidget#ui.->connectButtoncxx . . $ Ui_ConnectionWidget#connectButton.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(false); //doublecheck all this?
343 uicxx . . $ ConnectionWidget#ui.->connectButtoncxx . . $ Ui_ConnectionWidget#connectButton.->blockSignalscxx . . $ QObject#blockSignals(4264aff4942d46ac).(false);
344 delete c;
345 }
346 return 0;
347 }
348
349 /*
350 * connection closed - triggered by parser signal
351 */
352 void ConnectionWidgetcxx . . $ ConnectionWidget#::slot_connexionClosedcxx . . $ ConnectionWidget#slot_connexionClosed(49f6e7a06ebc5aa8).()
353 {
354 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("slot_connexionClosed");
355 // no Timers in offline mode!
356
357 #ifdef FIXME
358 /* We may need to set somet status somewhere or like the
359 * OFFLINE text, but that needs to be somewhere else.
360 * This is just a reminder. */
361 // set to offline:
362 myAccount->set_offline();
363 #endif //FIXME
364 uicxx . . $ ConnectionWidget#ui.->connectButtoncxx . . $ Ui_ConnectionWidget#connectButton.->blockSignalscxx . . $ QObject#blockSignals(4264aff4942d46ac).(true);
365 uicxx . . $ ConnectionWidget#ui.->connectButtoncxx . . $ Ui_ConnectionWidget#connectButton.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(false);
366 uicxx . . $ ConnectionWidget#ui.->connectButtoncxx . . $ Ui_ConnectionWidget#connectButton.->blockSignalscxx . . $ QObject#blockSignals(4264aff4942d46ac).(false);
367 seekMenucxx . . $ ConnectionWidget#seekMenu.->clearcxx . . $ QMenu#clear(49f6e7a06ebc5aa8).();
368
369 #ifdef FIXME
370 /* FIXME FIXME seeking */
371 slot_cancelSeek();
372 #endif //FIXME
373
374
375 // qDebug("slot_connclosed()");
376 // qDebug(QString("%1 -> slot_connclosed()").arg(statusOnlineTime->text()));
377
378 }
379
380 void ConnectionWidgetcxx . . $ ConnectionWidget#::slot_changeServercxx . . $ ConnectionWidget#slot_changeServer(49f6e7a06ebc5aa8).(void)
381 {
382 if(connectioncxx . . $ ConnectionWidget#connection.)
383 connectioncxx . . $ ConnectionWidget#connection.->changeServercxx . . $ NetworkConnection#changeServer(49f6e7a06ebc5aa8).();
384 }
385
386 void ConnectionWidgetcxx . . $ ConnectionWidget#::slot_createRoomcxx . . $ ConnectionWidget#slot_createRoom(49f6e7a06ebc5aa8).(void)
387 {
388 QMessageBoxcxx . . $ QMessageBox#::informationcxx . . $ QMessageBox#information(a9e3742e6f7b4147).(this, trcxx . . $ ConnectionWidget#tr(75d9f1c324b4579d).("Not available"), trcxx . . $ ConnectionWidget#tr(75d9f1c324b4579d).("This feature will be in a later version"));
389 #ifdef FIXME
390 connection->createRoom();
391 #endif //FIXME
392 }
393
394 // used for singleShot actions
395 void ConnectionWidgetcxx . . $ ConnectionWidget#::set_tn_readycxx . . $ ConnectionWidget#set_tn_ready(49f6e7a06ebc5aa8).()
396 {
397 tn_readycxx . . $ ConnectionWidget#tn_ready. = true;
398 tn_wait_for_tn_readycxx . . $ ConnectionWidget#tn_wait_for_tn_ready. = false;
399 //sendTextFromApp(0);
400 }
401
402 // tell, say, kibitz...
403 void ConnectionWidgetcxx . . $ ConnectionWidget#::slot_messagecxx . . $ ConnectionWidget#slot_message(8765108fba720c62).(QStringcxx . . $ QString# txt, QColorcxx . . $ QColor# c)
404 {
405 uicxx . . $ ConnectionWidget#ui.->MultiLineEdit2cxx . . $ Ui_ConnectionWidget#MultiLineEdit2.->setTextColorcxx . . $ QTextEdit#setTextColor(129a55e114526ad3).(c);
406 if(txt.lengthcxx . . $ QString#length(455f465bc33b4cdf).() - 2 >= 0 &&
407 txt[cxx . . $ QString#`operator[]`(57436120916eb52c).txt.lengthcxx . . $ QString#length(455f465bc33b4cdf).() - 1] ==cxx . . $ `operator==`(a468b2f18a3afe8). '\n'cxx . . $ QChar#QChar(f349c77f591a7878). && txt[cxx . . $ QString#`operator[]`(57436120916eb52c).txt.lengthcxx . . $ QString#length(455f465bc33b4cdf).() - 2] ==cxx . . $ `operator==`(a468b2f18a3afe8). '\n'cxx . . $ QChar#QChar(f349c77f591a7878).)
408 txt.truncatecxx . . $ QString#truncate(d4f767463ce0a6b3).(txt.lengthcxx . . $ QString#length(455f465bc33b4cdf).() - 1);
409 // Scroll at bottom of text, set cursor to end of line
410 if (! (uicxx . . $ ConnectionWidget#ui.->MultiLineEdit2cxx . . $ Ui_ConnectionWidget#MultiLineEdit2.->toPlainTextcxx . . $ QTextEdit#toPlainText(6ef7b6c27b00b43d).().endsWithcxx . . $ QString#endsWith(7cf081d1b6a1defd).('\n'cxx . . $ QChar#QChar(f349c77f591a7878).) && txt ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "\n"))
411 uicxx . . $ ConnectionWidget#ui.->MultiLineEdit2cxx . . $ Ui_ConnectionWidget#MultiLineEdit2.->appendcxx . . $ QTextEdit#append(3520e46b33348bf6).(txt);
412
413 uicxx . . $ ConnectionWidget#ui.->MultiLineEdit2cxx . . $ Ui_ConnectionWidget#MultiLineEdit2.->setTextColorcxx . . $ QTextEdit#setTextColor(129a55e114526ad3).(Qtcxx . . $ QColor#QColor(408ec4d5924bfb00).::blackcxx . . $ Qt/black.);
414 }
415
416 /* We're going to leave this as is until we figure out what other
417 * protocols might use for it. But obviously its necessary even
418 * for the other text protocols.*/
419 // set session parameter
420 void ConnectionWidgetcxx . . $ ConnectionWidget#::set_sessionparametercxx . . $ ConnectionWidget#set_sessionparameter(4e51b35ce1bea96b).(QStringcxx . . $ QString# par, bool val)
421 {
422 QStringcxx . . $ QString# valuecxx . . $ QString#QString(ced63f7c635d850d).;
423 if(!connectioncxx . . $ ConnectionWidget#connection.)
424 return;
425
426
427 //connection->sendText("toggle " + par + value);
428 connectioncxx . . $ ConnectionWidget#connection.->sendTogglecxx . . $ NetworkConnection#sendToggle(37c160c81b6367f7).(par, val);
429 /*switch(myAccount->get_gsname())
430 {
431 // only toggling...
432 case IGS:
433 connection->sendText("toggle " + par + value);
434 break;
435
436 default:
437 connection->sendText("set " + par + value);
438 break;
439 }*/
440 }
441
442 void ConnectionWidgetcxx . . $ ConnectionWidget#::slot_roomListClickedcxx . . $ ConnectionWidget#slot_roomListClicked(3520e46b33348bf6).(const QStringcxx . . $ QString#& text)
443 {
444 if(!connectioncxx . . $ ConnectionWidget#connection.)
445 return;
446 for(int i=0; i < roomListcxx . . $ ConnectionWidget#roomList..lengthcxx . . $ QList#length(455f465bc33b4cdf).(); i++)
447 {
448 if(roomListcxx . . $ ConnectionWidget#roomList.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i]->namecxx . . $ RoomListing#name. ==cxx . . $ `operator==`(5bc2975d2d751687). text)
449 {
450 connectioncxx . . $ ConnectionWidget#connection.->sendJoinRoomcxx . . $ NetworkConnection#sendJoinRoom(27567cc4e87be946).(*(roomListcxx . . $ ConnectionWidget#roomList.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i]));
451 connectioncxx . . $ ConnectionWidget#connection.->getDefaultRoomcxx . . $ NetworkConnection#getDefaultRoom(93e93f117be81b18).()->slot_refreshPlayerscxx . . $ Room#slot_refreshPlayers(49f6e7a06ebc5aa8).();
452 connectioncxx . . $ ConnectionWidget#connection.->getDefaultRoomcxx . . $ NetworkConnection#getDefaultRoom(93e93f117be81b18).()->slot_refreshGamescxx . . $ Room#slot_refreshGames(49f6e7a06ebc5aa8).();
453 return;
454 }
455 }
456 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("Can't find room %s", text.toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).());
457 }
458
459 void ConnectionWidgetcxx . . $ ConnectionWidget#::slot_channelListClickedcxx . . $ ConnectionWidget#slot_channelListClicked(3520e46b33348bf6).(const QStringcxx . . $ QString#& text)
460 {
461 if(!connectioncxx . . $ ConnectionWidget#connection.)
462 return;
463 if(text ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "No Channel"/* || text == "Leave"*/)
464 {
465
466 return;
467 }
468 if(text ==cxx . . $ QString#`operator==`(7d4bdb1abc417636). "Create")
469 {
470
471 return;
472 }
473 for(int i=0; i < channelListcxx . . $ ConnectionWidget#channelList..lengthcxx . . $ QList#length(455f465bc33b4cdf).(); i++)
474 {
475 if(text.containscxx . . $ QString#contains(8cce4688c16f48f3).(QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(channelListcxx . . $ ConnectionWidget#channelList.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i]->numbercxx . . $ ChannelListing#number.)))
476 {
477 connectioncxx . . $ ConnectionWidget#connection.->sendJoinChannelcxx . . $ NetworkConnection#sendJoinChannel(17c16455472eee56).(*(channelListcxx . . $ ConnectionWidget#channelList.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i]));
478 return;
479 }
480 }
481 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("Can't find channel %s", text.toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).());
482 }
483 #ifdef FIXME
484
485
486
487
488
489 /* Same thing as the slot above that we can probably remove
490 * but just in case */
491 // prepare tables (clear, ...)
492 void ConnectionWidget::prepareTables(InfoType cmd)
493 {
494 switch (cmd)
495 {
496 case WHO: // delete player table
497 {
498 // QListViewItemIterator lv(ListView_players);
499 // for (QListViewItem *lvi; (lvi = lv.current());)
500 // {
501 // lv++;
502 // delete lvi;
503 // }
504 #ifdef FIXME
505 ui->ListView_players->clear();
506 #endif //FIXME
507
508 // set number of players to 0
509 myAccount->num_players = 0;
510 myAccount->num_watchedplayers = 0;
511 // use this for fast filling
512 playerListEmpty = true;
513 statusUsers->setText(" P: 0");// / 0 ");
514 break;
515 }
516
517 case GAMES: // delete games table
518 {
519 // QListViewItemIterator lv(ListView_games);
520 // for (QListViewItem *lvi; (lvi = lv.current());)
521 // {
522 // lv++;
523 // delete lvi;
524 // }
525 #ifdef FIXME
526 ui->ListView_games->clear();
527 #endif //FIXME
528
529 // set number of games to 0
530 myAccount->num_games = 0;
531 statusGames->setText(" G: 0"); //(" G: 0 / 0 ");
532 break;
533 }
534
535 case CHANNELS:
536 {
537 // delete channel info
538 // channellist.clear();
539 // statusChannel->setText("");
540
541 // delete tooltips too
542 // QToolTip::remove(statusChannel);
543 // QToolTip::add(statusChannel, tr("Current channels and users"));
544
545 //We prepare the rooms list as well here
546 while (ui->roomComboBox->count() > 1)
547 ui->roomComboBox->removeItem(1);
548
549 break;
550 }
551
552 default: // unknown command???
553 qWarning("unknown Command in 'prepare_tables()'");
554 break;
555
556 }
557 }
558 #endif //FIXME
559
560
561 #ifdef FIXME
562 /* Below, again, could be helpful and such column changes DO need to be
563 * done, but they're specific to the connection */
564 /*
565 * sets the columns for specific IGS infos
566 */
567 void ConnectionWidget::setColumnsForExtUserInfo()
568 {
569
570 if (/* !extUserInfo || */(myAccount->get_gsname() != IGS) )
571 {
572 // set player table's columns to 'who' mode
573 #ifdef FIXME
574 /* We'll have to test this on other servers?
575 * Actually the columns should be there or not
576 * but we just might leave them blank or "-"*/
577 ui->ListView_players->setColumnHidden(11,TRUE);
578 ui->ListView_players->setColumnHidden(10,TRUE);
579 ui->ListView_players->setColumnHidden(9,TRUE);
580 ui->ListView_players->setColumnHidden(8,TRUE);
581 ui->ListView_players->setColumnHidden(7,TRUE);
582 #endif //FIXME
583 }
584 else// if ( ui->ListView_players->columns() < 9 )
585 {
586 // set player table's columns to 'user' mode
587 // first: remove invisible column
588 // ui->ListView_players->removeColumn(7);
589 // second: add new columns
590 // ui->ListView_players->addColumn(tr("Info"));
591 // ui->ListView_players->addColumn(tr("Won"));
592 // ui->ListView_players->addColumn(tr("Lost"));
593 // ui->ListView_players->addColumn(tr("Country"));
594 // ui->ListView_players->addColumn(tr("Match prefs"));
595 // ui->ListView_players->setColumnAlignment(7, Qt::AlignRight);
596 // ui->ListView_players->setColumnAlignment(8, AlignRight);
597 // ui->ListView_players->setColumnAlignment(9, AlignRight);
598 #ifdef FIXME
599 ui->ListView_players->setColumnHidden(11,FALSE);
600 ui->ListView_players->setColumnHidden(10,FALSE);
601 #endif //FIXME
602 // ui->ListView_players->setColumnHidden(9,FALSE);
603 // ui->ListView_players->setColumnHidden(8,FALSE);
604 // ui->ListView_players->setColumnHidden(7,FALSE);
605 }
606 }
607
608 /*
609 * server name found by parser
610 */
611 void ConnectionWidget::slot_svname(GSName &gs)
612 {
613 // save local at 'gsname'
614 // and change caption
615 myAccount->set_gsname(gs);
616 myAccount->set_caption();
617 }
618
619
620 /*
621 * account name found by parser
622 */
623 void ConnectionWidget::slot_accname(QString &name)
624 {
625 // save local at 'gsname'
626 // and change caption
627 myAccount->set_accname(name);
628 myAccount->set_caption();
629 }
630
631 #endif //FIXME
632
633 void ConnectionWidgetcxx . . $ ConnectionWidget#::recvSeekConditioncxx . . $ ConnectionWidget#recvSeekCondition(c6d377b4419439f6).(class SeekConditioncxx . . $ SeekCondition# * s)
634 {
635 if(!s)
636 seekMenucxx . . $ ConnectionWidget#seekMenu.->clearcxx . . $ QMenu#clear(49f6e7a06ebc5aa8).();
637 else
638 {
639 QStringcxx . . $ QString# time_conditioncxx . . $ QString#QString(ced63f7c635d850d).;
640
641 time_condition =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).((s->maintimecxx . . $ SeekCondition#maintime. / 60)) +cxx . . $ operator+(3d22f08efddf8107). " min + " +cxx . . $ operator+(fab9b4f80031f353). QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(int(s->periodtimecxx . . $ SeekCondition#periodtime. / 60)) +cxx . . $ operator+(3d22f08efddf8107). " min / " +cxx . . $ operator+(fab9b4f80031f353). QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(s->periodscxx . . $ SeekCondition#periods.) +cxx . . $ operator+(3d22f08efddf8107). " stones";
642
643 QActioncxx . . $ QAction# *act = seekMenucxx . . $ ConnectionWidget#seekMenu.->addActioncxx . . $ QMenu#addAction(1ad47f6a39234f8e).(time_condition);// , this, slot_seek(QAction*)));//, 0, a.toInt());
644 act->setDatacxx . . $ QAction#setData(244511558b20107a).(scxx . . $ QVariant#QVariant(d4f767463ce0a6b3).->numbercxx . . $ SeekCondition#number.);
645 delete s;
646 }
647 }
648
649 void ConnectionWidgetcxx . . $ ConnectionWidget#::recvSeekCancelcxx . . $ ConnectionWidget#recvSeekCancel(49f6e7a06ebc5aa8).(void)
650 {
651 uicxx . . $ ConnectionWidget#ui.->seekToolButtoncxx . . $ Ui_ConnectionWidget#seekToolButton.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(false);
652 uicxx . . $ ConnectionWidget#ui.->seekToolButtoncxx . . $ Ui_ConnectionWidget#seekToolButton.->setMenucxx . . $ QToolButton#setMenu(cb52c12b49e9b51b).(seekMenucxx . . $ ConnectionWidget#seekMenu.);
653 // ui->seekToolButton->setPopupDelay(1);
654 uicxx . . $ ConnectionWidget#ui.->seekToolButtoncxx . . $ Ui_ConnectionWidget#seekToolButton.->setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(":/resources/pics/not_seeking.png"cxx . . $ QString#QString(85c52e162fed56f9).));
655 killTimercxx . . $ QObject#killTimer(d4f767463ce0a6b3).(seekButtonTimercxx . . $ ConnectionWidget#seekButtonTimer.);
656 seekButtonTimercxx . . $ ConnectionWidget#seekButtonTimer. = 0;
657
658 }
659
660 /* FIXME This is for IGS, needs to be added it */
661 void ConnectionWidgetcxx . . $ ConnectionWidget#::recvSeekPlayercxx . . $ ConnectionWidget#recvSeekPlayer(3458fe3960d5051).(QStringcxx . . $ QString# /*player*/, QStringcxx . . $ QString# /*condition*/)
662 {
663 #ifdef FIXME
664 QString Rk;
665
666 QTreeWidgetItemIterator lv(ui->ListView_players);
667 QTreeWidgetItem *lvi;
668 for (; (*lv); lv++)
669 {
670 lvi = *lv;
671 // compare names
672 if (lvi->text(1) == player)
673 {
674 Rk = lvi->text(2);
675 break;
676 }
677 }
678
679
680 // QString Rk = getPlayerRk(player);
681 QString hop = Rk.right(1);
682 if ((Rk.right(1) != "?") && (Rk.right(1) != "+"))
683 Rk.append(" ");
684
685 slot_message(player.leftJustified(15,' ',true) + Rk.rightJustified(5) + " : " + condition, Qt::darkRed);
686 #endif //FIXME
687 }
688
689 /*
690 * the 'seek' button was pressed
691 */
692 void ConnectionWidgetcxx . . $ ConnectionWidget#::slot_seekcxx . . $ ConnectionWidget#slot_seek(b45ddcbc8423892c).(bool b)
693 {
694 //qDebug("seek button pressed : status %i", (int)b);
695
696 //if the button was just pressed on, we have already used the popup menu : nothing to do
697 if (b)
698 return;
699 if(connectioncxx . . $ ConnectionWidget#connection.)
700 connectioncxx . . $ ConnectionWidget#connection.->sendSeekCancelcxx . . $ NetworkConnection#sendSeekCancel(49f6e7a06ebc5aa8).();
701 }
702
703 /*
704 * seek button : menu entry (time conditions) selected
705 */
706 void ConnectionWidgetcxx . . $ ConnectionWidget#::slot_seekcxx . . $ ConnectionWidget#slot_seek(92b1e80c0a7f1406).(QActioncxx . . $ QAction# *act)
707 {
708 uicxx . . $ ConnectionWidget#ui.->seekToolButtoncxx . . $ Ui_ConnectionWidget#seekToolButton.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(true);
709 uicxx . . $ ConnectionWidget#ui.->seekToolButtoncxx . . $ Ui_ConnectionWidget#seekToolButton.->setMenucxx . . $ QToolButton#setMenu(cb52c12b49e9b51b).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
710
711 //childish, but we want to have an animated icon there
712 seekButtonTimercxx . . $ ConnectionWidget#seekButtonTimer. = startTimercxx . . $ QObject#startTimer(cf5d4a693bb15cf1).(200);
713
714 SeekConditioncxx . . $ SeekCondition# * s = new SeekConditioncxx . . $ SeekCondition#();
715 s->numbercxx . . $ SeekCondition#number. = act->datacxx . . $ QAction#data(23280f95d1ccaa1f).().toIntcxx . . $ QVariant#toInt(5bd9a3493f6a7a21).();
716 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("preparing to send seek");
717 switch (uicxx . . $ ConnectionWidget#ui.->handicapComboBoxcxx . . $ Ui_ConnectionWidget#handicapComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).())
718 {
719 case 0 :
720 s->strength_wishedcxx . . $ SeekCondition#strength_wished. =cxx . . $ QString#`operator=`(d02845eef0c33901). "1 1 0";
721 break ;
722
723 case 1 :
724 s->strength_wishedcxx . . $ SeekCondition#strength_wished. =cxx . . $ QString#`operator=`(d02845eef0c33901). "2 2 0";
725 break ;
726
727 case 2 :
728 s->strength_wishedcxx . . $ SeekCondition#strength_wished. =cxx . . $ QString#`operator=`(d02845eef0c33901). "5 5 0";
729 break ;
730
731 case 3 :
732 s->strength_wishedcxx . . $ SeekCondition#strength_wished. =cxx . . $ QString#`operator=`(d02845eef0c33901). "9 9 0";
733 break ;
734
735 case 4 :
736 s->strength_wishedcxx . . $ SeekCondition#strength_wished. =cxx . . $ QString#`operator=`(d02845eef0c33901). "0 9 0";
737 break ;
738
739 case 5 :
740 s->strength_wishedcxx . . $ SeekCondition#strength_wished. =cxx . . $ QString#`operator=`(d02845eef0c33901). "9 0 0";
741 break ;
742 }
743 connectioncxx . . $ ConnectionWidget#connection.->sendSeekcxx . . $ NetworkConnection#sendSeek(c6d377b4419439f6).(s);
744 delete s;
745 }
746
747 /* FIXME FIXME FIXME
748 * Same thing here, room changes, as in channels, should be fixed.. but I'm
749 * thinking, no console and tabbed chat rooms FIXME FIXME */
750 /*
751 * room string received after 'room' command
752 */
753 void ConnectionWidgetcxx . . $ ConnectionWidget#::recvRoomListingcxx . . $ ConnectionWidget#recvRoomListing(186c8f1f477699).(const RoomListingcxx . . $ RoomListing# & room, bool b)
754 {
755 unsigned long rf = connectioncxx . . $ ConnectionWidget#connection.->getRoomStructureFlagscxx . . $ NetworkConnection#getRoomStructureFlags(f708dce9a8856c70).();
756 /* FIXME, either way, we should keep a list of RoomListings
757 * some where */
758 //qDebug("Recv room listing %d %s", room.number, room.name.toLatin1().constData());
759 for(int i=0; i < roomListcxx . . $ ConnectionWidget#roomList..lengthcxx . . $ QList#length(455f465bc33b4cdf).(); i++)
760 {
761 if(roomListcxx . . $ ConnectionWidget#roomList.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i]->namecxx . . $ RoomListing#name. ==cxx . . $ `operator==`(5bc2975d2d751687). room.namecxx . . $ RoomListing#name.)
762 {
763 if(!b)
764 {
765 //room has been removed
766 roomListcxx . . $ ConnectionWidget#roomList..removeAtcxx . . $ QList#removeAt(d4f767463ce0a6b3).(i);
767 if(rf & RS_SHORTROOMLISTcxx . . $ `src/network/networkconnection.h:235:11`!)
768 {
769 //remove item from list
770 }
771 else if(rf & RS_LONGROOMLISTcxx . . $ `src/network/networkconnection.h:236:11`!)
772 {
773
774 }
775 }
776 return;
777 }
778 }
779 if(!b)
780 return; //removed room not found
781 roomListcxx . . $ ConnectionWidget#roomList..appendcxx . . $ QList#append(77d9f17553126ecb).(&room);
782
783 if(rf & RS_SHORTROOMLISTcxx . . $ `src/network/networkconnection.h:235:11`!)
784 {
785 //do we already have the same room number in list ?
786 //if (ui->roomComboBox->findText(room.name.left(3), Qt::MatchStartsWith )!= -1)
787 // return;
788 //so far, we just create the room if it is open
789 //if(b)
790 uicxx . . $ ConnectionWidget#ui.->roomComboBoxcxx . . $ Ui_ConnectionWidget#roomComboBox.->addItemcxx . . $ QComboBox#addItem(1c60a90c724e6bfb).(room.namecxx . . $ RoomListing#name.);
791 }
792 else if(rf & RS_LONGROOMLISTcxx . . $ `src/network/networkconnection.h:236:11`!)
793 {
794 //FIXME update that window tree view we would add
795 }
796 }
797
798 void ConnectionWidgetcxx . . $ ConnectionWidget#::recvChannelListingcxx . . $ ConnectionWidget#recvChannelListing(c6c8d512b76a2c4).(const ChannelListingcxx . . $ ChannelListing# & channel, bool b)
799 {
800 for(int i=0; i < channelListcxx . . $ ConnectionWidget#channelList..lengthcxx . . $ QList#length(455f465bc33b4cdf).(); i++)
801 {
802 if(channelListcxx . . $ ConnectionWidget#channelList.[cxx . . $ QList#`operator[]`(7a0ef1c7079e8533).i]->namecxx . . $ ChannelListing#name..containscxx . . $ QString#contains(8cce4688c16f48f3).(QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(channel.numbercxx . . $ ChannelListing#number.)))
803 {
804 if(!b)
805 {
806 //channel has been removed
807 channelListcxx . . $ ConnectionWidget#channelList..removeAtcxx . . $ QList#removeAt(d4f767463ce0a6b3).(i);
808 }
809 return;
810 }
811 }
812 if(!b)
813 return; //removed channel not found
814 channelListcxx . . $ ConnectionWidget#channelList..appendcxx . . $ QList#append(77d9f17553126ecb).(&channel);
815 if(channel.numbercxx . . $ ChannelListing#number. == 0)
816 uicxx . . $ ConnectionWidget#ui.->channelComboBoxcxx . . $ Ui_ConnectionWidget#channelComboBox.->addItemcxx . . $ QComboBox#addItem(1c60a90c724e6bfb).(channel.namecxx . . $ ChannelListing#name.);
817 else
818 uicxx . . $ ConnectionWidget#ui.->channelComboBoxcxx . . $ Ui_ConnectionWidget#channelComboBox.->addItemcxx . . $ QComboBox#addItem(1c60a90c724e6bfb).(QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(channel.numbercxx . . $ ChannelListing#number.) +cxx . . $ operator+(3d22f08efddf8107). " " +cxx . . $ operator+(fab9b4f80031f353). channel.namecxx . . $ ChannelListing#name.);
819 }
820
821 void ConnectionWidgetcxx . . $ ConnectionWidget#::changeChannelcxx . . $ ConnectionWidget#changeChannel(3520e46b33348bf6).(const QStringcxx . . $ QString# & s)
822 {
823 for(int i = 0; i < uicxx . . $ ConnectionWidget#ui.->channelComboBoxcxx . . $ Ui_ConnectionWidget#channelComboBox.->countcxx . . $ QComboBox#count(455f465bc33b4cdf).(); i++)
824 {
825 if(uicxx . . $ ConnectionWidget#ui.->channelComboBoxcxx . . $ Ui_ConnectionWidget#channelComboBox.->itemTextcxx . . $ QComboBox#itemText(3f3c3d0e9c0eb37f).(i).containscxx . . $ QString#contains(8cce4688c16f48f3).(s))
826 {
827 uicxx . . $ ConnectionWidget#ui.->channelComboBoxcxx . . $ Ui_ConnectionWidget#channelComboBox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(i);
828 return;
829 }
830 }
831 }
832
833 /* I think we still use this, it needs to move moved to somewhere
834 * or kept here but... reconciled with new code or something FIXME */
835 void ConnectionWidgetcxx . . $ ConnectionWidget#::talkOpenedcxx . . $ ConnectionWidget#talkOpened(8355d8551324cb3e).(Talkcxx . . $ Talk# * d)
836 {
837 int index = uicxx . . $ ConnectionWidget#ui.->talkTabscxx . . $ Ui_ConnectionWidget#talkTabs.->indexOfcxx . . $ QTabWidget#indexOf(7f88ed841cabb740).(d);
838 if (index == -1)
839 index = uicxx . . $ ConnectionWidget#ui.->talkTabscxx . . $ Ui_ConnectionWidget#talkTabs.->addTabcxx . . $ QTabWidget#addTab(308397e7339ec173).(d, d->get_namecxx . . $ Talk#get_name(6ef7b6c27b00b43d).());
840 uicxx . . $ ConnectionWidget#ui.->talkTabscxx . . $ Ui_ConnectionWidget#talkTabs.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(index);
841 }
842
843 /*
844 * set checkbox status because of server info or because menu / checkbok toggled
845 */
846 void ConnectionWidgetcxx . . $ ConnectionWidget#::slot_checkboxcxx . . $ ConnectionWidget#slot_checkbox(918ebd27a9ddbad3).(int nr, bool val)
847 {
848 // QCheckBox::ToggleState v = (val ?
849
850 // set checkbox (nr) to val
851 switch (nr)
852 {
853 // open
854 case 0:
855 //toolOpen->setOn(val);
856 uicxx . . $ ConnectionWidget#ui.->openCheckBoxcxx . . $ Ui_ConnectionWidget#openCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(val);
857 break;
858
859 // looking
860 case 1:
861 //toolLooking->setOn(val);
862 uicxx . . $ ConnectionWidget#ui.->lookingCheckBoxcxx . . $ Ui_ConnectionWidget#lookingCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(val);
863 break;
864
865 // quiet
866 case 2:
867 //toolQuiet->setOn(val);
868 uicxx . . $ ConnectionWidget#ui.->quietCheckBoxcxx . . $ Ui_ConnectionWidget#quietCheckBox.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(val);
869 break;
870
871 default:
872 qWarningcxx . . $ `<external>/10450329605257866924/qlogging.h:166:9`!("checkbox doesn't exist");
873 break;
874 }
875 }
876
877 /*
878 * checkbox looking cklicked
879 */
880 void ConnectionWidgetcxx . . $ ConnectionWidget#::setLookingcxx . . $ ConnectionWidget#setLooking(b45ddcbc8423892c).(bool val)
881 {
882 set_sessionparametercxx . . $ ConnectionWidget#set_sessionparameter(4e51b35ce1bea96b).("looking"cxx . . $ QString#QString(85c52e162fed56f9)., val);
883
884 if (val)
885 // if looking then set open
886 set_sessionparametercxx . . $ ConnectionWidget#set_sessionparameter(4e51b35ce1bea96b).("open"cxx . . $ QString#QString(85c52e162fed56f9)., true);
887 }
888
889 /*
890 * checkbox open clicked
891 */
892 void ConnectionWidgetcxx . . $ ConnectionWidget#::slot_cbopencxx . . $ ConnectionWidget#slot_cbopen(49f6e7a06ebc5aa8).()
893 {
894 bool val = uicxx . . $ ConnectionWidget#ui.->openCheckBoxcxx . . $ Ui_ConnectionWidget#openCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
895 set_sessionparametercxx . . $ ConnectionWidget#set_sessionparameter(4e51b35ce1bea96b).("open"cxx . . $ QString#QString(85c52e162fed56f9)., val);
896 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("Setting session open: %d", val);
897 if (!val)
898 // if not open then set close
899 set_sessionparametercxx . . $ ConnectionWidget#set_sessionparameter(4e51b35ce1bea96b).("looking"cxx . . $ QString#QString(85c52e162fed56f9)., false);
900 /* See above comment. */
901 /*QSettings settings;
902 settings.setValue("OPEN_FOR_GAMES", val);
903 if(!val)
904 settings.setValue("LOOKING_FOR_GAMES", false);*/
905 }
906
907 /*
908 * checkbox quiet clicked
909 */
910 void ConnectionWidgetcxx . . $ ConnectionWidget#::slot_cbquietcxx . . $ ConnectionWidget#slot_cbquiet(49f6e7a06ebc5aa8).()
911 {
912 bool val = uicxx . . $ ConnectionWidget#ui.->quietCheckBoxcxx . . $ Ui_ConnectionWidget#quietCheckBox.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
913 set_sessionparametercxx . . $ ConnectionWidget#set_sessionparameter(4e51b35ce1bea96b).("quiet"cxx . . $ QString#QString(85c52e162fed56f9)., val);
914
915 /* FIXME periodic list refreshes may not be necessary, set quiet true does a lot */
916 /*if (val)
917 {
918 if(connection)
919 connection->periodicListRefreshes(false);
920 // if 'quiet' button is once set to true the list is not reliable any longer
921 }
922 else
923 {
924 if(connection)
925 connection->periodicListRefreshes(true);
926 }*/
927 }
928
929 void ConnectionWidgetcxx . . $ ConnectionWidget#::timerEventcxx . . $ ConnectionWidget#timerEvent(b9e57d1150f23bf5).(QTimerEventcxx . . $ QTimerEvent#* e)
930 {
931 // some variables for forcing send buffer and keep line established
932 static int counter = 899;
933 static int tnwait = 0;
934 static int imagecounter = 0;
935
936 //qDebug( "timer event, id %d", e->timerId() );
937
938 if (e->timerIdcxx . . $ QTimerEvent#timerId(455f465bc33b4cdf).() == seekButtonTimercxx . . $ ConnectionWidget#seekButtonTimer.)
939 {
940 imagecounter = (imagecounter+1) % 4;
941 QStringcxx . . $ QString# ic = ":/resources/pics/seeking" +cxx . . $ operator+(c75c3ae4eb9af1a8). QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(imagecounter + 1) +cxx . . $ operator+(3d22f08efddf8107).".png";
942 uicxx . . $ ConnectionWidget#ui.->seekToolButtoncxx . . $ Ui_ConnectionWidget#seekToolButton.->setIconcxx . . $ QAbstractButton#setIcon(71dcdac178620ed6).(QIconcxx . . $ QIcon#QIcon(3520e46b33348bf6).(ic));
943 return;
944 }
945 // else its the mainServerTimer
946 if (tn_readycxx . . $ ConnectionWidget#tn_ready.)
947 {
948 // case: ready to send
949 tnwait = 0;
950 }
951 else if (tnwait < 2)
952 {
953 //qDebug(QString("%1: HoldTheLine SET: something has been sent").arg(statusOnlineTime->text()));
954 // case: not ready to send, but maybe waiting for READY message
955 tnwait++;
956 // something was sent, so reset counter
957 counter = 899;//resetCounter();
958 autoAwayMessagecxx . . $ ConnectionWidget#autoAwayMessage. = false;
959 }
960
961 if (counter % 300 == 0)
962 {
963 // 5 mins away -> set auto answering
964 autoAwayMessagecxx . . $ ConnectionWidget#autoAwayMessage. = true;
965 if (counter == 0)
966 {
967 // send "ayt" every half hour anyway
968 // new: reset timer after one hour of idle state
969 // -> if not observing a game!
970 //qDebug(QString("%1 -> HoldTheLine: status = %2").arg(statusOnlineTime->text()).arg(holdTheLine));
971 #ifdef FIXME
972 if (holdTheLine)
973 sendcommand("ayt", false);
974 #endif //FIXME
975 // 12*5 min
976 counter = 899;// resetCounter();
977 #ifdef FIXME
978 if (myAccount->num_observedgames == 0)
979 {
980 // nothing observing
981 holdTheLine = false;
982 //qDebug(QString("%1: HoldTheLine END!").arg(statusOnlineTime->text()));
983 }
984 else
985 {
986 //qDebug(QString("%1: HoldTheLine LENGTHENED: observing game...").arg(statusOnlineTime->text()));
987 }
988 #endif //FIXME
989 }
990 #ifdef FIXME
991 else if (myAccount->get_gsname() == IGS && holdTheLine)
992 {
993 sendcommand("gamelist", false);
994 qDebug(QString("%1 -> gamelist").arg(statusOnlineTime->text()).toLatin1().constData());
995 }
996 #endif //FIXME
997 }
998
999 counter--;
1000 }
1001
1002 /*
1003 * The parser has sent a message to be put in the messages box
1004 */
1005 void ConnectionWidgetcxx . . $ ConnectionWidget#::slot_msgBoxcxx . . $ ConnectionWidget#slot_msgBox(3520e46b33348bf6).(const QStringcxx . . $ QString#& msg)
1006 {
1007 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!("slot_msgBox\n");
1008 uicxx . . $ ConnectionWidget#ui.->talkTabscxx . . $ Ui_ConnectionWidget#talkTabs.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(1);
1009 uicxx . . $ ConnectionWidget#ui.->msgTextEditcxx . . $ Ui_ConnectionWidget#msgTextEdit.->appendcxx . . $ QTextEdit#append(3520e46b33348bf6).(msg);
1010 }
1011
1012 bool ConnectionWidgetcxx . . $ ConnectionWidget#::isConnectedcxx . . $ ConnectionWidget#isConnected(c9857a73d68e59ba).(void)
1013 {
1014 return (connectioncxx . . $ ConnectionWidget#connection. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
1015 }
1016
1017 /* This code was taken from mainwindow_server.cpp
1018 * I guess it figures out which is min and which
1019 * is max?? */
1020 void ConnectionWidgetcxx . . $ ConnectionWidget#::setRankSpreadViewcxx . . $ ConnectionWidget#setRankSpreadView(49f6e7a06ebc5aa8).(void)
1021 {
1022 QStringcxx . . $ QString# rkMincxx . . $ QString#QString(ced63f7c635d850d)., rkMaxcxx . . $ QString#QString(ced63f7c635d850d).;
1023
1024 if ((uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 0) && (uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 0))
1025 {
1026 rkMin =cxx . . $ QString#`operator=`(d02845eef0c33901). "NR";
1027 rkMax =cxx . . $ QString#`operator=`(d02845eef0c33901). "9p";
1028 }
1029
1030 else if ( ((uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 0) && (uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 1)) ||
1031 ((uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 1) && (uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 0)) ||
1032 ((uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 1) && (uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() ==1)) )
1033 {
1034 rkMin =cxx . . $ QString#`operator=`(d02845eef0c33901). "1p";
1035 rkMax =cxx . . $ QString#`operator=`(d02845eef0c33901). "9p";
1036 }
1037
1038 else if ((uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 0) && (uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() > 1))
1039 {
1040 rkMin =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).();
1041 rkMax =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).();
1042 }
1043
1044
1045 else if ((uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() > 1) && (uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 0))
1046 {
1047 rkMin =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).();
1048 rkMax =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).();
1049 }
1050
1051 else if ((uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() > 1) && (uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 1))
1052 {
1053 rkMin =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).();
1054 rkMax =cxx . . $ QString#`operator=`(d02845eef0c33901). "9p";
1055 }
1056
1057 else if ((uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() == 1) && (uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() > 1))
1058 {
1059 rkMin =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).();
1060 rkMax =cxx . . $ QString#`operator=`(d02845eef0c33901). "9p";
1061 }
1062
1063
1064 else if ((uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() >= uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentIndexcxx . . $ QComboBox#currentIndex(455f465bc33b4cdf).() ))
1065 {
1066 rkMin =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).();
1067 rkMax =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).();
1068 }
1069 else
1070 {
1071 rkMin =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uicxx . . $ ConnectionWidget#ui.->filterRank1ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank1ComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).();
1072 rkMax =cxx . . $ QString#`operator=`(4f35bf974e7f8568). uicxx . . $ ConnectionWidget#ui.->filterRank2ComboBoxcxx . . $ Ui_ConnectionWidget#filterRank2ComboBox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).();
1073 }
1074
1075 if (connectioncxx . . $ ConnectionWidget#connection.)
1076 {
1077 playerListProxyModelcxx . . $ ConnectionWidget#playerListProxyModel.->setFilterMinRankcxx . . $ PlayerListSortFilterProxyModel#setFilterMinRank(d4f767463ce0a6b3).(connectioncxx . . $ ConnectionWidget#connection.->rankToScorecxx . . $ NetworkConnection#rankToScore(9d92bb507a34628c).(rkMincxx . . $ QString#QString(132dd6869045752b).));
1078 playerListProxyModelcxx . . $ ConnectionWidget#playerListProxyModel.->setFilterMaxRankcxx . . $ PlayerListSortFilterProxyModel#setFilterMaxRank(d4f767463ce0a6b3).(connectioncxx . . $ ConnectionWidget#connection.->rankToScorecxx . . $ NetworkConnection#rankToScore(9d92bb507a34628c).(rkMaxcxx . . $ QString#QString(132dd6869045752b).));
1079 }
1080 qDebugcxx . . $ `<external>/10450329605257866924/qlogging.h:164:9`!( "rank spread : %s - %s" , rkMin.toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).() , rkMax.toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).());
1081 }
1082
1083 void ConnectionWidgetcxx . . $ ConnectionWidget#::slot_editFriendsWatchesListcxx . . $ ConnectionWidget#slot_editFriendsWatchesList(49f6e7a06ebc5aa8).(void)
1084 {
1085 //does this crash if we do it too soon?
1086 if (connectioncxx . . $ ConnectionWidget#connection. == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!)
1087 return;
1088 FriendsListDialogcxx . . $ FriendsListDialog# * fld = new FriendsListDialogcxx . . $ FriendsListDialog#(connectioncxx . . $ ConnectionWidget#connection.,roomcxx . . $ ConnectionWidget#room.);
1089 fld->execcxx . . $ QDialog#exec(b126dc7c1de90089).();
1090 fld->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).();
1091 }