File: queueitem.h

package info (click to toggle)
dc-qt 0.2.0.alpha-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,936 kB
  • ctags: 5,361
  • sloc: cpp: 28,936; makefile: 19
file content (30 lines) | stat: -rw-r--r-- 678 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// C++ Interface: QueueItem
//
// Description: 
//
//
// Author: Rikard Björklind <olof@linux.nu>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef QUEUE_ITEM_H__
#define QUEUE_ITEM_H__

//! Represents an item in the transfer queue.
class QueueItem
{
public:
	int id;   				//!< Internal ID
	QString target;			//!< Target file name
	qint64 size;			//!< File size
	qint64 downloadedBytes; //!< Number of bytes downloaded so far
	int status;				//!< Transfer state
	int priority;			//!< DC++ Priority
	int currentSource;		//!< User ID of who we are downloading from
	QList<int> sources;     //!< List of other User IDs
};   


#endif