OSDN Git Service

Updates to 3D gallery. Build 1203.
[android-x86/packages-apps-Gallery2.git] / src / com / cooliris / media / DataSource.java
1 package com.cooliris.media;
2
3 import java.util.ArrayList;
4
5
6 public interface DataSource {
7     // Load the sets to be displayed.
8     void loadMediaSets(final MediaFeed feed);
9
10     // Pass in Shared.INFINITY for the rangeEnd to load all items.
11     void loadItemsForSet(final MediaFeed feed, final MediaSet parentSet, int rangeStart, int rangeEnd);
12     
13     // Called when the data source will no longer be used.
14     void shutdown();
15     
16     boolean performOperation(int operation, ArrayList<MediaBucket> mediaBuckets, Object data);
17
18     DiskCache getThumbnailCache();
19 }