|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.audio.ProfileGallery
public class ProfileGallery
| Nested Class Summary | |
|---|---|
static interface |
ProfileGallery.Class
|
static interface |
ProfileGallery.Errors
|
| Field Summary | |
|---|---|
static int |
MAX_PROFILES
|
static String |
PROFILE_LOUD
|
static String |
PROFILE_MUTE
|
static String |
PROFILE_NORMAL
|
static String |
PROFILE_SOFT
|
| Constructor Summary | |
|---|---|
ProfileGallery()
|
|
| Method Summary | |
|---|---|
static int |
add(Profile profile)
Adds a profile to the gallery. |
static Profile |
get(int index)
get profile by index. |
static Profile |
get(String name)
get profile by name. |
static Profile |
getCurrent()
Get currently selected profile. |
static int |
getCurrentIndex()
Get the index for the current profile. |
static int |
getMaxSize()
Return max number of Profile Gallery entries. |
static Vector |
getNames()
Return Profile names. |
static Vector |
getNames(int klass)
Return group names given a class to filter. |
static int |
getSize()
Return number of entries in Profile Gallery |
static String |
getSwitchBackProfileName()
|
static String |
getSwitchToProfileName()
|
static String |
getSwitchWeekProfileName()
|
static void |
initialize()
|
static void |
initializeFromSysApp()
|
static int |
load()
load one byte stream from flash or the service and restore Profiles Returns Errors.OK if found and loaded. |
static int |
remove(Profile profile)
This will remove a profile from the gallery. |
static int |
replace(Profile oldProfile,
Profile newProfile)
Given a profile that's already in the gallery, replace it with a new one |
static void |
resetDefaults()
Remove ALL profiles and reset to defaults, including selection of the Normal profile |
static void |
save()
bundle up all Profiles into one byte stream and write to flash and the service |
static int |
setCurrent(String profileToUse)
Set the current audio profile, referenced by name. |
static void |
swap(int from,
int to)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROFILE_LOUD
public static final String PROFILE_NORMAL
public static final String PROFILE_SOFT
public static final String PROFILE_MUTE
public static int MAX_PROFILES
| Constructor Detail |
|---|
public ProfileGallery()
| Method Detail |
|---|
public static void initializeFromSysApp()
public static void initialize()
public static void resetDefaults()
public static String getSwitchToProfileName()
public static String getSwitchBackProfileName()
public static String getSwitchWeekProfileName()
public static Profile get(String name)
public static Profile get(int index)
public static int add(Profile profile)
public static void swap(int from,
int to)
public static int replace(Profile oldProfile,
Profile newProfile)
public static int remove(Profile profile)
public static int setCurrent(String profileToUse)
public static Profile getCurrent()
public static int getCurrentIndex()
public static int getMaxSize()
public static int getSize()
public static Vector getNames()
public static Vector getNames(int klass)
public static void save()
public static int load()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||