public class DownloadsDB extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DownloadsDB.DownloadColumns |
protected static class |
DownloadsDB.DownloadsContentDBHelper |
static class |
DownloadsDB.MetadataColumns |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static DownloadsDB |
getDB(android.content.Context paramContext) |
protected DownloadInfo |
getDownloadInfoByFileName(String fileName) |
DownloadInfo |
getDownloadInfoFromCursor(android.database.Cursor cur) |
DownloadInfo[] |
getDownloads() |
int |
getFlags() |
long |
getIDByIndex(int index) |
long |
getIDForDownloadInfo(DownloadInfo di) |
int |
getLastCheckedVersionCode() |
boolean |
isDownloadRequired() |
void |
setDownloadInfoFromCursor(DownloadInfo di,
android.database.Cursor cur) |
boolean |
updateDownload(DownloadInfo di)
This function will add a new file to the database if it does not exist.
|
boolean |
updateDownload(DownloadInfo di,
android.content.ContentValues cv) |
void |
updateDownloadCurrentBytes(DownloadInfo di) |
boolean |
updateFlags(int flags) |
boolean |
updateFromDb(DownloadInfo di) |
boolean |
updateMetadata(android.content.ContentValues cv) |
boolean |
updateMetadata(int apkVersion,
int downloadStatus) |
boolean |
updateStatus(int status) |
public static final String LOG_TAG
public static DownloadsDB getDB(android.content.Context paramContext)
protected DownloadInfo getDownloadInfoByFileName(String fileName)
public long getIDForDownloadInfo(DownloadInfo di)
public long getIDByIndex(int index)
public void updateDownloadCurrentBytes(DownloadInfo di)
public void close()
public boolean updateDownload(DownloadInfo di)
di - DownloadInfo that we wish to storepublic boolean updateDownload(DownloadInfo di, android.content.ContentValues cv)
public int getLastCheckedVersionCode()
public boolean isDownloadRequired()
public int getFlags()
public boolean updateFlags(int flags)
public boolean updateStatus(int status)
public boolean updateMetadata(android.content.ContentValues cv)
public boolean updateMetadata(int apkVersion,
int downloadStatus)
public boolean updateFromDb(DownloadInfo di)
public void setDownloadInfoFromCursor(DownloadInfo di, android.database.Cursor cur)
public DownloadInfo getDownloadInfoFromCursor(android.database.Cursor cur)
public DownloadInfo[] getDownloads()
Copyright © 2012–2014 simpligility technologies inc.. All rights reserved.