mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-31 19:04:52 +01:00
Created DB* classes
This commit is contained in:
parent
cb2e5f14ab
commit
f891514ec7
56
src/de/danoeh/antennapod/storage/DBReader.java
Normal file
56
src/de/danoeh/antennapod/storage/DBReader.java
Normal file
@ -0,0 +1,56 @@
|
||||
package de.danoeh.antennapod.storage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import de.danoeh.antennapod.asynctask.DownloadStatus;
|
||||
import de.danoeh.antennapod.feed.Feed;
|
||||
import de.danoeh.antennapod.feed.FeedItem;
|
||||
import de.danoeh.antennapod.feed.FeedMedia;
|
||||
|
||||
public final class DBReader {
|
||||
private static final String TAG = "DBReader";
|
||||
|
||||
private DBReader() {
|
||||
}
|
||||
|
||||
public static List<Feed> getFeedList() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static List<FeedItem> getFeedItemList(long feedId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static List<FeedItem> getQueue() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static List<FeedItem> getUnreadItemsList() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static List<FeedItem> getPlaybackHistory() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static List<DownloadStatus> getDownloadLog() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Feed getFeed(long feedId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public FeedItem getFeedItem(long itemId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public FeedMedia getFeedMedia(long mediaId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static FeedItem getFirstQueueItem() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
77
src/de/danoeh/antennapod/storage/DBTasks.java
Normal file
77
src/de/danoeh/antennapod/storage/DBTasks.java
Normal file
@ -0,0 +1,77 @@
|
||||
package de.danoeh.antennapod.storage;
|
||||
|
||||
import android.content.Context;
|
||||
import de.danoeh.antennapod.feed.Feed;
|
||||
import de.danoeh.antennapod.feed.FeedItem;
|
||||
|
||||
public final class DBTasks {
|
||||
private static final String TAG = "DBTasks";
|
||||
|
||||
private DBTasks() {
|
||||
}
|
||||
|
||||
public static void playMedia(final Context context, final long mediaId,
|
||||
boolean showPlayer, boolean startWhenPrepared, boolean shouldStream) {
|
||||
|
||||
}
|
||||
|
||||
public static void markItemRead(final Context context, final long itemId,
|
||||
final boolean read, boolean resetMediaPosition) {
|
||||
}
|
||||
|
||||
public static void markFeedRead(final Context context, final long feedId) {
|
||||
|
||||
}
|
||||
|
||||
public static void markAllItemsRead(final Context context) {
|
||||
}
|
||||
|
||||
public static void refreshAllFeeds(final Context context) {
|
||||
}
|
||||
|
||||
public void refreshExpiredFeeds(final Context context) {
|
||||
}
|
||||
|
||||
public static void notifyInvalidImageFile(final Context context,
|
||||
final long imageId) {
|
||||
}
|
||||
|
||||
public static void notifyMissingFeedMediaFile(final Context context,
|
||||
final long mediaId) {
|
||||
}
|
||||
|
||||
public static void downloadAllItemsInQueue(final Context context) {}
|
||||
|
||||
public static void refreshFeed(final Context context, final long feedId) {
|
||||
}
|
||||
|
||||
public static void downloadFeedItem(final Context context, long... itemIds) {}
|
||||
|
||||
static void downloadFeedItem(boolean performAutoCleanup,
|
||||
final Context context, final long... itemIds)
|
||||
throws DownloadRequestException {}
|
||||
|
||||
public static void autodownloadUndownloadedItems(Context context) {
|
||||
}
|
||||
|
||||
private static int getPerformAutoCleanupArgs(final int episodeNumber) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static void performAutoCleanup(final Context context) {}
|
||||
|
||||
private static int performAutoCleanup(final Context context, final int episodeNumber) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static void enqueueAllNewItems(final Context context) {}
|
||||
|
||||
public static FeedItem getQueueSuccessorOfItem(final long itemId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Feed updateFeed(final Context context, final long feedId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
63
src/de/danoeh/antennapod/storage/DBWriter.java
Normal file
63
src/de/danoeh/antennapod/storage/DBWriter.java
Normal file
@ -0,0 +1,63 @@
|
||||
package de.danoeh.antennapod.storage;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
public class DBWriter {
|
||||
private static final String TAG = "DBWriter";
|
||||
|
||||
private DBWriter() {
|
||||
}
|
||||
|
||||
public static boolean deleteFeedMedia(final Context context,
|
||||
final long mediaId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void deleteFeed(final Context context, final long feedId) {
|
||||
|
||||
}
|
||||
|
||||
public static void clearPlaybackHistory(final Context context) {
|
||||
|
||||
}
|
||||
|
||||
public static void addItemToPlaybackHistory(final Context context,
|
||||
long itemId) {
|
||||
|
||||
}
|
||||
|
||||
private static void removeItemFromPlaybackHistory(final Context context,
|
||||
long itemId) {
|
||||
|
||||
}
|
||||
|
||||
public static void addDownloadStatus(final Context context,
|
||||
final long statusId) {
|
||||
|
||||
}
|
||||
|
||||
public static void addQueueItemAt(final Context context, final long itemId,
|
||||
final int index, final boolean performAutoDownload) {
|
||||
|
||||
}
|
||||
|
||||
public static void addQueueItem(final Context context,
|
||||
final long... itemIds) {
|
||||
}
|
||||
|
||||
public static void clearQueue(final Context context) {
|
||||
}
|
||||
|
||||
public static void removeQueueItem(final Context context,
|
||||
final long itemId, final boolean performAutoDownload) {
|
||||
|
||||
}
|
||||
|
||||
public void moveQueueItem(final Context context, int from, int to,
|
||||
boolean broadcastUpdate) {
|
||||
}
|
||||
|
||||
void addNewFeed(final Context context, final long feedId) {
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user