is_new attribute added to the torrent state information
[qtrapids] / src / include / qtrapids / info.hpp
1 #ifndef _QTRAPIDS_INFO_HPP_
2 #define _QTRAPIDS_INFO_HPP_
3
4 #include <libtorrent/torrent_handle.hpp>
5
6 #include <limits>
7 #include <stdint.h>
8
9 namespace qtrapids
10 {
11
12     static const uint32_t torrent_progress_max = 1000000;
13     static const uint32_t torrent_progress_percent = 10000;
14     //std::numeric_limits<uint32_t>::max();
15
16     typedef libtorrent::torrent_status TorrentStatus_t;
17     typedef libtorrent::torrent_status::state_t TorrentStatusIds_t;
18
19     struct TorrentStatus
20     {
21         enum Id {
22             QUEUED_FOR_CHECKING = TorrentStatus_t::queued_for_checking,
23             CHECKING_FILES = TorrentStatus_t::checking_files,
24             DOWNLOADING_METADATA = TorrentStatus_t::downloading_metadata,
25             DOWNLOADING = TorrentStatus_t::downloading,
26             FINISHED = TorrentStatus_t::finished,
27             SEEDING = TorrentStatus_t::seeding,
28             ALLOCATING = TorrentStatus_t::allocating,
29             CHECKING_RESUME_DATA = TorrentStatus_t::checking_resume_data,
30             UNSPECIFIED
31         };
32     };
33
34 }
35
36 #endif // _QTRAPIDS_INFO_HPP_
37