gameexefactory.h
1 //------------------------------------------------------------------------------
2 // gameexefactory.h
3 //------------------------------------------------------------------------------
4 //
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License, or (at your option) any later version.
9 //
10 // This library 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 GNU
13 // Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; 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 #include <QList>
31 
32 class EnginePlugin;
33 class ExeFilePath;
34 class GameFileList;
35 class Server;
36 
37 
53 class MAIN_EXPORT GameExeFactory : public QObject
54 {
55  Q_OBJECT
56 
57  public:
59  virtual ~GameExeFactory();
60 
78  QList<ExeFilePath> additionalExecutables(int execType) const;
79 
89  GameFileList gameFiles() const;
90 
94  EnginePlugin* plugin() const;
95 
96  protected:
97  POLYMORPHIC_SETTER_DECLARE_CONST(GameFileList, GameExeFactory, gameFiles, ());
98  GameFileList gameFiles_default() const;
99 
100  POLYMORPHIC_SETTER_DECLARE_CONST(QList<ExeFilePath>, GameExeFactory, additionalExecutables, (int));
101  QList<ExeFilePath> additionalExecutables_default(int execType) const;
102 
103  private:
105 };
106 
107 #endif
GameFile collection.
Definition: gamefile.h:145
Returns executable file retrievers from plugins to Doomseeker.
A representation of a server for a given game.
Definition: server.h:93
A simple executable path & working dir structure.
Definition: exefile.h:147