1
// $Id: TRTransfer.h 261 2006-05-29 21:27:31Z titer $
12
#include "transmission.h"
14
class TRTransfer : public BListItem {
15
public: // Construction and Controll methods.
16
TRTransfer(const char *fullpath, node_ref node);
19
inline node_ref GetCachedNodeRef() { return cachedNodeRef; };
20
inline const char* GetCachedPath() { return cachedPath->String(); };
22
bool SetStatus(tr_stat_t *stat, bool shade);
25
virtual void Update(BView *owner, const BFont *font);
26
virtual void DrawItem(BView *owner, BRect frame, bool complete = false);
30
* Cached data. The items stored here are _NOT_ necessairly
31
* the torrent we'll be rendering. It's likely they will be,
32
* but NOT guaranteed. They are not used for anything relating
35
* Specifically we needed a way to cache the node_ref and
36
* reverse-lookup the node from the string path in the
37
* transmission structs. This seemed the logical place to store
38
* that information, since it ends up in a BList(View).
40
node_ref cachedNodeRef;
43
private: // Private members used for rendering.
44
float fBaselineOffset;
58
#endif /* TR_TRANSFER */