Planeshift
updater.h
Go to the documentation of this file.
1 /*
2 * updater.cpp - Author: Mike Gist
3 *
4 * Copyright (C) 2007 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5 *
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation (version 2 of the License)
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 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 *
18 */
19 
20 /*
21 * This is the file for the console updater only. Everything in here needs to be
22 * written again for the launcher!
23 */
24 
25 #ifndef __UPDATER_H__
26 #define __UPDATER_H__
27 
28 struct iObjectRegistry;
29 
30 class psUpdater
31 {
32 public:
33  psUpdater(int argc, char* argv[]);
34  ~psUpdater();
35  iObjectRegistry* GetObjectRegistry() const { return object_reg; }
36  void RunUpdate(UpdaterEngine* engine) const;
37 private:
38  static iObjectRegistry* object_reg;
39 };
40 
41 #endif // __UPDATER_H__
psUpdater(int argc, char *argv[])
void RunUpdate(UpdaterEngine *engine) const
iObjectRegistry * GetObjectRegistry() const
Definition: updater.h:35