[atlantik-cvs] CVS: kdegames/atlantik/kio_atlantik kio_atlantik.cpp, 1.7, 1.8
[email protected] Thu, 07 Oct 2004 15:53:57 +0200
| Newsgroups | gmane.comp.kde.devel.atlantik |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/kde/kdegames/atlantik/kio_atlantik In directory office:/tmp/cvs-serv29151/kio_atlantik Modified Files: kio_atlantik.cpp Log Message: New-patches: [email protected]/atlantik--mainline--0.8--patch-39 Summary: kio_atlantik fixes (backport) Keywords: Use atlantik://host:port/?game=foo instead of atlantik:///?host=foo&port=bar&game=foobar Starting Atlantik by URL is a hack though. Some day I really need a proper .desktop service file format for invitations which will can be opened by Atlantik, instead of a KIO slave that forks it. Index: kio_atlantik.cpp =================================================================== RCS file: /home/kde/kdegames/atlantik/kio_atlantik/kio_atlantik.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- kio_atlantik.cpp 28 May 2004 17:39:17 -0000 1.7 +++ kio_atlantik.cpp 7 Oct 2004 13:53:52 -0000 1.8 @@ -48,14 +48,13 @@ *proc << "atlantik"; #ifdef KDE_3_1_FEATURES - QString host = KProcess::quote(url.queryItem("host")); - QString port = KProcess::quote(url.queryItem("port")); + QString host = KProcess::quote( url.hasHost() ? url.host() : url.queryItem("host") ); QString game = KProcess::quote(url.queryItem("game")); #else - QString host = url.queryItem("host")); - QString port = url.queryItem("port")); + QString host = url.hasHost() ? url.host() : url.queryItem("host"); QString game = url.queryItem("game")); #endif + QString port = QString::number( url.port() ? url.port() : 1234 ); if (!host.isNull() && !port.isNull()) {