Implements database, adds profiles
This commit is contained in:
@@ -1,7 +1,26 @@
|
||||
package ch.gtache.fro.gui;
|
||||
|
||||
import ch.gtache.fro.practice.BirdPracticeParameters;
|
||||
import ch.gtache.fro.practice.GroupedBirdPracticeParameters;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Model for the settings view
|
||||
*/
|
||||
public interface SettingsModel extends Model {
|
||||
|
||||
/**
|
||||
* Returns the bird practice parameters
|
||||
*
|
||||
* @return The parameters
|
||||
*/
|
||||
List<BirdPracticeParameters> birdPracticeParameters();
|
||||
|
||||
/**
|
||||
* Returns the consolidated configuration
|
||||
*
|
||||
* @return The configuration
|
||||
*/
|
||||
GroupedBirdPracticeParameters configuration();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package ch.gtache.fro.practice.gui;
|
||||
|
||||
import ch.gtache.fro.gui.Model;
|
||||
import ch.gtache.fro.practice.GroupedBirdPracticeParameters;
|
||||
import ch.gtache.fro.practice.PracticeParameters;
|
||||
import ch.gtache.fro.practice.PracticeProfile;
|
||||
import ch.gtache.fro.practice.QuestionType;
|
||||
|
||||
import java.util.List;
|
||||
@@ -11,6 +13,34 @@ import java.util.List;
|
||||
*/
|
||||
public interface PracticeSettingsModel extends Model {
|
||||
|
||||
/**
|
||||
* Returns the available profiles
|
||||
*
|
||||
* @return The profiles
|
||||
*/
|
||||
List<PracticeProfile> availableProfiles();
|
||||
|
||||
/**
|
||||
* Returns the selected profile
|
||||
*
|
||||
* @return The profile
|
||||
*/
|
||||
PracticeProfile profile();
|
||||
|
||||
/**
|
||||
* Sets the profile
|
||||
*
|
||||
* @param profile The profile
|
||||
*/
|
||||
void setProfile(PracticeProfile profile);
|
||||
|
||||
/**
|
||||
* Returns the bird practice parameters
|
||||
*
|
||||
* @return The parameters
|
||||
*/
|
||||
GroupedBirdPracticeParameters birdPracticeParameters();
|
||||
|
||||
/**
|
||||
* Returns the list of practice types
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user