Add missing #include to src/main/torrentclient.h.
[tairent.git] / src / httptrackerclient / factory.cpp
blob99829e5a23f662630d530f7fa8f51ff751cd0376
1 /***************************************************************************
2 * *
3 * Copyright (C) 2006 David Brodsky *
4 * *
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. *
9 * *
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. *
14 * *
15 ***************************************************************************/
17 #include <tairon/core/log.h>
19 #include "factory.h"
21 #include "main/trackermanager.h"
22 #include "client.h"
24 namespace Tairent
27 namespace TrackerClient
30 /* {{{ HTTPTrackerClientFactory::HTTPTrackerClientFactory() */
31 HTTPTrackerClientFactory::HTTPTrackerClientFactory() : Tairent::Main::TrackerClientFactory()
33 Tairent::Main::TrackerManager::self()->registerFactory("http", this);
35 /* }}} */
37 /* {{{ HTTPTrackerClientFactory::~HTTPTrackerClientFactory() */
38 HTTPTrackerClientFactory::~HTTPTrackerClientFactory()
40 Tairent::Main::TrackerManager::self()->unregisterFactory("http");
42 /* }}} */
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);
50 /* }}} */
52 }; // namespace Tairent
54 }; // namespace TrackerClient
56 // vim: ai sw=4 ts=4 noet fdm=marker