com.aol.acc
Class AccPreferences

java.lang.Object
  extended by com.aol.acc.AccBase
      extended by com.aol.acc.AccPreferences

public class AccPreferences
extends AccBase

The IAccPreferences interface is for getting/setting server-based or local preferences.


Method Summary
 boolean getBoolean(java.lang.String specifier)
          Gets the specified boolean preference.
 AccVariant getChildSpecifiers(java.lang.String specifier)
          Returns all immediate child preference specifiers.

 AccVariant getDefaultValue(java.lang.String specifier)
          Gets a default for the specified preference.
 int getInt(java.lang.String specifier)
          Gets the specified int preference.
 java.lang.String getString(java.lang.String specifier)
          Gets the specified string preference.
 AccVariant getValue(java.lang.String specifier)
          Gets the specified preference.

 int requestValue(java.lang.String specifier)
          Requests the specified preference.
 void reset(java.lang.String specifier)
          Reset the specified preference.
 void setValue(java.lang.String specifier, AccBase value)
          Sets the specified acc object preference.
 void setValue(java.lang.String specifier, AccEnum value)
          Sets the specified enum preference.
 void setValue(java.lang.String specifier, AccVariant value)
          Sets the specified preference.

 void setValue(java.lang.String specifier, boolean value)
          Sets the specified boolean preference.
 void setValue(java.lang.String specifier, int value)
          Sets the specified int preference.
 void setValue(java.lang.String specifier, java.lang.String value)
          Sets the specified string preference.
 
Methods inherited from class com.aol.acc.AccBase
compareHandle, equals
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValue

public AccVariant getValue(java.lang.String specifier)
                    throws AccException
Gets the specified preference.

Throws:
AccException

requestValue

public int requestValue(java.lang.String specifier)
                 throws AccException
Requests the specified preference. The result arrives
via DAccEvents::OnPreferenceResult.

Throws:
AccException

getDefaultValue

public AccVariant getDefaultValue(java.lang.String specifier)
                           throws AccException
Gets a default for the specified preference. GetValue()
calls this. You generally will only call this directly
when resetting a preference to its default value.

Throws:
AccException

setValue

public void setValue(java.lang.String specifier,
                     AccVariant value)
              throws AccException
Sets the specified preference.

Throws:
AccException

reset

public void reset(java.lang.String specifier)
           throws AccException
Reset the specified preference. Append "." to the specifier to
make it recursive.

Throws:
AccException

getChildSpecifiers

public AccVariant getChildSpecifiers(java.lang.String specifier)
                              throws AccException
Returns all immediate child preference specifiers.

Throws:
AccException

setValue

public void setValue(java.lang.String specifier,
                     int value)
              throws AccException
Sets the specified int preference.

Throws:
AccException

setValue

public void setValue(java.lang.String specifier,
                     boolean value)
              throws AccException
Sets the specified boolean preference.

Throws:
AccException

setValue

public void setValue(java.lang.String specifier,
                     AccEnum value)
              throws AccException
Sets the specified enum preference.

Throws:
AccException

setValue

public void setValue(java.lang.String specifier,
                     java.lang.String value)
              throws AccException
Sets the specified string preference.

Throws:
AccException

setValue

public void setValue(java.lang.String specifier,
                     AccBase value)
              throws AccException
Sets the specified acc object preference.

Throws:
AccException

getInt

public int getInt(java.lang.String specifier)
           throws AccException
Gets the specified int preference.

Throws:
AccException

getBoolean

public boolean getBoolean(java.lang.String specifier)
                   throws AccException
Gets the specified boolean preference.

Throws:
AccException

getString

public java.lang.String getString(java.lang.String specifier)
                           throws AccException
Gets the specified string preference.

Throws:
AccException