summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2021-09-10 17:24:58 +0200
committergregory guy <gregory-tde@laposte.net>2021-09-15 14:22:01 +0200
commitc0822095d4f1706dc80a7b01a77516cd77d6e77d (patch)
tree66d281147d916701c03cb6c2056aaa1abc4036eb
parent71a8bf7029071e2c0f3506e6641c4b536e58544f (diff)
downloadkftpgrabber-c0822095d4f1706dc80a7b01a77516cd77d6e77d.tar.gz
kftpgrabber-c0822095d4f1706dc80a7b01a77516cd77d6e77d.zip
Remove KDE_IS_VERSION definition.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
-rw-r--r--kftpgrabber/src/kftpbookmarkaction.cpp2
-rw-r--r--kftpgrabber/src/kftpbookmarkaction.h5
-rw-r--r--kftpgrabber/src/kftpbookmarks.cpp8
-rw-r--r--kftpgrabber/src/misc/kftpzeroconf.cpp4
-rw-r--r--kftpgrabber/src/misc/kftpzeroconf.h5
-rw-r--r--kftpgrabber/src/widgets/kftpzeroconflistview.cpp8
6 files changed, 0 insertions, 32 deletions
diff --git a/kftpgrabber/src/kftpbookmarkaction.cpp b/kftpgrabber/src/kftpbookmarkaction.cpp
index c988ae7..650baf5 100644
--- a/kftpgrabber/src/kftpbookmarkaction.cpp
+++ b/kftpgrabber/src/kftpbookmarkaction.cpp
@@ -45,12 +45,10 @@ KFTPZeroconfAction::KFTPZeroconfAction(const TQString &text, const TQString &pix
{
}
-#if KDE_IS_VERSION(3,4,0)
void KFTPZeroconfAction::setSite(DNSSD::RemoteService::Ptr service)
{
m_service = service;
}
-#endif
KFTPBookmarkAction::KFTPBookmarkAction(const TQString &text, const TQString &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name)
: TDEAction(text, pix, cut, receiver, slot, parent, name)
diff --git a/kftpgrabber/src/kftpbookmarkaction.h b/kftpgrabber/src/kftpbookmarkaction.h
index 02caafc..d8cac7b 100644
--- a/kftpgrabber/src/kftpbookmarkaction.h
+++ b/kftpgrabber/src/kftpbookmarkaction.h
@@ -42,9 +42,7 @@
#include <tqdom.h>
-#if KDE_IS_VERSION(3,4,0)
#include "kftpzeroconf.h"
-#endif
namespace KFTPBookmarks {
class Site;
@@ -79,13 +77,10 @@ class KFTPZeroconfAction : public TDEAction
Q_OBJECT
public:
KFTPZeroconfAction(const TQString &text, const TQString &pix, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name = 0);
-
-#if KDE_IS_VERSION(3,4,0)
void setSite(DNSSD::RemoteService::Ptr service);
DNSSD::RemoteService::Ptr getSite() { return m_service; }
private:
DNSSD::RemoteService::Ptr m_service;
-#endif
};
/**
diff --git a/kftpgrabber/src/kftpbookmarks.cpp b/kftpgrabber/src/kftpbookmarks.cpp
index 6222d25..8ba0e4f 100644
--- a/kftpgrabber/src/kftpbookmarks.cpp
+++ b/kftpgrabber/src/kftpbookmarks.cpp
@@ -808,7 +808,6 @@ void Manager::guiPopulateZeroconfMenu(TDEActionMenu *parentMenu)
// Clear the menu
parentMenu->popupMenu()->clear();
-#if KDE_IS_VERSION(3,4,0)
// Populate
TQValueList<DNSSD::RemoteService::Ptr> list = KFTPAPI::getInstance()->zeroConfInterface()->getServiceList();
@@ -826,11 +825,6 @@ void Manager::guiPopulateZeroconfMenu(TDEActionMenu *parentMenu)
disabledAction->setEnabled(false);
parentMenu->insert(disabledAction);
}
-#else
- TDEAction *disabledAction = new TDEAction(i18n("<DNSSD Not Available>"));
- disabledAction->setEnabled(false);
- parentMenu->insert(disabledAction);
-#endif
}
void Manager::guiPopulateWalletMenu(TDEActionMenu *parentMenu)
@@ -933,13 +927,11 @@ void Manager::slotWalletExecuted()
void Manager::slotZeroconfExecuted()
{
-#if KDE_IS_VERSION(3,4,0)
// Get the sender
KFTPZeroconfAction *action = (KFTPZeroconfAction*) TQObject::sender();
DNSSD::RemoteService::Ptr service = action->getSite();
KFTPAPI::getInstance()->mainWindow()->slotQuickConnect(service->serviceName(), service->hostName(), service->port());
-#endif
}
}
diff --git a/kftpgrabber/src/misc/kftpzeroconf.cpp b/kftpgrabber/src/misc/kftpzeroconf.cpp
index d49f5d6..37a73c4 100644
--- a/kftpgrabber/src/misc/kftpzeroconf.cpp
+++ b/kftpgrabber/src/misc/kftpzeroconf.cpp
@@ -38,13 +38,11 @@
KFTPZeroConf::KFTPZeroConf(TQObject *parent, const char *name)
: TQObject(parent, name)
{
-#if KDE_IS_VERSION(3,4,0)
m_browser = new DNSSD::ServiceBrowser("_ftp._tcp", 0, true);
connect(m_browser, SIGNAL(finished()), this, SLOT(slotServiceChanged()));
m_browser->startBrowse();
-#endif
}
@@ -52,12 +50,10 @@ KFTPZeroConf::~KFTPZeroConf()
{
}
-#if KDE_IS_VERSION(3,4,0)
const TQValueList<DNSSD::RemoteService::Ptr> &KFTPZeroConf::getServiceList() const
{
return m_browser->services();
}
-#endif
void KFTPZeroConf::slotServiceChanged()
{
diff --git a/kftpgrabber/src/misc/kftpzeroconf.h b/kftpgrabber/src/misc/kftpzeroconf.h
index 425fb7e..6628706 100644
--- a/kftpgrabber/src/misc/kftpzeroconf.h
+++ b/kftpgrabber/src/misc/kftpzeroconf.h
@@ -40,9 +40,7 @@
#include <tdeversion.h>
-#if KDE_IS_VERSION(3,4,0)
#include <dnssd/servicebrowser.h>
-#endif
/**
* This class provides an interface to TDEDNSSD (that is available from KDE 3.4).
@@ -55,12 +53,9 @@ Q_OBJECT
public:
KFTPZeroConf(TQObject *parent = 0, const char *name = 0);
~KFTPZeroConf();
-
-#if KDE_IS_VERSION(3,4,0)
const TQValueList<DNSSD::RemoteService::Ptr> &getServiceList() const;
private:
DNSSD::ServiceBrowser *m_browser;
-#endif
private slots:
void slotServiceChanged();
signals:
diff --git a/kftpgrabber/src/widgets/kftpzeroconflistview.cpp b/kftpgrabber/src/widgets/kftpzeroconflistview.cpp
index b64da05..383cdb8 100644
--- a/kftpgrabber/src/widgets/kftpzeroconflistview.cpp
+++ b/kftpgrabber/src/widgets/kftpzeroconflistview.cpp
@@ -39,9 +39,7 @@
#include <tdeversion.h>
-#if KDE_IS_VERSION(3,4,0)
#include "kftpzeroconf.h"
-#endif
#include <tdelocale.h>
#include <kiconloader.h>
@@ -57,17 +55,14 @@ KFTPZeroConfListView::KFTPZeroConfListView(TQWidget *parent, const char *name)
setEmptyListText(i18n("No sites published."));
setItemsRenameable(false);
-#if KDE_IS_VERSION(3,4,0)
connect(KFTPAPI::getInstance()->zeroConfInterface(), SIGNAL(servicesUpdated()), this, SLOT(slotSitesChanged()));
connect(this, SIGNAL(executed(TQListViewItem*)), this, SLOT(slotSiteExecuted(TQListViewItem*)));
slotSitesChanged();
-#endif
}
void KFTPZeroConfListView::slotSitesChanged()
{
-#if KDE_IS_VERSION(3,4,0)
// Update the site list
TQValueList<DNSSD::RemoteService::Ptr> list = KFTPAPI::getInstance()->zeroConfInterface()->getServiceList();
@@ -84,15 +79,12 @@ void KFTPZeroConfListView::slotSitesChanged()
site->setPixmap(0, SmallIcon("lan"));
}
}
-#endif
}
void KFTPZeroConfListView::slotSiteExecuted(TQListViewItem *item)
{
-#if KDE_IS_VERSION(3,4,0)
// Connect to the site
KFTPAPI::getInstance()->mainWindow()->slotQuickConnect(item->text(0), item->text(1), item->text(2).toInt());
-#endif
}
#include "kftpzeroconflistview.moc"