summaryrefslogtreecommitdiffstats
path: root/plugins/zeroconf/zeroconfplugin.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-01 17:47:34 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-01 20:24:02 +0900
commit657dd888c8a6bdc820669c441d9e1647b2ed0be1 (patch)
tree514013ec3bf94a3dc193789fbddb80ca48d09805 /plugins/zeroconf/zeroconfplugin.cpp
parent4caf6f3c92ecc2c41a5a1fe425d4eecc35cfe0e9 (diff)
downloadktorrent-657dd888c8a6bdc820669c441d9e1647b2ed0be1.tar.gz
ktorrent-657dd888c8a6bdc820669c441d9e1647b2ed0be1.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 27fd576acbb8b9453dadd7d1ae949396eef8fc12)
Diffstat (limited to 'plugins/zeroconf/zeroconfplugin.cpp')
-rw-r--r--plugins/zeroconf/zeroconfplugin.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/zeroconf/zeroconfplugin.cpp b/plugins/zeroconf/zeroconfplugin.cpp
index d7e68d5..6307bdd 100644
--- a/plugins/zeroconf/zeroconfplugin.cpp
+++ b/plugins/zeroconf/zeroconfplugin.cpp
@@ -50,10 +50,10 @@ namespace kt
void ZeroConfPlugin::load()
{
CoreInterface* core = getCore();
- connect(core,TQT_SIGNAL(torrentAdded( kt::TorrentInterface* )),
- this,TQT_SLOT(torrentAdded( kt::TorrentInterface* )));
- connect(core,TQT_SIGNAL(torrentRemoved( kt::TorrentInterface* )),
- this,TQT_SLOT(torrentRemoved( kt::TorrentInterface* )));
+ connect(core,TQ_SIGNAL(torrentAdded( kt::TorrentInterface* )),
+ this,TQ_SLOT(torrentAdded( kt::TorrentInterface* )));
+ connect(core,TQ_SIGNAL(torrentRemoved( kt::TorrentInterface* )),
+ this,TQ_SLOT(torrentRemoved( kt::TorrentInterface* )));
// go over existing torrents and add them
bt::QueueManager* qman = core->getQueueManager();
@@ -66,10 +66,10 @@ namespace kt
void ZeroConfPlugin::unload()
{
CoreInterface* core = getCore();
- disconnect(core,TQT_SIGNAL(torrentAdded( kt::TorrentInterface* )),
- this,TQT_SLOT(torrentAdded( kt::TorrentInterface* )));
- disconnect(core,TQT_SIGNAL(torrentRemoved( kt::TorrentInterface* )),
- this,TQT_SLOT(torrentRemoved( kt::TorrentInterface*)));
+ disconnect(core,TQ_SIGNAL(torrentAdded( kt::TorrentInterface* )),
+ this,TQ_SLOT(torrentAdded( kt::TorrentInterface* )));
+ disconnect(core,TQ_SIGNAL(torrentRemoved( kt::TorrentInterface* )),
+ this,TQ_SLOT(torrentRemoved( kt::TorrentInterface*)));
bt::PtrMap<kt::TorrentInterface*,AvahiService>::iterator i = services.begin();
while (i != services.end())
@@ -93,8 +93,8 @@ namespace kt
tc->addPeerSource(av);
Out(SYS_ZCO|LOG_NOTICE) << "ZeroConf service added for "
<< tc->getStats().torrent_name << endl;
- connect(av,TQT_SIGNAL(serviceDestroyed( AvahiService* )),
- this,TQT_SLOT(avahiServiceDestroyed( AvahiService* )));
+ connect(av,TQ_SIGNAL(serviceDestroyed( AvahiService* )),
+ this,TQ_SLOT(avahiServiceDestroyed( AvahiService* )));
}