Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/queuemanagerinterface.h
Context not available. | |||||
22 | #define BTQUEUEMANAGERINTERFACE_H | 22 | #define BTQUEUEMANAGERINTERFACE_H | ||
---|---|---|---|---|---|
23 | 23 | | |||
24 | #include <ktorrent_export.h> | 24 | #include <ktorrent_export.h> | ||
25 | #include <libktorrent/torrent/torrentcontrol.h> | ||||
25 | 26 | | |||
26 | namespace bt | 27 | namespace bt | ||
27 | { | 28 | { | ||
Context not available. | |||||
52 | * @param trk First tier of trackers | 53 | * @param trk First tier of trackers | ||
53 | */ | 54 | */ | ||
54 | virtual void mergeAnnounceList(const SHA1Hash & ih,const TrackerTier* trk) = 0; | 55 | virtual void mergeAnnounceList(const SHA1Hash & ih,const TrackerTier* trk) = 0; | ||
55 | 56 | | |||
56 | /** | 57 | /** | ||
57 | * Disable or enable the QM | 58 | * Disable or enable the QM | ||
58 | * @param on | 59 | * @param on | ||
59 | */ | 60 | */ | ||
60 | static void setQueueManagerEnabled(bool on); | 61 | static void setQueueManagerEnabled(bool on); | ||
62 | | ||||
63 | /** | ||||
64 | * Requested by each TorrentControl during its update to | ||||
65 | * get permission on saving Stats file to disk. May be | ||||
66 | * overriden to balance I/O operations. | ||||
67 | * @param tc Pointer to TorrentControl instance | ||||
68 | * @return true if file save is permitted, false otherwise | ||||
69 | */ | ||||
70 | | ||||
71 | virtual bool permitStatsSync(bt::TorrentControl* tc); | ||||
61 | 72 | | |||
62 | static bool enabled() {return qm_enabled;} | 73 | static bool enabled() {return qm_enabled;} | ||
63 | }; | 74 | }; | ||
Context not available. |