#include <BList.h> [code]
Inherits Protocols::BitTorrent::Bencoding::BItem.
Inheritance diagram for Protocols::BitTorrent::Bencoding::BList:


A derived from BItem class representing the bencoding list type. Contains a list of pointers to objects of to BItem.
Definition at line 39 of file BList.h.
Public Member Functions | |
| BList () | |
| Constructs an invalid BList object. | |
| ~BList () | |
| BList destructor. | |
| const BItem * | item (int index) const |
| Returns the BItem on index index. | |
| int | size () const |
| Returns the number of elements in the list. | |
| void | append (BItem *item) |
| Appends an item to the list. | |
Protected Member Functions | |
| bool | read (BinaryReader &) |
| Reads and loads a bencoded list item from the reader. | |
Protected Attributes | |
| QList< const BItem * > | list |
| const BErrorItem | errorItem |
|
|
Constructs an invalid BList object.
|
|
|
BList destructor. Deletes all the elements in the list; |
|
|
Appends an item to the list. Appends the item item to the list. |
|
|
Returns the BItem on index index. If an BItem on index exists - returns it. Otherwise returns an invalid BItem object. |
|
|
Reads and loads a bencoded list item from the reader. Returns true if all the loaded data is correct (every item of the list), false otherwise. Implements Protocols::BitTorrent::Bencoding::BItem. |
|
|
Returns the number of elements in the list. Same as QList::size(). |
|
|
|
|
|
|