1 #ifndef DOWNLOAD_PROVIDER_DB_H
2 #define DOWNLOAD_PROVIDER_DB_H
4 #include "download-provider-config.h"
23 download_dbinfo *item;
24 } download_dbinfo_list;
27 DOWNLOAD_DB_UNIQUEID = 0,
28 DOWNLOAD_DB_PACKAGENAME = 1,
29 DOWNLOAD_DB_NOTIFICATION = 2,
30 DOWNLOAD_DB_INSTALLPATH = 3,
31 DOWNLOAD_DB_FILENAME = 4,
32 DOWNLOAD_DB_RETRYCOUNT = 5,
33 DOWNLOAD_DB_STATE = 6,
35 DOWNLOAD_DB_MIMETYPE = 10,
36 DOWNLOAD_DB_ETAG = 11,
37 DOWNLOAD_DB_SAVEDPATH = 12
38 } download_db_column_type;
40 int download_provider_db_requestinfo_new(download_clientinfo *clientinfo);
41 int download_provider_db_requestinfo_remove(int uniqueid);
42 int download_provider_db_requestinfo_update_column(download_clientinfo *clientinfo,
43 download_db_column_type type);
44 download_dbinfo_list *download_provider_db_get_list(int state);
45 void download_provider_db_list_free(download_dbinfo_list *list);
46 int download_provider_db_list_count(int state);
47 download_request_info *download_provider_db_get_requestinfo(download_dbinfo *dbinfo);
48 int download_provider_db_history_new(download_clientinfo *clientinfo);
49 int download_provider_db_history_remove(int uniqueid);
50 int download_provider_db_history_limit_rows();