X-Git-Url: http://git.maemo.org/git/?p=qtrapids;a=blobdiff_plain;f=src%2Finclude%2Fqtrapids%2Finfo.hpp;h=81c7017e09f57e128db3528d570eaccd607a139b;hp=f94467740e925e89093c5d95dbbd2749c14e34ca;hb=4fda70ff265b1a5a1f37597f57253272a2b22fbf;hpb=c47e7b47ba063d8915e6cc5df4ffee82318023ed diff --git a/src/include/qtrapids/info.hpp b/src/include/qtrapids/info.hpp index f944677..81c7017 100644 --- a/src/include/qtrapids/info.hpp +++ b/src/include/qtrapids/info.hpp @@ -9,27 +9,26 @@ namespace qtrapids { - static const uint32_t torrent_progress_max = 1000000; - static const uint32_t torrent_progress_percent = 10000; - //std::numeric_limits::max(); - - typedef libtorrent::torrent_status TorrentStatus_t; - typedef libtorrent::torrent_status::state_t TorrentStatusIds_t; - - struct TorrentStatus - { - enum Id { - QUEUED_FOR_CHECKING = TorrentStatus_t::queued_for_checking, - CHECKING_FILES = TorrentStatus_t::checking_files, - DOWNLOADING_METADATA = TorrentStatus_t::downloading_metadata, - DOWNLOADING = TorrentStatus_t::downloading, - FINISHED = TorrentStatus_t::finished, - SEEDING = TorrentStatus_t::seeding, - ALLOCATING = TorrentStatus_t::allocating, - CHECKING_RESUME_DATA = TorrentStatus_t::checking_resume_data, - UNSPECIFIED - }; - }; +static const uint32_t torrent_progress_max = 1000000; +static const uint32_t torrent_progress_percent = 10000; +//std::numeric_limits::max(); + +typedef libtorrent::torrent_status TorrentStatus_t; +typedef libtorrent::torrent_status::state_t TorrentStatusIds_t; + +struct TorrentStatus { + enum Id { + QUEUED_FOR_CHECKING = TorrentStatus_t::queued_for_checking, + CHECKING_FILES = TorrentStatus_t::checking_files, + DOWNLOADING_METADATA = TorrentStatus_t::downloading_metadata, + DOWNLOADING = TorrentStatus_t::downloading, + FINISHED = TorrentStatus_t::finished, + SEEDING = TorrentStatus_t::seeding, + ALLOCATING = TorrentStatus_t::allocating, + CHECKING_RESUME_DATA = TorrentStatus_t::checking_resume_data, + UNSPECIFIED + }; +}; }