danger.audio
Class ProfileGallery

java.lang.Object
  |
  +--danger.audio.ProfileGallery
All Implemented Interfaces:
danger.audio.ProfileGalleryList, danger.SystemStrings

public class ProfileGallery
extends java.lang.Object
implements danger.audio.ProfileGalleryList, danger.SystemStrings


Inner Class Summary
static interface ProfileGallery.Class
           
static interface ProfileGallery.Errors
           
 
Field Summary
static int kMaxProfiles
           
static java.lang.String kProfileLoud
           
static java.lang.String kProfileMute
           
static java.lang.String kProfileNormal
           
static java.lang.String kProfileSoft
           
static Profile[] sProfilesStatic
           
 
Fields inherited from interface danger.SystemStrings
kRsrc_AboutToPowerOffDialogTitle, kRsrc_AboutToPowerOffMessage, kRsrc_AccountDisabledLabel, kRsrc_AccountDisabledMessage, kRsrc_ActivationMessage, kRsrc_Add, kRsrc_AddAll, kRsrc_AddToContacts, kRsrc_AdvancedStrings, kRsrc_ATChannelStatus, kRsrc_ATChannelTimeout, kRsrc_AtCommandTimeout, kRsrc_AtoZ, kRsrc_AttachChecked, kRsrc_AttemptingSignIn, kRsrc_AttemptingSIMUnlockLabel, kRsrc_AttemptingSIMUnlockMessage, kRsrc_AudioInfoFormat, kRsrc_AudioPreviewTitle, kRsrc_AudioStopButtonTitle, kRsrc_BadCmuxChecksum, kRsrc_BasicStrings, kRsrc_BatteryTooLowMessage, kRsrc_BatteryTooLowTitle, kRsrc_Beeps, kRsrc_BrandName, kRsrc_Brightness, kRsrc_BrightnessLower, kRsrc_Bytes, kRsrc_Camera, kRsrc_CameraNotDetected, kRsrc_CameraNotDetectedDesc, kRsrc_Cancel, kRsrc_Capture, kRsrc_CaptureNew, kRsrc_ChangePINSucessMessage, kRsrc_ChannelWriteTimeout, kRsrc_ChimesBack, kRsrc_ChimesFore, kRsrc_ClearAuthSettingsLabel, kRsrc_ClearAuthSettingsMsg, kRsrc_ClearFlashSettingsLabel, kRsrc_ClearFlashSettingsMsg, kRsrc_ClockNotSetMessage, kRsrc_ClockNotSetTitle, kRsrc_Comma, kRsrc_Company, kRsrc_Confirm, kRsrc_ConfirmPowerOffButton, kRsrc_ConfirmPowerOffMessage, kRsrc_ConfirmPowerOffTitle, kRsrc_Connecting, kRsrc_Continue, kRsrc_Continuous, kRsrc_Contrast, kRsrc_ContrastLower, kRsrc_Copy, kRsrc_CustomerCareContact, kRsrc_CustomizeLabel, kRsrc_CustomizeRingtoneTitle, kRsrc_Cut, kRsrc_DangerLegalAgreement, kRsrc_DateStampStringPair, kRsrc_DateTime, kRsrc_DefaultShortcuts, kRsrc_DefaultSystemUpgradeLabel, kRsrc_DefaultSystemUpgradeMessage, kRsrc_DeleteSelection, kRsrc_DeviceName, kRsrc_DicardRingToneToMakeRoom, kRsrc_Disable, kRsrc_Discard, kRsrc_DiscardChecked, kRsrc_DiscardConfirmationMulti, kRsrc_DiscardConfirmationSingle, kRsrc_DiscardHighlighted, kRsrc_DiscardPhoto, kRsrc_DiscardPhotos, kRsrc_Discreet, kRsrc_Done, kRsrc_DoSystemUpgradeLabel, kRsrc_DoSystemUpgradeMessage, kRsrc_Edit, kRsrc_Ellipsis, kRsrc_Email, kRsrc_EmergencyHelpText, kRsrc_EmergencyPhone, kRsrc_EmptyGallery, kRsrc_Enable, kRsrc_EnterNetPIN, kRsrc_EnterNetPINLabel, kRsrc_EnterNewPINLabel, kRsrc_EnterNewPINMessage, kRsrc_EnterPINCodeLabel, kRsrc_EnterPINCodeMessage, kRsrc_Error, kRsrc_ErrRecordNotFound, kRsrc_ExistingAccount, kRsrc_FatalNetworkError, kRsrc_FavoriteAbbrev, kRsrc_First, kRsrc_FixedUserLoginMessage, kRsrc_Flip, kRsrc_FolderEditorDeleteMessage, kRsrc_FPLMNConnectFailed, kRsrc_FPLMNOnlyConnect, kRsrc_FPLMNOnlyLabel, kRsrc_FPLMNOnlyMessage, kRsrc_FullScreen, kRsrc_Gallery, kRsrc_IconFamily_Calendar, kRsrc_IconFamily_Contacts, kRsrc_IDTagDefaultMsg, kRsrc_IMEI, kRsrc_ImportGroupName, kRsrc_Inactive, kRsrc_IncludeThisContact, kRsrc_IncorrectPINCodeLabel, kRsrc_IncorrectPINCodeMessage, kRsrc_InvalidAPNOrNonGPRS_SIM, kRsrc_InvalidAPNOrNonGPRS_SIMLabel, kRsrc_InvalidPasswordLabel, kRsrc_InvalidPasswordMessage, kRsrc_InvalidSIMMarqueeMessage, kRsrc_InvalidUsernamePasswordMsg, kRsrc_KeepIt, kRsrc_KeyGuardTitle, kRsrc_Last, kRsrc_LockedOutSIMMarqueeMessage, kRsrc_LockedSIMMarqueeMessage, kRsrc_LoggedIn, kRsrc_LoggingIn, kRsrc_LoginButtonLabel, kRsrc_LoginLabel, kRsrc_LoginMessage, kRsrc_LoginProgress, kRsrc_LoginProgressSuccess, kRsrc_MenuShortcutJumpAndBack, kRsrc_MenuShortcutMenuAndBack, kRsrc_MenuShortcutPowerSwitch, kRsrc_Middle, kRsrc_MismatchedNewPINMessage, kRsrc_MissingSIMLabel, kRsrc_MissingSIMMarqueeMessage, kRsrc_MissingSIMMessage, kRsrc_Mute, kRsrc_Name, kRsrc_NeedLoginLabel, kRsrc_NeedLoginMessage, kRsrc_NeedsPUKLabel, kRsrc_NeedsPUKMessage, kRsrc_NetErrorCode1, kRsrc_NetErrorCode11, kRsrc_NetErrorCode12, kRsrc_NetErrorCode13, kRsrc_NetErrorCode2, kRsrc_NetErrorCode3, kRsrc_NetErrorCode4, kRsrc_NetErrorCode5, kRsrc_NetErrorCode6, kRsrc_NetErrorCode7, kRsrc_NetErrorCode9, kRsrc_Netlog, kRsrc_NetPINIncorrect, kRsrc_NetPINIncorrectLabel, kRsrc_NetPINLabel, kRsrc_Network, kRsrc_NetworkIpDead, kRsrc_NetworkUnavailableLabel, kRsrc_NetworkUnavailableMarqueeMessage, kRsrc_NetworkUnavailableMessage, kRsrc_New, kRsrc_NewLine2, kRsrc_NewPhotosAtBottom, kRsrc_NewPhotosAtTop, kRsrc_NewPINLabel, kRsrc_NewRingToneReceived, kRsrc_NewSIMDetectedLabel, kRsrc_NewSIMDetectedMessage, kRsrc_NewUserLoggedInSuccessLabel, kRsrc_Next, kRsrc_Nickname, kRsrc_NonCarrierSIMMessage, kRsrc_None, kRsrc_NonhiptopEnabledSIMMessage, kRsrc_NonXXXSIMLabel, kRsrc_NotLoggedIn, kRsrc_NotLoggedInMarqueeMessage, kRsrc_OK, kRsrc_OldPINLabel, kRsrc_OnPhoneCallMarqueeMessage, kRsrc_OSVersion, kRsrc_PartnerName, kRsrc_PasscodeMask, kRsrc_PasswordLabel, kRsrc_Paste, kRsrc_PdpActivateTimeout, kRsrc_Period, kRsrc_Phone, kRsrc_PhoneCallVolume, kRsrc_PhoneEndCall, kRsrc_PhoneEndCallShortcut, kRsrc_PhoneInUseLabel, kRsrc_PhoneInUseMessage, kRsrc_PhoneNumberChangedLabel, kRsrc_PhoneNumberChangedMessage, kRsrc_PhoneNumberStringPair, kRsrc_PhoneStatus, kRsrc_photo, kRsrc_PhotoLeft, kRsrc_PhotoLimitExceeded, kRsrc_PhotoLimitExceededDesc, kRsrc_PhotoLimitReached, kRsrc_PhotoLimitReachedDesc, kRsrc_PhotoName, kRsrc_photos, kRsrc_PhotosLeft, kRsrc_PINCodeTooShortMessage, kRsrc_Prev, kRsrc_Previous, kRsrc_PrivacyLockTitle, kRsrc_ProfileLoud, kRsrc_ProfileMute, kRsrc_ProfileNormal, kRsrc_ProfileSoft, kRsrc_PUKAcceptedLabel, kRsrc_PUKIncorrectLabel, kRsrc_PUKIncorrectMessage, kRsrc_PUKLabel, kRsrc_QuoteClose, kRsrc_QuoteOpen, kRsrc_RadioError, kRsrc_RadioFirmwareFixed, kRsrc_RadioHasBeenReset, kRsrc_RadioIgnoredLowPowerRequest, kRsrc_RadioNotFoundMessage, kRsrc_RadioNotFoundTitle, kRsrc_RadioOffLabel, kRsrc_RadioOffMarqueeMessage, kRsrc_RadioOffMessage, kRsrc_RadioReset, kRsrc_RadioUnregisteredLabel, kRsrc_RadioUnregisteredMarqueeMessage, kRsrc_RadioUnregisteredMessage, kRsrc_RadioVersion, kRsrc_RadioWontWake, kRsrc_RecentAbbrev, kRsrc_RecoverableNetworkError, kRsrc_RegOptionLabel, kRsrc_RegOptionLoginButton, kRsrc_RegOptionMessage, kRsrc_RegOptionRegisterButton, kRsrc_Remove, kRsrc_Rename, kRsrc_RenamePhoto, kRsrc_Replace, kRsrc_Report, kRsrc_Restart, kRsrc_Retry, kRsrc_Review, kRsrc_RingToneBuzzerLabel, kRsrc_RingToneFlasherLabel, kRsrc_RingToneSoundLabel, kRsrc_RoamingDataOffMarqueeMessage, kRsrc_RoamingDataOffMessage, kRsrc_RoamingLabel, kRsrc_RoamingMarqueeMessage, kRsrc_RoamingRadioOffMessage, kRsrc_Save, kRsrc_SelectAll, kRsrc_SendChecked, kRsrc_SignalStrength, kRsrc_SIMErrorCode1, kRsrc_SIMErrorCode2, kRsrc_SIMErrorCode3, kRsrc_SIMErrorCode4, kRsrc_SIMErrorCode5, kRsrc_SIMErrorCode6, kRsrc_SIMErrorCode7, kRsrc_SIMErrorCode8, kRsrc_SIMHardwareError, kRsrc_SIMInitTimeout, kRsrc_SIMLockedLabel, kRsrc_SIMLockedMessage, kRsrc_SIMLockedOutLabel, kRsrc_SIMLockedOutMessage, kRsrc_SIMNotEnabledLabel, kRsrc_SIMNotReadyLabel, kRsrc_SIMNotReadyMarqueeMessage, kRsrc_SIMNotReadyMessage, kRsrc_SIMUnlockedLabel, kRsrc_SIMUnlockedMessage, kRsrc_SleepAlertPostMessage, kRsrc_Songs, kRsrc_Sorry, kRsrc_Sort, kRsrc_SortOrder, kRsrc_SortPhotos, kRsrc_SortPhotosBy, kRsrc_SoundControlsTitle, kRsrc_SpecialChars, kRsrc_Star99PoundError, kRsrc_String_Attempts, kRsrc_Submit, kRsrc_Support, kRsrc_SysDialogDetails, kRsrc_Syslog, kRsrc_SystemUpgradeOpt1, kRsrc_SystemUpgradeOpt2, kRsrc_SystemUpgradeOpt3, kRsrc_SystemUpgradeSuccessLabel, kRsrc_SystemUpgradeSuccessMessage, kRsrc_TextEdit, kRsrc_Timestamp, kRsrc_TimeStampStringPair, kRsrc_TryAgain, kRsrc_TZ_Alaska, kRsrc_TZ_Aleutian, kRsrc_TZ_Arizona, kRsrc_TZ_Atlantic, kRsrc_TZ_Central, kRsrc_TZ_Eastern, kRsrc_TZ_GMT, kRsrc_TZ_GMTMinus1, kRsrc_TZ_GMTMinus10, kRsrc_TZ_GMTMinus11, kRsrc_TZ_GMTMinus12, kRsrc_TZ_GMTMinus2, kRsrc_TZ_GMTMinus3, kRsrc_TZ_GMTMinus4, kRsrc_TZ_GMTMinus5, kRsrc_TZ_GMTMinus6, kRsrc_TZ_GMTMinus7, kRsrc_TZ_GMTMinus8, kRsrc_TZ_GMTMinus9, kRsrc_TZ_GMTPlus1, kRsrc_TZ_GMTPlus10, kRsrc_TZ_GMTPlus11, kRsrc_TZ_GMTPlus12, kRsrc_TZ_GMTPlus13, kRsrc_TZ_GMTPlus2, kRsrc_TZ_GMTPlus3, kRsrc_TZ_GMTPlus4, kRsrc_TZ_GMTPlus5, kRsrc_TZ_GMTPlus6, kRsrc_TZ_GMTPlus7, kRsrc_TZ_GMTPlus8, kRsrc_TZ_GMTPlus9, kRsrc_TZ_Hawaii, kRsrc_TZ_IndianaEast, kRsrc_TZ_Mountain, kRsrc_TZ_Pacific, kRsrc_TZ_PuertoRico, kRsrc_TZ_Samoa, kRsrc_UartBreak, kRsrc_UartFramingError, kRsrc_UartOverrun, kRsrc_Unknown, kRsrc_UnknownRadioErrorCode, kRsrc_UnlockStatusText, kRsrc_UnMute, kRsrc_UnsafeToUpgradeMessage, kRsrc_UnsafeToUpgradeTitle, kRsrc_UpgradeSuccessLabel, kRsrc_UpgradeSuccessMessage, kRsrc_UpgradeVerifyFailedMessage, kRsrc_UpgradeVerifyFailedTitle, kRsrc_UserIDStringPair, kRsrc_UsernameLabel, kRsrc_ViewFullscreen, kRsrc_ViewGallery, kRsrc_ViewLicense, kRsrc_ViewThumbnails, kRsrc_Voice, kRsrc_Volume, kRsrc_WaitingForActivation, kRsrc_WrongComboAlertHelpText, kRsrc_WrongComboAlertMessage, kRsrc_WrongComboAlertTitle, kRsrc_ZtoA
 
Constructor Summary
ProfileGallery()
           
 
Method Summary
static int add(Profile profile)
           
static Profile get(int index)
           
static Profile get(java.lang.String name)
           
static Profile getCurrent()
           
static java.util.Vector getNames()
           
static java.util.Vector getNames(int klass)
           
static int getSize()
           
static void initialize()
           
static void initializeFromSysApp()
           
static int load()
           
static int remove(Profile profile)
           
static int replace(Profile oldProfile, Profile newProfile)
           
static void resetDefaults()
           
static void save()
           
static int setCurrent(java.lang.String profileToUse)
           
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

kMaxProfiles

public static final int kMaxProfiles

kProfileLoud

public static final java.lang.String kProfileLoud

kProfileNormal

public static final java.lang.String kProfileNormal

kProfileSoft

public static final java.lang.String kProfileSoft

kProfileMute

public static final java.lang.String kProfileMute

sProfilesStatic

public static final Profile[] sProfilesStatic
Constructor Detail

ProfileGallery

public ProfileGallery()
Method Detail

initializeFromSysApp

public static void initializeFromSysApp()

initialize

public static void initialize()

resetDefaults

public static void resetDefaults()

get

public static Profile get(java.lang.String name)

get

public static Profile get(int index)

add

public static int add(Profile profile)

swap

public static void swap(int from,
                        int to)

replace

public static int replace(Profile oldProfile,
                          Profile newProfile)

remove

public static int remove(Profile profile)

setCurrent

public static int setCurrent(java.lang.String profileToUse)

getCurrent

public static Profile getCurrent()

getSize

public static int getSize()

getNames

public static java.util.Vector getNames()

getNames

public static java.util.Vector getNames(int klass)

save

public static void save()

load

public static int load()


Danger Confidential. Copyright © 2000-2003, Danger Inc.