Debian Codegraph @

src/listviews.h

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
22 #ifndef LISTVIEWS_H
23 #define LISTVIEWS_Hcxx . . $ `src/listviews.h:23:9`!
24 #include <QAbstractTableModel>
25 #include <QSortFilterProxyModel>
26 class GameListingcxx . . $ GameListing#;
27 class PlayerListingcxx . . $ PlayerListing#;
28
29 enum ObserverListingColumncxx . . $ ObserverListingColumn# { OC_NAMEcxx . . $ OC_NAME.=0, OC_RANKcxx . . $ OC_RANK., O_TOTALCOLUMNScxx . . $ O_TOTALCOLUMNS. };
30
31 enum PlayerListingColumncxx . . $ PlayerListingColumn# { PC_STATUScxx . . $ PC_STATUS.=0, PC_NAMEcxx . . $ PC_NAME., PC_RANKcxx . . $ PC_RANK., PC_PLAYINGcxx . . $ PC_PLAYING.,
32 PC_OBSERVINGcxx . . $ PC_OBSERVING., PC_WINScxx . . $ PC_WINS., PC_LOSSEScxx . . $ PC_LOSSES., PC_IDLEcxx . . $ PC_IDLE., PC_COUNTRYcxx . . $ PC_COUNTRY.,
33 PC_MATCHPREFScxx . . $ PC_MATCHPREFS., P_TOTALCOLUMNScxx . . $ P_TOTALCOLUMNS., PC_NOTIFYcxx . . $ PC_NOTIFY., PC_ONLINEcxx . . $ PC_ONLINE.};
34
35 enum SimplePlayerListingColumncxx . . $ SimplePlayerListingColumn# { SPC_NAMEcxx . . $ SPC_NAME.=0, SPC_NOTIFYcxx . . $ SPC_NOTIFY. };
36
37 enum GameListingColumncxx . . $ GameListingColumn# { GC_IDcxx . . $ GC_ID.=0, GC_WHITENAMEcxx . . $ GC_WHITENAME., GC_WHITERANKcxx . . $ GC_WHITERANK., GC_BLACKNAMEcxx . . $ GC_BLACKNAME.,
38 GC_BLACKRANKcxx . . $ GC_BLACKRANK.,
39 GC_MOVEScxx . . $ GC_MOVES., GC_SIZEcxx . . $ GC_SIZE., GC_HANDICAPcxx . . $ GC_HANDICAP., GC_KOMIcxx . . $ GC_KOMI.,
40 GC_BYOMIcxx . . $ GC_BYOMI., GC_FLAGScxx . . $ GC_FLAGS.,
41 GC_OBSERVERScxx . . $ GC_OBSERVERS., G_TOTALCOLUMNScxx . . $ G_TOTALCOLUMNS., GC_RUNNINGcxx . . $ GC_RUNNING. };
42
43 #define LIST_SORT_ROLEcxx . . $ `src/listviews.h:43:9`! Qt::UserRole
44
45 class PlayerListSortFilterProxyModelcxx . . $ PlayerListSortFilterProxyModel# : public QSortFilterProxyModelcxx . . $ QSortFilterProxyModel#
46 {
47 Q_OBJECTcxx . . $ PlayerListSortFilterProxyModel#trUtf8(75d9f1c324b4579d).
48 public:
49 PlayerListSortFilterProxyModelcxx . . $ PlayerListSortFilterProxyModel#PlayerListSortFilterProxyModel(749de1b6ae65bddd).(QObjectcxx . . $ QObject# * parent = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
50 void setFilterOpencxx . . $ PlayerListSortFilterProxyModel#setFilterOpen(b45ddcbc8423892c).(bool state);
51 void setFilterFriendscxx . . $ PlayerListSortFilterProxyModel#setFilterFriends(b45ddcbc8423892c).(bool state);
52 void setFilterFanscxx . . $ PlayerListSortFilterProxyModel#setFilterFans(b45ddcbc8423892c).(bool state);
53 void setFilterMinRankcxx . . $ PlayerListSortFilterProxyModel#setFilterMinRank(d4f767463ce0a6b3).(int rank);
54 void setFilterMaxRankcxx . . $ PlayerListSortFilterProxyModel#setFilterMaxRank(d4f767463ce0a6b3).(int rank);
55 protected:
56 bool filterAcceptsRowcxx . . $ PlayerListSortFilterProxyModel#filterAcceptsRow(5556b7879475181c).(int sourceRow, const QModelIndexcxx . . $ QModelIndex# &sourceParent) const;
57 private:
58 int rankMincxx . . $ PlayerListSortFilterProxyModel#rankMin.;
59 int rankMaxcxx . . $ PlayerListSortFilterProxyModel#rankMax.;
60 bool opencxx . . $ PlayerListSortFilterProxyModel#open., friendscxx . . $ PlayerListSortFilterProxyModel#friends., fanscxx . . $ PlayerListSortFilterProxyModel#fans., noblockcxx . . $ PlayerListSortFilterProxyModel#noblock.;
61 };
62
63 class GamesListSortFilterProxyModelcxx . . $ GamesListSortFilterProxyModel# : public QSortFilterProxyModelcxx . . $ QSortFilterProxyModel#
64 {
65 Q_OBJECTcxx . . $ QMetaObject#Call#
66 public:
67 GamesListSortFilterProxyModelcxx . . $ GamesListSortFilterProxyModel#GamesListSortFilterProxyModel(749de1b6ae65bddd).(QObjectcxx . . $ QObject# * parent = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!);
68 void setFilterWatchcxx . . $ GamesListSortFilterProxyModel#setFilterWatch(b45ddcbc8423892c).(bool state);
69 protected:
70 bool filterAcceptsRowcxx . . $ GamesListSortFilterProxyModel#filterAcceptsRow(5556b7879475181c).(int sourceRow, const QModelIndexcxx . . $ QModelIndex# &sourceParent) const;
71 private:
72 bool watchescxx . . $ GamesListSortFilterProxyModel#watches.;
73 };
74
75 class PlayerListModelcxx . . $ PlayerListModel# : public QAbstractTableModelcxx . . $ QAbstractTableModel#
76 {
77 Q_OBJECTcxx . . $ PlayerListModel#QPrivateSignal#
78 public:
79 PlayerListModelcxx . . $ PlayerListModel#PlayerListModel(49f6e7a06ebc5aa8).();
80 ~cxx . . $ PlayerListModel#`~PlayerListModel`(ced63f7c635d850d).PlayerListModelcxx . . $ PlayerListModel#();
81
82 virtual int rowCountcxx . . $ PlayerListModel#rowCount(e3878d4d6cd9529c).(const QModelIndexcxx . . $ QModelIndex# & parent = QModelIndexcxx . . $ QModelIndex#QModelIndex(ced63f7c635d850d).()) const;
83 QModelIndexcxx . . $ QModelIndex# indexcxx . . $ PlayerListModel#index(37dbccf64c4e392). ( int row, int column, const QModelIndexcxx . . $ QModelIndex# & parent = QModelIndexcxx . . $ QModelIndex#QModelIndex(ced63f7c635d850d).() ) const;
84 virtual QVariantcxx . . $ QVariant# datacxx . . $ PlayerListModel#data(69b5b18a001c0029).(const QModelIndexcxx . . $ QModelIndex# & index, int role) const;
85 Qtcxx . . $ Qt/::ItemFlagscxx . . $ Qt/ItemFlags# flagscxx . . $ PlayerListModel#flags(36b38c1b3d3f7b45).(const QModelIndexcxx . . $ QModelIndex# & index) const;
86 virtual QVariantcxx . . $ QVariant# headerDatacxx . . $ PlayerListModel#headerData(b8cfec0985494997).(int section, Qtcxx . . $ Qt/::Orientationcxx . . $ Qt/Orientation# orientation, int role) const;
87 virtual int columnCountcxx . . $ PlayerListModel#columnCount(e3878d4d6cd9529c).(const QModelIndexcxx . . $ QModelIndex# & parent = QModelIndexcxx . . $ QModelIndex#QModelIndex(ced63f7c635d850d).()) const;
88
89 void insertListingcxx . . $ PlayerListModel#insertListing(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * item);
90 void removeListingcxx . . $ PlayerListModel#removeListing(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * const l);
91 void clearListcxx . . $ PlayerListModel#clearList(49f6e7a06ebc5aa8).(void);
92 PlayerListingcxx . . $ PlayerListing# * playerListingFromIndexcxx . . $ PlayerListModel#playerListingFromIndex(b5acbb67a572cd68).(const QModelIndexcxx . . $ QModelIndex# &);
93 void setAccountNamecxx . . $ PlayerListModel#setAccountName(3520e46b33348bf6).(const QStringcxx . . $ QString# & name) { account_namecxx . . $ PlayerListModel#account_name. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). name; }
94 PlayerListingcxx . . $ PlayerListing# * getEntrycxx . . $ PlayerListModel#getEntry(d3f53ac2de9f0b45).(const QStringcxx . . $ QString# & name);
95 PlayerListingcxx . . $ PlayerListing# * getEntrycxx . . $ PlayerListModel#getEntry(ad2afa9294843726).(unsigned int id);
96 PlayerListingcxx . . $ PlayerListing# * getPlayerFromNotNickNamecxx . . $ PlayerListModel#getPlayerFromNotNickName(d3f53ac2de9f0b45).(const QStringcxx . . $ QString# & notnickname);
97 PlayerListingcxx . . $ PlayerListing# * updateEntrycxx . . $ PlayerListModel#updateEntry(e0d5f17158edcac4).(PlayerListingcxx . . $ PlayerListing# * listing);
98 protected:
99 friend class PlayerListSortFilterProxyModelcxx . . $ PlayerListSortFilterProxyModel#;
100 friend class Roomcxx . . $ Room#;
101 QListcxx . . $ QList# <PlayerListingcxx . . $ PlayerListing# *> itemscxx . . $ PlayerListModel#items.;
102 QStringcxx . . $ QString# account_namecxx . . $ PlayerListModel#account_name.;
103 };
104
105 class ObserverListModelcxx . . $ ObserverListModel# : public PlayerListModelcxx . . $ PlayerListModel#
106 {
107 public:
108 QVariantcxx . . $ QVariant# headerDatacxx . . $ ObserverListModel#headerData(b8cfec0985494997).(int section, Qtcxx . . $ Qt/::Orientationcxx . . $ Qt/Orientation# orientation, int role) const;
109 virtual int columnCountcxx . . $ ObserverListModel#columnCount(e3878d4d6cd9529c).(const QModelIndexcxx . . $ QModelIndex# & parent = QModelIndexcxx . . $ QModelIndex#QModelIndex(ced63f7c635d850d).()) const;
110 virtual QVariantcxx . . $ QVariant# datacxx . . $ ObserverListModel#data(69b5b18a001c0029).(const QModelIndexcxx . . $ QModelIndex# & index, int role) const;
111 };
112
113 class SimplePlayerListModelcxx . . $ SimplePlayerListModel#: public PlayerListModelcxx . . $ PlayerListModel#
114 {
115 public:
116 SimplePlayerListModelcxx . . $ SimplePlayerListModel#SimplePlayerListModel(b45ddcbc8423892c).(bool _notify_column);
117 virtual QVariantcxx . . $ QVariant# headerDatacxx . . $ SimplePlayerListModel#headerData(b8cfec0985494997).(int section, Qtcxx . . $ Qt/::Orientationcxx . . $ Qt/Orientation# orientation, int role) const;
118 virtual int columnCountcxx . . $ SimplePlayerListModel#columnCount(e3878d4d6cd9529c).(const QModelIndexcxx . . $ QModelIndex# & parent = QModelIndexcxx . . $ QModelIndex#QModelIndex(ced63f7c635d850d).()) const;
119 virtual QVariantcxx . . $ QVariant# datacxx . . $ SimplePlayerListModel#data(69b5b18a001c0029).(const QModelIndexcxx . . $ QModelIndex# & index, int role) const;
120 private:
121 bool notify_columncxx . . $ SimplePlayerListModel#notify_column.;
122 };
123
124 class GamesListModelcxx . . $ GamesListModel# : public QAbstractTableModelcxx . . $ QAbstractTableModel#
125 {
126 Q_OBJECTcxx . . $ QMetaObject#Call#
127 public:
128 GamesListModelcxx . . $ GamesListModel#GamesListModel(49f6e7a06ebc5aa8).();
129 ~cxx . . $ GamesListModel#`~GamesListModel`(ced63f7c635d850d).GamesListModelcxx . . $ GamesListModel#();
130 virtual QVariantcxx . . $ QVariant# headerDatacxx . . $ GamesListModel#headerData(b8cfec0985494997).(int section, Qtcxx . . $ Qt/::Orientationcxx . . $ Qt/Orientation# orientation, int role) const;
131 virtual int columnCountcxx . . $ GamesListModel#columnCount(e3878d4d6cd9529c).(const QModelIndexcxx . . $ QModelIndex# & parent = QModelIndexcxx . . $ QModelIndex#QModelIndex(ced63f7c635d850d).()) const;
132 GameListingcxx . . $ GameListing# * getEntrycxx . . $ GamesListModel#getEntry(d402167d8f57cf00).(unsigned int id);
133 void updateListingcxx . . $ GamesListModel#updateListing(9a447f3b9a8a5041).(GameListingcxx . . $ GameListing# *listing);
134 void clearListcxx . . $ GamesListModel#clearList(49f6e7a06ebc5aa8).(void);
135 virtual QVariantcxx . . $ QVariant# datacxx . . $ GamesListModel#data(69b5b18a001c0029).(const QModelIndexcxx . . $ QModelIndex# & index, int role) const;
136 GameListingcxx . . $ GameListing# * gameListingFromIndexcxx . . $ GamesListModel#gameListingFromIndex(bc3c1a338b377edc).(const QModelIndexcxx . . $ QModelIndex# &);
137 void insertListingcxx . . $ GamesListModel#insertListing(9a447f3b9a8a5041).(GameListingcxx . . $ GameListing# *item);
138 virtual int rowCountcxx . . $ GamesListModel#rowCount(e3878d4d6cd9529c).(const QModelIndexcxx . . $ QModelIndex# & parent = QModelIndexcxx . . $ QModelIndex#QModelIndex(ced63f7c635d850d).()) const;
139 QModelIndexcxx . . $ QModelIndex# indexcxx . . $ GamesListModel#index(37dbccf64c4e392). ( int row, int column, const QModelIndexcxx . . $ QModelIndex# & parent = QModelIndexcxx . . $ QModelIndex#QModelIndex(ced63f7c635d850d).() ) const;
140 signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!:
141 void countChangedcxx . . $ GamesListModel#countChanged(d4f767463ce0a6b3).(int);
142 protected:
143 friend class GamesListSortFilterProxyModelcxx . . $ GamesListSortFilterProxyModel#;
144 friend class Roomcxx . . $ Room#;
145 QListcxx . . $ QList# <GameListingcxx . . $ GameListing# *> itemscxx . . $ GamesListModel#items.;
146 };
147
148 #endif //!LISTVIEWS_H