ryxeo-webphotoalbum-git / main.cpp @ 8ed8fc1a
Historique | Voir | Annoter | Télécharger (1,72 ko)
1 |
/** Album Photo -- RyXéo SARL
|
---|---|
2 |
* @see https://redmine.ryxeo.com/projects/
|
3 |
* @author 2012 Eric Seigne <eric.seigne@ryxeo.com>
|
4 |
* @see The GNU Public License (GNU/GPL) v3
|
5 |
*
|
6 |
*
|
7 |
*
|
8 |
* This program is free software; you can redistribute it and/or modify
|
9 |
* it under the terms of the GNU General Public License as published by
|
10 |
* the Free Software Foundation; either version 3 of the License, or
|
11 |
* (at your option) any later version.
|
12 |
*
|
13 |
* This program is distributed in the hope that it will be useful, but
|
14 |
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
15 |
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
16 |
* for more details.
|
17 |
*
|
18 |
* You should have received a copy of the GNU General Public License along
|
19 |
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
20 |
*/
|
21 |
|
22 |
|
23 |
#include "abuleduapplicationv1.h" |
24 |
#include "version.h" |
25 |
#include "webphotoalbum.h" |
26 |
|
27 |
void debugOutput(QtMsgType type, const char *msg) |
28 |
{ |
29 |
switch (type) {
|
30 |
case QtDebugMsg:
|
31 |
#ifndef QT_NO_DEBUG
|
32 |
fprintf(stderr, "Debug: %s\n", msg);
|
33 |
#endif
|
34 |
break;
|
35 |
case QtWarningMsg:
|
36 |
#ifndef QT_NO_DEBUG
|
37 |
fprintf(stderr, "Warning: %s\n", msg);
|
38 |
#endif
|
39 |
break;
|
40 |
case QtCriticalMsg:
|
41 |
fprintf(stderr, "Critical: %s\n", msg);
|
42 |
break;
|
43 |
case QtFatalMsg:
|
44 |
fprintf(stderr, "Fatal: %s\n", msg);
|
45 |
abort(); |
46 |
} |
47 |
} |
48 |
|
49 |
int main(int argc, char *argv[]) |
50 |
{ |
51 |
// qInstallMsgHandler(debugOutput);
|
52 |
|
53 |
AbulEduApplicationV1 a(argc, argv,VER_INTERNALNAME_STR, VER_PRODUCTVERSION_STR, VER_COMPANYDOMAIN_STR, VER_COMPANYNAME_STR); |
54 |
a.setAbeApplicationLongName(QObject::trUtf8(VER_FILEDESCRIPTION_STR)); |
55 |
WebPhotoAlbum w; |
56 |
w.show(); |
57 |
|
58 |
return a.exec();
|
59 |
} |