~ubuntu-branches/ubuntu/jaunty/transmission/jaunty-updates

« back to all changes in this revision

Viewing changes to gtk/tr-torrent.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2008-11-28 15:33:48 UTC
  • mfrom: (1.1.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20081128153348-it70trfnxiroblmc
Tags: 1.40-0ubuntu1
* New upstream release (LP: #302672)
  - Tracker communication uses fewer resources
  - More accurate bandwidth limits
  - Reduce disk fragmentation by preallocating files (LP: #287726)
  - Stability, security and performance improvements to the RPC /
    Web UI server (closes LP: #290423)
  - Support compression when serving Web UI and RPC responses
  - Simplify the RPC whitelist
  - Fix bug that prevented handshakes with encrypted BitComet peers
  - Fix 1.3x bug that could re-download some data unnecessarily
    (LP: #295040)
  - Option to automatically update the blocklist weekly
  - Added off-hour bandwidth scheduling
  - Simplify file/priority selection in the details dialog
  - Fix a couple of crashes
  - New / updated translations
  - Don't inhibit hibernation by default (LP: #292929)
  - Use "close" animation when sending to notification area (LP: #130811)
  - Fix resize problems (LP: #269872)
  - Support "--version" option when launching from command line
    (LP: #292011)
  - Correctly parse announce URLs that have leading or trailing
    spaces (LP: #262411)
  - Display an error when "Open Torrent" fails (LP: #281463)
* Dropped 10_fix_crasher_from_upstream.dpatch: Fix is in this
  upstream release.
* debian/control: Don't just build-depend on libcurl-dev, which is
  a virtual package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/******************************************************************************
2
 
 * $Id: tr-torrent.h 6344 2008-07-16 19:38:22Z charles $
 
2
 * $Id: tr-torrent.h 6978 2008-10-28 19:49:33Z charles $
3
3
 *
4
4
 * Copyright (c) 2006-2008 Transmission authors and contributors
5
5
 *
30
30
#include <libtransmission/bencode.h>
31
31
#include "util.h"
32
32
 
33
 
#define TR_TORRENT_TYPE           (tr_torrent_get_type ())
34
 
#define TR_TORRENT(obj) \
35
 
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), TR_TORRENT_TYPE, TrTorrent))
36
 
#define TR_TORRENT_CLASS(klass) \
37
 
  (G_TYPE_CHECK_CLASS_CAST ((klass), TR_TORRENT_TYPE, TrTorrentClass))
38
 
#define TR_IS_TORRENT(obj) \
39
 
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TR_TORRENT_TYPE))
40
 
#define TR_IS_TORRENT_CLASS(klass) \
41
 
  (G_TYPE_CHECK_CLASS_TYPE ((klass), TR_TORRENT_TYPE))
42
 
#define TR_TORRENT_GET_CLASS(obj) \
43
 
  (G_TYPE_INSTANCE_GET_CLASS ((obj), TR_TORRENT_TYPE, TrTorrentClass))
 
33
#define TR_TORRENT_TYPE       ( tr_torrent_get_type ( ) )
 
34
#define TR_TORRENT( obj ) \
 
35
    ( G_TYPE_CHECK_INSTANCE_CAST ( ( obj ), TR_TORRENT_TYPE, TrTorrent ) )
 
36
#define TR_TORRENT_CLASS( klass ) \
 
37
    ( G_TYPE_CHECK_CLASS_CAST ( ( klass ), TR_TORRENT_TYPE, TrTorrentClass ) )
 
38
#define TR_IS_TORRENT( obj ) \
 
39
    ( G_TYPE_CHECK_INSTANCE_TYPE ( ( obj ), TR_TORRENT_TYPE ) )
 
40
#define TR_IS_TORRENT_CLASS( klass ) \
 
41
    ( G_TYPE_CHECK_CLASS_TYPE ( ( klass ), TR_TORRENT_TYPE ) )
 
42
#define TR_TORRENT_GET_CLASS( obj ) \
 
43
    ( G_TYPE_INSTANCE_GET_CLASS ( ( obj ), TR_TORRENT_TYPE, TrTorrentClass ) )
44
44
 
45
45
typedef struct _TrTorrent
46
46
{
47
 
    GObject                    parent;
 
47
    GObject    parent;
48
48
    struct TrTorrentPrivate  * priv;
49
49
}
50
50
TrTorrent;
51
51
 
52
52
typedef struct TrTorrentClass
53
53
{
54
 
    GObjectClass parent;
 
54
    GObjectClass    parent;
55
55
}
56
56
TrTorrentClass;
57
57
 
58
 
GType
59
 
tr_torrent_get_type(void);
60
 
 
61
 
void
62
 
tr_torrent_clear( TrTorrent * tor );
63
 
 
64
 
tr_torrent *
65
 
tr_torrent_handle(TrTorrent *tor);
66
 
 
67
 
const tr_stat *
68
 
tr_torrent_stat(TrTorrent *tor);
69
 
 
70
 
const tr_info *
71
 
tr_torrent_info(TrTorrent *tor);
72
 
 
73
 
char*
74
 
tr_torrent_status_str ( TrTorrent * tor );
75
 
 
76
 
void
77
 
tr_torrent_delete_files( TrTorrent * tor );
78
 
 
79
 
void
80
 
tr_torrent_open_folder( TrTorrent * tor );
81
 
 
82
 
TrTorrent *
83
 
tr_torrent_new_preexisting( tr_torrent * tor );
84
 
 
85
 
TrTorrent *
86
 
tr_torrent_new_ctor( tr_handle * handle, tr_ctor * ctor, char ** err );
87
 
 
88
 
void
89
 
tr_torrent_set_remove_flag( TrTorrent *, gboolean );
 
58
GType          tr_torrent_get_type( void );
 
59
 
 
60
void           tr_torrent_clear( TrTorrent * tor );
 
61
 
 
62
tr_torrent *   tr_torrent_handle( TrTorrent *tor );
 
63
 
 
64
const tr_stat *tr_torrent_stat( TrTorrent *tor );
 
65
 
 
66
const tr_info *tr_torrent_info( TrTorrent *tor );
 
67
 
 
68
char*          tr_torrent_status_str( TrTorrent * tor );
 
69
 
 
70
void           tr_torrent_delete_files( TrTorrent * tor );
 
71
 
 
72
void           tr_torrent_open_folder( TrTorrent * tor );
 
73
 
 
74
TrTorrent *    tr_torrent_new_preexisting( tr_torrent * tor );
 
75
 
 
76
TrTorrent *    tr_torrent_new_ctor( tr_session  * session,
 
77
                                    tr_ctor     * ctor,
 
78
                                    char       ** err );
 
79
 
 
80
void           tr_torrent_set_remove_flag( TrTorrent *,
 
81
                                           gboolean );
90
82
 
91
83
#endif