gameexefactory.h
1 //------------------------------------------------------------------------------
2 // gameexefactory.h
3 //------------------------------------------------------------------------------
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 // 02110-1301, USA.
19 //
20 //------------------------------------------------------------------------------
21 // Copyright (C) 2013 "Zalewa" <zalewapl@gmail.com>
22 //------------------------------------------------------------------------------
23 #ifndef id53E6D544_EC39_49F8_93CF518BBB413164
24 #define id53E6D544_EC39_49F8_93CF518BBB413164
25 
26 #include "dptr.h"
27 #include "global.h"
28 #include "serverapi/polymorphism.h"
29 #include <QObject>
30 
31 class EnginePlugin;
32 class ExeFile;
33 class Server;
34 
35 
54 class MAIN_EXPORT GameExeFactory : public QObject
55 {
56  Q_OBJECT
57 
58  public:
60  virtual ~GameExeFactory();
61 
69  ExeFile* offline();
70  POLYMORPHIC_SETTER_DECLARE(ExeFile*, GameExeFactory, offline, ());
74  EnginePlugin* plugin();
83  ExeFile* server();
84  POLYMORPHIC_SETTER_DECLARE(ExeFile*, GameExeFactory, server, ());
85 
86  protected:
87  ExeFile* offline_default();
88  ExeFile* server_default();
89 
90  private:
92 };
93 
94 #endif
Returns executable file retrievers from plugins to Doomseeker.
A representation of a server for a given game.
Definition: server.h:93
Access to external program executables (game clients, servers, and so on).
Definition: exefile.h:48