Protocols::BitTorrent::Torrents::Testing Namespace Reference


Classes

class  TorrentParserTest
 TorrentParser class testing unit. More...
class  TorrentTest
 Torrent class testing unit. More...

Functions

bool readTorrentFile (const QString &fileName, QByteArray &rawFileData)
 Reads all data from the torrent file specified by fileName.
bool loadTorrentData (const QString &fileName, Torrent &torrent)
 Loads torrent data from file named fileName into torrent.
 CPPUNIT_TEST_SUITE_REGISTRATION (TorrentParserTest)
 CPPUNIT_TEST_SUITE_REGISTRATION (TorrentTest)


Function Documentation

Protocols::BitTorrent::Torrents::Testing::CPPUNIT_TEST_SUITE_REGISTRATION TorrentTest   ) 
 

Protocols::BitTorrent::Torrents::Testing::CPPUNIT_TEST_SUITE_REGISTRATION TorrentParserTest   ) 
 

bool Protocols::BitTorrent::Torrents::Testing::loadTorrentData const QString &  fileName,
Torrent &  torrent
[inline]
 

Loads torrent data from file named fileName into torrent.

Returns true if everything went ok, false otherwise (file cannot be opened or there were some parsing error).

See also:
readTorrentFile()

Definition at line 63 of file TorrentLoadFunctions.h.

bool Protocols::BitTorrent::Torrents::Testing::readTorrentFile const QString &  fileName,
QByteArray &  rawFileData
[inline]
 

Reads all data from the torrent file specified by fileName.

Reads all data from the torrent file specified by fileName into rawFileData. Returns true if everything was read ok, false otherwise. rawFileData will be left unchanged only if the file cannot be opened.

Definition at line 44 of file TorrentLoadFunctions.h.