krdc
Go to the documentation of this file.
27 #include <KApplication>
29 #include <KCmdLineArgs>
35 int main(
int argc,
char **argv)
39 KAboutData aboutData(
"krdc", 0, ki18n(
"KRDC"), KDE_VERSION_STRING,
40 ki18n(
"KDE Remote Desktop Client"), KAboutData::License_GPL,
41 ki18n(
"(c) 2007-2013, Urs Wolfer\n"
42 "(c) 2001-2003, Tim Jansen\n"
43 "(c) 2002-2003, Arend van Beelen jr.\n"
44 "(c) 2000-2002, Const Kaplinsky\n"
45 "(c) 2000, Tridia Corporation\n"
46 "(c) 1999, AT&T Laboratories Boston\n"
47 "(c) 1999-2003, Matthew Chapman\n"
48 "(c) 2009, Collabora Ltd"));
50 aboutData.addAuthor(ki18n(
"Urs Wolfer"), ki18n(
"Developer, Maintainer"),
"uwolfer@kde.org");
51 aboutData.addAuthor(ki18n(
"Tony Murray"), ki18n(
"Developer"),
"murraytony@gmail.com");
52 aboutData.addAuthor(ki18n(
"Tim Jansen"), ki18n(
"Former Developer"),
"tim@tjansen.de");
53 aboutData.addAuthor(ki18n(
"Arend van Beelen jr."), ki18n(
"Initial RDP backend"),
"arend@auton.nl");
54 aboutData.addCredit(ki18n(
"Brad Hards"), ki18n(
"Google Summer of Code 2007 KRDC project mentor"),
55 "bradh@frogmouth.net");
56 aboutData.addCredit(ki18n(
"LibVNCServer / LibVNCClient developers"), ki18n(
"VNC client library"),
57 "libvncserver-common@lists.sf.net",
"http://libvncserver.sourceforge.net/");
58 aboutData.addAuthor(ki18n(
"Abner Silva"), ki18n(
"Telepathy Tubes Integration"),
"abner.silva@kdemail.net");
60 KCmdLineArgs::init(argc, argv, &aboutData);
62 KCmdLineOptions options;
63 options.add(
"fullscreen", ki18n(
"Start KRDC with the provided URL in fullscreen mode (works only with one URL)"));
64 options.add(
"!+[URL]", ki18n(
"URLs to connect after startup"));
66 KCmdLineArgs::addCmdLineOptions(options);
73 KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
75 if (args->count() > 0) {
76 for (
int i = 0; i < args->count(); ++i) {
79 if (u.scheme().isEmpty() || u.host().isEmpty()) {
80 QString arg(args->url(i).url());
82 kDebug(5010) <<
"unusable url; try to recover it:" << arg;
84 if (arg.lastIndexOf(
'/') != 0)
85 arg = arg.right(arg.length() - arg.lastIndexOf(
'/') - 1);
87 if (!arg.contains(
"://"))
88 arg.prepend(
"vnc://");
90 kDebug(5010) <<
"recovered url:" << arg;
98 mainwindow->
newConnection(u, ((args->isSet(
"fullscreen")) && (args->count() == 1)));
102 kDebug(5010) <<
"########## KRDC ready:" << startupTimer.elapsed() <<
"ms ##########";
int main(int argc, char **argv)
void newConnection(const KUrl &newUrl=KUrl(), bool switchFullscreenWhenConnected=false, const QString &tabName=QString())
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:04 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.