2022-01-20 18:27:56 +00:00
|
|
|
// This file Copyright © 2006-2022 Transmission authors and contributors.
|
|
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
|
|
// License text can be found in the licenses/ folder.
|
2007-09-16 01:02:06 +00:00
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
2018-09-30 10:37:30 +00:00
|
|
|
|
|
|
|
#include <libtransmission/transmission.h>
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2011-06-19 03:52:54 +00:00
|
|
|
@class Torrent;
|
|
|
|
|
2007-09-16 01:02:06 +00:00
|
|
|
@interface Badger : NSObject
|
|
|
|
{
|
2021-08-15 09:41:48 +00:00
|
|
|
tr_session* fLib;
|
2017-01-24 17:53:16 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
NSMutableSet* fHashes;
|
2007-09-16 01:02:06 +00:00
|
|
|
}
|
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (instancetype)initWithLib:(tr_session*)lib;
|
2007-09-16 01:02:06 +00:00
|
|
|
|
2021-08-15 09:41:48 +00:00
|
|
|
- (void)updateBadgeWithDownload:(CGFloat)downloadRate upload:(CGFloat)uploadRate;
|
|
|
|
- (void)addCompletedTorrent:(Torrent*)torrent;
|
|
|
|
- (void)removeTorrent:(Torrent*)torrent;
|
|
|
|
- (void)clearCompleted;
|
|
|
|
- (void)setQuitting;
|
2007-09-16 01:02:06 +00:00
|
|
|
|
|
|
|
@end
|