This file is indexed.

/usr/include/kggzmod/request.h is in libkdegames-dev 4:4.8.2-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
/*
    This file is part of the kggzmod library.
    Copyright (c) 2005 - 2007 Josef Spillner <josef@ggzgamingzone.org>

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Library General Public License for more details.

    You should have received a copy of the GNU Library General Public License
    along with this library; see the file COPYING.LIB.  If not, write to
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
    Boston, MA 02110-1301, USA.
*/

#ifndef KGGZMOD_REQUEST_H
#define KGGZMOD_REQUEST_H

#include <QtCore/QMap>
#include <QtCore/QString>

#include "kggzmod_export.h"

namespace KGGZMod
{

/**
 * @short Requests to the GGZ core client.
 *
 * Requests are sent from the game client to the GGZ core client whenever
 * there is a need to change something about the game or to get more
 * information. The first group includes seat changes (standing up,
 * sitting down, booting players, adding bots and removing bots again).
 * The second group includes retrieving extended information about a
 * player or all players.
 * In addition, table chat can also happen through a request.
 *
 * When using \b KGGZSeatsDialog, everything except for chat can
 * be left to the dialog.
 *
 * @author Josef Spillner (josef@ggzgamingzone.org)
 */
class KGGZMOD_EXPORT Request
{
	public:
		/**
		 * The type of the request. Depending on this type,
		 * the object might be casted to a more specific
		 * class.
		 */
		enum Type
		{
			state,	/**< Change the state. */
			stand,	/**< Stand up from seat. */
			sit,	/**< Sit down again if possible. */
			boot,	/**< Boot a player from table. */
			bot,	/**< Let a bot join the game. */
			open,	/**< Open up a bot seat. */
			chat,	/**< Send a chat message. */
			info,	/**< Request infos about a player. */
			rankings /**< Top player rankings for this game. */
		};

		/**
		 * Creates a request of a specific type.
		 *
		 * The request will not be valid until all \ref data
		 * fields are properly filled out. It is therefore recommended
		 * to not use the request base class, but to use specific
		 * classes and their constructors which take care of this.
		 *
		 * @param type Type of the request
		 *
		 * @internal
		 */
		Request(Type type);

		/**
		 * Returns the type of a request.
		 *
		 * @return type of a request
		 */
		Type type() const;

		/**
		 * Data storage for all requests.
		 *
		 * Independent of the actual type of the request,
		 * all important data is stored in this map.
		 */
		QMap<QString, QString> data;

	private:
		Type m_type;
};

/**
 * @short State request to the GGZ core client.
 *
 * If the game should enter a new \ref Module::State, a request
 * of this type should be sent.
 *
 * Refer to the \ref Request documentation for everything else.
 *
 * @author Josef Spillner (josef@ggzgamingzone.org)
 */
class KGGZMOD_EXPORT StateRequest : public Request
{
	public:
		StateRequest(/*Module::State*/int state);
};

/**
 * @short Stand-up request to the GGZ core client.
 *
 * This request lets oneself change from player to spectator.
 * The seat occupied before will then be open.
 *
 * Refer to the \ref Request documentation for everything else.
 *
 * @author Josef Spillner (josef@ggzgamingzone.org)
 */
class KGGZMOD_EXPORT StandRequest : public Request
{
	public:
		StandRequest();
};

/**
 * @short Sit-down request to the GGZ core client.
 *
 * This request lets one become a player again if one is currently
 * a spectator.
 *
 * Refer to the \ref Request documentation for everything else.
 *
 * @author Josef Spillner (josef@ggzgamingzone.org)
 */
class KGGZMOD_EXPORT SitRequest : public Request
{
	public:
		SitRequest(int seat);
};

/**
 * @short Player-booting request to the GGZ core client.
 *
 * This request removes a player from the table.
 * The seat will then be open.
 *
 * Refer to the \ref Request documentation for everything else.
 *
 * @author Josef Spillner (josef@ggzgamingzone.org)
 */
class KGGZMOD_EXPORT BootRequest : public Request
{
	public:
		BootRequest(const QString &playername);
};

/**
 * @short Bot player addition request to the GGZ core client.
 *
 * This request puts a bot player into a specific seat,
 * which must be empty at the time of issuing this request.
 *
 * Refer to the \ref Request documentation for everything else.
 *
 * @author Josef Spillner (josef@ggzgamingzone.org)
 */
class KGGZMOD_EXPORT BotRequest : public Request
{
	public:
		BotRequest(int seat);
};

/**
 * @short Open seat request to the GGZ core client.
 *
 * To remove a bot player from the table, this request is
 * sent. The seat will then be open again.
 *
 * Refer to the \ref Request documentation for everything else.
 *
 * @author Josef Spillner (josef@ggzgamingzone.org)
 */
class KGGZMOD_EXPORT OpenRequest : public Request
{
	public:
		OpenRequest(int seat);
};

/**
 * @short Chat request to the GGZ core client.
 *
 * Sending a chat message to the other players at the same table,
 * that is, in the same game, is performed by sending a request
 * of this type.
 *
 * Refer to the \ref Request documentation for everything else.
 *
 * @author Josef Spillner (josef@ggzgamingzone.org)
 */
class ChatRequest : public Request
{
	public:
		ChatRequest(const QString &message);
};

/**
 * @short Information request to the GGZ core client.
 *
 * Such requests retrieve additional player information.
 * If the \b seat parameter is included in the constructor,
 * only the information about a specific player is retrieved.
 * Otherwise, information about all players will be returned.
 *
 * Refer to the \ref Request documentation for everything else.
 *
 * @author Josef Spillner (josef@ggzgamingzone.org)
 */
class KGGZMOD_EXPORT InfoRequest : public Request
{
	public:
		InfoRequest(int seat);
		InfoRequest();
};

/**
 * @short Rankings request to the GGZ core client.
 *
 * A rankings request delivers the top-N players (where N
 * is determined by the GGZ server) for the current game
 * type. The resulting RankingsEvent is similar to a StatsEvent
 * except that it is triggered by the game client and it
 * references players which are not necessarily on the
 * current table.
 *
 * Refer to the \ref Request documentation for everything else.
 *
 * @author Josef Spillner (josef@ggzgamingzone.org)
 */
class KGGZMOD_EXPORT RankingsRequest : public Request
{
	public:
		RankingsRequest();
};

}

#endif