Changeset View
Changeset View
Standalone View
Standalone View
krfb/main.cpp
Show All 13 Lines | |||||
14 | * (at your option) any later version. * | 14 | * (at your option) any later version. * | ||
15 | * * | 15 | * * | ||
16 | ***************************************************************************/ | 16 | ***************************************************************************/ | ||
17 | 17 | | |||
18 | #include "mainwindow.h" | 18 | #include "mainwindow.h" | ||
19 | #include "trayicon.h" | 19 | #include "trayicon.h" | ||
20 | #include "invitationsrfbserver.h" | 20 | #include "invitationsrfbserver.h" | ||
21 | #include "krfbconfig.h" | 21 | #include "krfbconfig.h" | ||
22 | #include "krfb_version.h" | ||||
22 | 23 | | |||
23 | #include <KAboutData> | 24 | #include <KAboutData> | ||
24 | #include <KDBusService> | 25 | #include <KDBusService> | ||
25 | #include <KLocalizedString> | 26 | #include <KLocalizedString> | ||
26 | #include <KMessageBox> | 27 | #include <KMessageBox> | ||
27 | 28 | | |||
28 | #include <QDebug> | 29 | #include <QDebug> | ||
29 | #include <QPixmap> | 30 | #include <QPixmap> | ||
30 | #include <qwindowdefs.h> | 31 | #include <qwindowdefs.h> | ||
31 | #include <QX11Info> | 32 | #include <QX11Info> | ||
32 | 33 | | |||
33 | #include <signal.h> | 34 | #include <signal.h> | ||
34 | #include <X11/extensions/XTest.h> | 35 | #include <X11/extensions/XTest.h> | ||
35 | #include <QCommandLineParser> | 36 | #include <QCommandLineParser> | ||
36 | #include <QCommandLineOption> | 37 | #include <QCommandLineOption> | ||
37 | 38 | | |||
38 | static const char KRFB_VERSION[] = "5.0"; | 39 | | ||
39 | static const char description[] = I18N_NOOP("VNC-compatible server to share " | 40 | static const char description[] = I18N_NOOP("VNC-compatible server to share " | ||
40 | "desktops"); | 41 | "desktops"); | ||
41 | 42 | | |||
42 | static bool checkX11Capabilities() | 43 | static bool checkX11Capabilities() | ||
43 | { | 44 | { | ||
44 | int bp1, bp2, majorv, minorv; | 45 | int bp1, bp2, majorv, minorv; | ||
45 | Bool r = XTestQueryExtension(QX11Info::display(), &bp1, &bp2, | 46 | Bool r = XTestQueryExtension(QX11Info::display(), &bp1, &bp2, | ||
46 | &majorv, &minorv); | 47 | &majorv, &minorv); | ||
Show All 27 Lines | |||||
74 | int main(int argc, char *argv[]) | 75 | int main(int argc, char *argv[]) | ||
75 | { | 76 | { | ||
76 | QApplication app(argc, argv); | 77 | QApplication app(argc, argv); | ||
77 | 78 | | |||
78 | KLocalizedString::setApplicationDomain("krfb"); | 79 | KLocalizedString::setApplicationDomain("krfb"); | ||
79 | 80 | | |||
80 | KAboutData aboutData("krfb", | 81 | KAboutData aboutData("krfb", | ||
81 | i18n("Desktop Sharing"), | 82 | i18n("Desktop Sharing"), | ||
82 | KRFB_VERSION, | 83 | QStringLiteral(KRFB_VERSION_STRING), | ||
83 | i18n(description), | 84 | i18n(description), | ||
84 | KAboutLicense::GPL, | 85 | KAboutLicense::GPL, | ||
85 | i18n("(c) 2009-2010, Collabora Ltd.\n" | 86 | i18n("(c) 2009-2010, Collabora Ltd.\n" | ||
86 | "(c) 2007, Alessandro Praduroux\n" | 87 | "(c) 2007, Alessandro Praduroux\n" | ||
87 | "(c) 2001-2003, Tim Jansen\n" | 88 | "(c) 2001-2003, Tim Jansen\n" | ||
88 | "(c) 2001, Johannes E. Schindelin\n" | 89 | "(c) 2001, Johannes E. Schindelin\n" | ||
89 | "(c) 2000-2001, Const Kaplinsky\n" | 90 | "(c) 2000-2001, Const Kaplinsky\n" | ||
90 | "(c) 2000, Tridia Corporation\n" | 91 | "(c) 2000, Tridia Corporation\n" | ||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |