17 INLINE
int DownloadDb::
18 get_client_num_multifiles()
const {
19 return _client_db.get_num_multifiles();
25 INLINE
int DownloadDb::
26 get_server_num_multifiles()
const {
27 return _server_db.get_num_multifiles();
33 INLINE std::string DownloadDb::
34 get_client_multifile_name(
int index)
const {
35 return _client_db.get_multifile_name(index);
41 INLINE std::string DownloadDb::
42 get_server_multifile_name(
int index)
const {
43 return _server_db.get_multifile_name(index);
50 INLINE Phase DownloadDb::
51 get_client_multifile_phase(std::string mfname)
const {
52 return (_client_db.get_multifile_record_named(mfname))->_phase;
58 INLINE Phase DownloadDb::
59 get_server_multifile_phase(std::string mfname)
const {
60 return (_server_db.get_multifile_record_named(mfname))->_phase;
68 INLINE
int DownloadDb::
69 get_client_multifile_size(std::string mfname)
const {
70 return (_client_db.get_multifile_record_named(mfname))->_size;
76 INLINE
void DownloadDb::
77 set_client_multifile_size(std::string mfname,
int size) {
78 (_client_db.get_multifile_record_named(mfname))->_size = size;
79 write_client_db(_client_db._filename);
86 INLINE
int DownloadDb::
87 set_client_multifile_delta_size(std::string mfname,
int size) {
88 (_client_db.get_multifile_record_named(mfname))->_size += size;
89 write_client_db(_client_db._filename);
91 return (_client_db.get_multifile_record_named(mfname))->_size;
99 INLINE
int DownloadDb::
100 get_server_multifile_size(std::string mfname)
const {
101 return (_server_db.get_multifile_record_named(mfname))->_size;
108 INLINE
void DownloadDb::
109 set_server_multifile_size(std::string mfname,
int size) {
110 (_server_db.get_multifile_record_named(mfname))->_size = size;
117 INLINE
void DownloadDb::
118 set_client_multifile_incomplete(std::string mfname) {
119 (_client_db.get_multifile_record_named(mfname))->_status = Status_incomplete;
120 write_client_db(_client_db._filename);
126 INLINE
void DownloadDb::
127 set_client_multifile_complete(std::string mfname) {
128 (_client_db.get_multifile_record_named(mfname))->_status = Status_complete;
129 write_client_db(_client_db._filename);
135 INLINE
void DownloadDb::
136 set_client_multifile_decompressed(std::string mfname) {
137 (_client_db.get_multifile_record_named(mfname))->_status = Status_decompressed;
138 write_client_db(_client_db._filename);
144 INLINE
void DownloadDb::
145 set_client_multifile_extracted(std::string mfname) {
146 (_client_db.get_multifile_record_named(mfname))->_status = Status_extracted;
147 write_client_db(_client_db._filename);
153 INLINE
int DownloadDb::
154 get_server_num_files(std::string mfname)
const {
155 return (_server_db.get_multifile_record_named(mfname))->get_num_files();
161 INLINE std::string DownloadDb::
162 get_server_file_name(std::string mfname,
int index)
const {
163 return (_server_db.get_multifile_record_named(mfname))->get_file_name(index);