Implement hash checking.
[tairent.git] / src / main / trackerclientfactory.h
blobe4c37b08e914c75c28bb4df5f76f5a75730e2e2b
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 #ifndef _main_trackerclientfactory_h
18 #define _main_trackerclientfactory_h
20 namespace Tairent
23 namespace Main
26 class TorrentClient;
27 class TrackerClient;
29 /** \brief Base class for factories that create tracker clients.
31 class TrackerClientFactory
33 public:
34 /** Creates a new object.
36 TrackerClientFactory();
38 /** Destroys the object.
40 virtual ~TrackerClientFactory();
42 /** Creates new TrackerClient object for a client.
44 virtual TrackerClient *createTrackerClient(TorrentClient *client) = 0;
47 }; // namespace Main
49 }; // namespace Tairent
51 #endif
53 // vim: ai sw=4 ts=4 noet fdm=marker