|
|
@ -37,7 +37,7 @@ public interface SeedboxSettings { |
|
|
|
* |
|
|
|
* |
|
|
|
* @return A human-readable name of this seedbox provider |
|
|
|
* @return A human-readable name of this seedbox provider |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public String getName(); |
|
|
|
String getName(); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Should return the order number of the last specified seedbox of this type (regardless of other seedbox types). |
|
|
|
* Should return the order number of the last specified seedbox of this type (regardless of other seedbox types). |
|
|
@ -45,7 +45,7 @@ public interface SeedboxSettings { |
|
|
|
* @param prefs The shared preferences to load the settings from |
|
|
|
* @param prefs The shared preferences to load the settings from |
|
|
|
* @return The order number (id) of the last configured seedbox, or -1 if none are configured. |
|
|
|
* @return The order number (id) of the last configured seedbox, or -1 if none are configured. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public int getMaxSeedboxOrder(SharedPreferences prefs); |
|
|
|
int getMaxSeedboxOrder(SharedPreferences prefs); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Should return a {@link ServerSetting} object that can connect to the seedbox as identified by the given seedbox |
|
|
|
* Should return a {@link ServerSetting} object that can connect to the seedbox as identified by the given seedbox |
|
|
@ -57,7 +57,7 @@ public interface SeedboxSettings { |
|
|
|
* @param order The seedbox provider-specific order id referring to the specific seedbox to load settings for |
|
|
|
* @param order The seedbox provider-specific order id referring to the specific seedbox to load settings for |
|
|
|
* @return A server settings object corresponding to the user's seedbox settings for the specified order id |
|
|
|
* @return A server settings object corresponding to the user's seedbox settings for the specified order id |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public ServerSetting getServerSetting(SharedPreferences prefs, int orderOffset, int order); |
|
|
|
ServerSetting getServerSetting(SharedPreferences prefs, int orderOffset, int order); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Should return a list of all the {@link ServerSetting}s available for this seedbox type. |
|
|
|
* Should return a list of all the {@link ServerSetting}s available for this seedbox type. |
|
|
@ -67,7 +67,7 @@ public interface SeedboxSettings { |
|
|
|
* seedbox |
|
|
|
* seedbox |
|
|
|
* @return A list of all server settings objects that are stored for this seedbox type |
|
|
|
* @return A list of all server settings objects that are stored for this seedbox type |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public List<ServerSetting> getAllServerSettings(SharedPreferences prefs, int orderOffset); |
|
|
|
List<ServerSetting> getAllServerSettings(SharedPreferences prefs, int orderOffset); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Should remove the settings of a specific seedbox specification as identified by its seedbox provider-unique order |
|
|
|
* Should remove the settings of a specific seedbox specification as identified by its seedbox provider-unique order |
|
|
@ -76,7 +76,7 @@ public interface SeedboxSettings { |
|
|
|
* @param prefs The shared preferences to remove the settings from |
|
|
|
* @param prefs The shared preferences to remove the settings from |
|
|
|
* @param order The id referring to a specific seedbox order number within this type of seedbox |
|
|
|
* @param order The id referring to a specific seedbox order number within this type of seedbox |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void removeServerSetting(SharedPreferences prefs, int order); |
|
|
|
void removeServerSetting(SharedPreferences prefs, int order); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* The settings activity in which the user can supply and edit its settings for this specific seedbox type. |
|
|
|
* The settings activity in which the user can supply and edit its settings for this specific seedbox type. |
|
|
@ -84,6 +84,6 @@ public interface SeedboxSettings { |
|
|
|
* @param context The activity context from where the settings activity will be started |
|
|
|
* @param context The activity context from where the settings activity will be started |
|
|
|
* @return An already prepared intent that points to the settings activity for this specific type of seedbox |
|
|
|
* @return An already prepared intent that points to the settings activity for this specific type of seedbox |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public Intent getSettingsActivityIntent(Context context); |
|
|
|
Intent getSettingsActivityIntent(Context context); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|