[atlantik-cvs] CVS: kdegames/atlantik/kio_atlantik kio_atlantik.cpp, 1.6, 1.7

[email protected] Fri, 28 May 2004 19:39:22 +0200
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
Update of /home/kde/kdegames/atlantik/kio_atlantik
In directory office:/tmp/cvs-serv9066/kio_atlantik

Modified Files:
	kio_atlantik.cpp 
Log Message:
try to maintain backwards compatibility

Index: kio_atlantik.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/kio_atlantik/kio_atlantik.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- kio_atlantik.cpp	10 Feb 2004 19:53:58 -0000	1.6
+++ kio_atlantik.cpp	28 May 2004 17:39:17 -0000	1.7
@@ -1,4 +1,4 @@
-// Copyright (c) 2002-2003 Rob Kaper <[email protected]>
+// Copyright (c) 2002-2004 Rob Kaper <[email protected]>
 //
 // This program is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License
@@ -20,6 +20,13 @@
 #include <kio/slavebase.h>
 #include <kinstance.h>
 #include <kdebug.h>
+#include <kdeversion.h>
+#undef KDE_3_1_FEATURES
+#ifdef KDE_MAKE_VERSION
+#if KDE_VERSION > KDE_MAKE_VERSION (3, 1, 0)
+#define KDE_3_1_FEATURES
+#endif
+#endif
 #include <kprocess.h>
 
 #include "kio_atlantik.h"
@@ -39,9 +46,16 @@
 {
 	KProcess *proc = new KProcess;
 	*proc << "atlantik";
+
+#ifdef KDE_3_1_FEATURES
 	QString host = KProcess::quote(url.queryItem("host"));
 	QString port = KProcess::quote(url.queryItem("port"));
 	QString game = KProcess::quote(url.queryItem("game"));
+#else
+	QString host = url.queryItem("host"));
+	QString port = url.queryItem("port"));
+	QString game = url.queryItem("game"));
+#endif
 
 	if (!host.isNull() && !port.isNull())
 	{