Crossfire Server, Trunk  R20513
cre.cpp
Go to the documentation of this file.
1 #include <Qt>
2 #include <QApplication>
3 #include <QCoreApplication>
4 
5 #include <CREMainWindow.h>
6 #include "CRESettings.h"
7 
8 #include "CREPixmap.h"
9 
10 #include "CREFilterDefinition.h"
12 #include "CREReportDefinition.h"
14 
15 
16 int main(int argc, char **argv) {
17  QCoreApplication::setOrganizationName("The Legendary Team of Ailesse");
18  QCoreApplication::setApplicationName("CRE");
19  QApplication app(argc, argv);
20 
21  qRegisterMetaTypeStreamOperators<CREFilterDefinition>("CREFilterDefinition");
22  qRegisterMetaTypeStreamOperators<CREFilterDefinitionManager>("CREFilterDefinitionManager");
23  qRegisterMetaTypeStreamOperators<CREReportDefinition>("CREReportDefinition");
24  qRegisterMetaTypeStreamOperators<CREReportDefinitionManager>("CREReportDefinitionManager");
25 
27 
29  if (!settings.ensureOptions())
30  return -1;
31 
32  CREMainWindow win;
33  win.show();
34 
35  return app.exec();
36 }
struct Settings settings
Server settings.
Definition: init.c:40
int main(int argc, char **argv)
Definition: cre.cpp:16
static void init()
Definition: CREPixmap.cpp:17
bool ensureOptions()
Definition: CRESettings.cpp:11