21 INLINE
int DownloadDb::
22 get_client_num_multifiles()
const {
23 return _client_db.get_num_multifiles();
31 INLINE
int DownloadDb::
32 get_server_num_multifiles()
const {
33 return _server_db.get_num_multifiles();
41 INLINE
string DownloadDb::
42 get_client_multifile_name(
int index)
const {
43 return _client_db.get_multifile_name(index);
51 INLINE
string DownloadDb::
52 get_server_multifile_name(
int index)
const {
53 return _server_db.get_multifile_name(index);
62 INLINE Phase DownloadDb::
63 get_client_multifile_phase(
string mfname)
const {
64 return (_client_db.get_multifile_record_named(mfname))->_phase;
72 INLINE Phase DownloadDb::
73 get_server_multifile_phase(
string mfname)
const {
74 return (_server_db.get_multifile_record_named(mfname))->_phase;
84 INLINE
int DownloadDb::
85 get_client_multifile_size(
string mfname)
const {
86 return (_client_db.get_multifile_record_named(mfname))->_size;
94 INLINE
void DownloadDb::
95 set_client_multifile_size(
string mfname,
int size) {
96 (_client_db.get_multifile_record_named(mfname))->_size = size;
97 write_client_db(_client_db._filename);
106 INLINE
int DownloadDb::
107 set_client_multifile_delta_size(
string mfname,
int size) {
108 (_client_db.get_multifile_record_named(mfname))->_size += size;
109 write_client_db(_client_db._filename);
111 return (_client_db.get_multifile_record_named(mfname))->_size;
121 INLINE
int DownloadDb::
122 get_server_multifile_size(
string mfname)
const {
123 return (_server_db.get_multifile_record_named(mfname))->_size;
132 INLINE
void DownloadDb::
133 set_server_multifile_size(
string mfname,
int size) {
134 (_server_db.get_multifile_record_named(mfname))->_size = size;
143 INLINE
void DownloadDb::
144 set_client_multifile_incomplete(
string mfname) {
145 (_client_db.get_multifile_record_named(mfname))->_status = Status_incomplete;
146 write_client_db(_client_db._filename);
154 INLINE
void DownloadDb::
155 set_client_multifile_complete(
string mfname) {
156 (_client_db.get_multifile_record_named(mfname))->_status = Status_complete;
157 write_client_db(_client_db._filename);
165 INLINE
void DownloadDb::
166 set_client_multifile_decompressed(
string mfname) {
167 (_client_db.get_multifile_record_named(mfname))->_status = Status_decompressed;
168 write_client_db(_client_db._filename);
176 INLINE
void DownloadDb::
177 set_client_multifile_extracted(
string mfname) {
178 (_client_db.get_multifile_record_named(mfname))->_status = Status_extracted;
179 write_client_db(_client_db._filename);
187 INLINE
int DownloadDb::
188 get_server_num_files(
string mfname)
const {
189 return (_server_db.get_multifile_record_named(mfname))->get_num_files();
197 INLINE
string DownloadDb::
198 get_server_file_name(
string mfname,
int index)
const {
199 return (_server_db.get_multifile_record_named(mfname))->get_file_name(index);