2
* Xmission - a cross-platform bittorrent client
3
* Copyright (C) 2007 Charles Kerr <charles@rebelbase.com>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; version 2 of the License.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
* $Id: filter.h 3109 2007-09-20 19:47:19Z charles $
21
#ifndef __XMISSION_TORRENT_FILTER_H__
22
#define __XMISSION_TORRENT_FILTER_H__
26
#include <libtransmission/transmission.h>
35
FLAG_COMPLETE = (1<<1),
36
FLAG_INCOMPLETE = (1<<2),
37
FLAG_SEEDING = (1<<3),
38
FLAG_LEECHING = (1<<4),
45
typedef std::vector<tr_torrent*> torrents_v;
55
static int GetFlags( const tr_torrent * );
57
static void CountHits( const torrents_v & torrents,
60
static wxString GetName( int show, int count=0 );
62
static void RemoveFailures( int show,
63
torrents_v & torrents );