KIO
Go to the documentation of this file.
34 int main(
int argc,
char **argv)
40 "unknown",
ki18n(
"telnet protocol handler"));
47 if (args->
count() != 1)
56 if (terminal ==
"konsole")
60 if ( url.protocol() ==
"telnet" )
62 else if ( url.protocol() ==
"ssh" )
64 else if ( url.protocol() ==
"rlogin" )
67 kError() <<
"Invalid protocol " << url.protocol() << endl;
71 if (!KAuthorized::authorize(
"shell_access"))
74 i18n(
"You do not have permission to access the %1 protocol.", url.protocol()));
78 if (!url.user().isEmpty())
85 if (!url.host().isEmpty())
87 else if (!url.path().isEmpty())
90 if (host.isEmpty() || host.startsWith(
'-'))
92 kError() <<
"Invalid hostname " << host << endl;
99 if ( url.protocol() ==
"ssh" )
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Apr 16 2013 21:04:57 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.