Revision 1777 trunk/client/gui_qt/DownloadQueueItem.cpp
| DownloadQueueItem.cpp (revision 1777) | ||
|---|---|---|
| 28 | 28 |
childItems.append(child); |
| 29 | 29 |
} |
| 30 | 30 |
|
| 31 |
void DownloadQueueItem::insertChild(int position, DownloadQueueItem *child) |
|
| 32 |
{
|
|
| 33 |
childItems.insert(position, child); |
|
| 34 |
} |
|
| 35 |
|
|
| 36 |
bool DownloadQueueItem::removeChild(DownloadQueueItem *child) |
|
| 37 |
{
|
|
| 38 |
return childItems.removeOne(child); |
|
| 39 |
} |
|
| 40 |
|
|
| 31 | 41 |
DownloadQueueItem *DownloadQueueItem::child(int row) |
| 32 | 42 |
{
|
| 33 | 43 |
return childItems.value(row); |
| ... | ... | |
| 103 | 113 |
{
|
| 104 | 114 |
return parentItem; |
| 105 | 115 |
} |
| 116 |
|
|
| 117 |
DownloadQueueItem *DownloadQueueItem::lookupSubject(QString subject) |
|
| 118 |
{
|
|
| 119 |
Q_FOREACH(DownloadQueueItem *item, childItems) {
|
|
| 120 |
if (item->subject == subject) {
|
|
| 121 |
return item; |
|
| 122 |
} |
|
| 123 |
} |
|
| 124 |
|
|
| 125 |
return NULL; |
|
| 126 |
} |
|
Also available in: Unified diff
NNTPGrab

