~ubuntu-branches/ubuntu/vivid/qgo/vivid-proposed

« back to all changes in this revision

Viewing changes to src/network/roomregistries.h

  • Committer: Package Import Robot
  • Author(s): Yann Dirson
  • Date: 2013-08-11 22:52:24 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20130811225224-9on9grq41yxab82w
Tags: 2.0~git-20130413-1
* Snapshot from new upstream tree (Closes: #717336).
  * Fixes player list sorting (Closes: #458252)
  * Fixes updating files list in "open file" dialog (Closes: #684937).
* Fixed MimeType in qgo.desktop to be a list (Closes: #629450).
* Added a README.source explaining how to build upstream tarball.
* Added VCS fields in control file.
* Bumped Standards-Version to 3.9.4, no change.
* Dropped obsolete build-dep on autotools-dev.
* Added qgo2 authors to copyright file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
 
23
 
#include "../registry.h"
24
 
 
25
 
class PlayerListModel;
26
 
class GamesListModel;
27
 
 
28
 
class PlayerListingRegistry : public Registry <QString, PlayerListing>
29
 
{
30
 
        public:
31
 
                PlayerListingRegistry(PlayerListModel * model) : playerListModel(model) {};
32
 
                PlayerListing * getPlayerFromNotNickName(const QString & notnickname);
33
 
        private:
34
 
                virtual void initEntry(PlayerListing * l);
35
 
                virtual void onErase(PlayerListing * l);                
36
 
                PlayerListModel * playerListModel;
37
 
};
38
 
 
39
 
class PlayerListingIDRegistry : public Registry <unsigned int, PlayerListing>
40
 
{
41
 
        public:
42
 
                PlayerListingIDRegistry(PlayerListModel * model) : playerListModel(model) {};
43
 
                PlayerListing * getPlayerFromName(const QString & name);
44
 
        private:
45
 
                virtual void initEntry(PlayerListing * l);
46
 
                virtual void onErase(PlayerListing * l);                
47
 
                PlayerListModel * playerListModel;
48
 
};
49
 
 
50
 
class GameListingRegistry : public Registry <unsigned int, GameListing>
51
 
{
52
 
        public:
53
 
                GameListingRegistry(GamesListModel * model) : gamesListModel(model) {};
54
 
        private:
55
 
                virtual void initEntry(GameListing * l);
56
 
                virtual void onErase(GameListing * l);          
57
 
                GamesListModel * gamesListModel;
58
 
};