diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-12-27 18:35:13 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-12-27 18:35:13 +0000 |
commit | 97830623478379916c723854e8cbb9473f8acd1f (patch) | |
tree | eb9d1a1a81928a315cbac171ed5dd49aee4a84f2 /src/trg-torrent-model.h | |
parent | 42f593e062f1e444339edda7ea4e30f689b303ae (diff) |
filter items (not trackers+dirs for now) show counts next to them. while doing this, I made the stats update loop something that happens only if something changes, which avoids a full iteration over all torrents (even in active only).
Diffstat (limited to 'src/trg-torrent-model.h')
-rw-r--r-- | src/trg-torrent-model.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/trg-torrent-model.h b/src/trg-torrent-model.h index 2a108c9..f245455 100644 --- a/src/trg-torrent-model.h +++ b/src/trg-torrent-model.h @@ -59,8 +59,18 @@ typedef struct { gint paused; gint count; gint error; + gint complete; + gint incomplete; + gint checking; + gint active; + gint seed_wait; + gint down_wait; } trg_torrent_model_update_stats; +#define TORRENT_UPDATE_STATE_CHANGE (1 << 0) +#define TORRENT_UPDATE_PATH_CHANGE (1 << 1) +#define TORRENT_UPDATE_ADDREMOVE (1 << 2) + GType trg_torrent_model_get_type(void); TrgTorrentModel *trg_torrent_model_new(); |