22 #ifndef BT_TICKETMANAGER_H
23 #define BT_TICKETMANAGER_H
29 #include <ktorrent_export.h>
30 #include "constants.h"
34 class ResourceManager;
40 class KTORRENT_EXPORT Resource
43 Resource(ResourceManager* rman,
const QString & group);
47 QString groupName()
const {
return group;}
50 virtual void acquired() = 0;
55 typedef QSet<Resource*> Set;
56 typedef QList<Resource*> List;
76 void setMaxActive(Uint32 m) {max_active_resources = m;}
107 Uint32 max_active_resources;
108 Resource::Set active;
109 QMap<QString,Resource::List> pending;
115 #endif // BT_TICKETMANAGER_H