-int main(int argc, char **argv) {
-#if defined BUILD_CORE
- Global::runMode = Global::CoreOnly;
- QCoreApplication app(argc, argv);
-#elif defined BUILD_QTGUI
- Global::runMode = Global::ClientOnly;
- QApplication app(argc, argv);
-#else
- Global::runMode = Global::Monolithic;
- QApplication app(argc, argv);
-#endif
- QCoreApplication::setOrganizationDomain("quassel-irc.org");
- QCoreApplication::setApplicationName("Quassel IRC");
- QCoreApplication::setOrganizationName("Quassel IRC Development Team");
-
- Global::quasselDir = QDir::homePath() + "/.quassel";
-#ifndef BUILD_QTGUI
- Core::instance(); // create and init the core
-#endif
-
- Settings::init();
-
-#ifndef BUILD_CORE
- Style::init();
- QtGui *gui = new QtGui();
- Client::init(gui);
- gui->init();
-#endif
-
- int exitCode = app.exec();