66 lines
2.0 KiB
C++
66 lines
2.0 KiB
C++
/****************************************************************************
|
|
_ _
|
|
| | | |
|
|
_ | | ___ _ _| | _ ____ ____ ____ ___
|
|
/ || |/ _ \| | | | || \ / _ | _ \ / _ |/ _ \
|
|
( (_| | |_| | |_| | |_) | ( | | | | ( ( | | |_| |
|
|
\____|\___/ \____|____/ \_||_|_| |_|\_|| |\___/
|
|
(_____|
|
|
|
|
Copyright (C) 2009 xxxyyyzzz <imsframework(at)gmail.com>
|
|
|
|
This file is part of Open Source Doubango IMS Client Framework project.
|
|
|
|
DOUBANGO is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
DOUBANGO is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with DOUBANGO.
|
|
****************************************************************************/
|
|
#include "doubs.h"
|
|
#include "ScreenAuthentication.h"
|
|
|
|
#include <QtGui/QApplication>
|
|
#include <QtGui>
|
|
|
|
#include <globals.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
|
|
QPixmap pix(":/doubs/Images/splash.PNG");
|
|
QSplashScreen splash(pix);
|
|
splash.show();
|
|
|
|
/// ----BEGIN
|
|
|
|
/* init globals */
|
|
splash.showMessage("globals::init");
|
|
globals::init();
|
|
a.processEvents();
|
|
|
|
/* register Screens */
|
|
splash.showMessage("Register functions");
|
|
globals::getScreenMgr()->registerScreenCreatorFunc(ScreenAuthentication::getType(), ScreenAuthentication::CreateScreen);
|
|
a.processEvents();
|
|
|
|
/// ---- END
|
|
|
|
/* create and show main window */
|
|
doubs w;
|
|
w.show();
|
|
|
|
/* finish splash */
|
|
splash.finish(&w);
|
|
|
|
return a.exec();
|
|
}
|