[prev in list] [next in list] [prev in thread] [next in thread]
List: atlantik-devel
Subject: [atlantik-cvs]
From: kde () office ! kde ! org
Date: 2004-05-28 17:39:22
Message-ID: 40B7794A.mail70H11EU6H () office ! kde ! org
[Download RAW message or body]
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 <cap@capsi.com>
+// Copyright (c) 2002-2004 Rob Kaper <cap@capsi.com>
//
// 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())
{
_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@kde.org
https://mail.kde.org/mailman/listinfo/atlantik-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic