1 /***************************************************************************
3 * Copyright (C) 2006 David Brodsky *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License as *
7 * published by the Free Software Foundation and appearing *
8 * in the file LICENSE.GPL included in the packaging of this file. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13 * General Public License for more details. *
15 ***************************************************************************/
17 #include <tairon/core/log.h>
21 #include "main/trackermanager.h"
27 namespace TrackerClient
30 /* {{{ HTTPTrackerClientFactory::HTTPTrackerClientFactory() */
31 HTTPTrackerClientFactory::HTTPTrackerClientFactory() : Tairent::Main::TrackerClientFactory()
33 Tairent::Main::TrackerManager::self()->registerFactory("http", this);
37 /* {{{ HTTPTrackerClientFactory::~HTTPTrackerClientFactory() */
38 HTTPTrackerClientFactory::~HTTPTrackerClientFactory()
40 Tairent::Main::TrackerManager::self()->unregisterFactory("http");
44 /* {{{ HTTPTrackerClientFactory::createTrackerClient(Tairent::Main::TorrentClient *) */
45 Tairent::Main::TrackerClient
*HTTPTrackerClientFactory::createTrackerClient(Tairent::Main::TorrentClient
*client
)
47 DEBUG("Request for tracker for http protocol");
48 return new HTTPTrackerClient(client
);
52 }; // namespace Tairent
54 }; // namespace TrackerClient
56 // vim: ai sw=4 ts=4 noet fdm=marker