|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unikassel.android.sdcframework.preferences.TransmissionPreferenceImpl
public class TransmissionPreferenceImpl
Implementation of the preferences for the transmission configuration.
Field Summary | |
---|---|
private SinglePreference<ArchiveTypes> |
archiveTypePreference
The preference for the archive type |
private SinglePreference<Boolean> |
encryptionEnabledPreference
The preference for the encryption enabled flag |
private IntegerPreference |
maxSampleTransferCountPreference
The preference for the maximum count of samples to transfer |
private IntegerPreference |
minSampleTransferCountPreference
The preference for the minimum count of samples to transfer |
private LongPreference |
minTransferFrequencyPreference
The preference for the minimum transmission frequency in seconds |
private static String |
PREFIX
The shared key prefix |
private TransmissionProtocolPreference |
protocolPreference
The preference for the transmission protocol |
Constructor Summary | |
---|---|
TransmissionPreferenceImpl()
Constructor |
Method Summary | |
---|---|
SinglePreference<ArchiveTypes> |
getArchiveTypePreference()
Getter for the preference for the archive type |
TransmissionConfiguration |
getConfiguration(SharedPreferences sharedPreferences)
Getter for the current value in the shared preferences |
TransmissionConfiguration |
getDefault()
Getter for the default value |
SinglePreference<Boolean> |
getEncryptionEnabledPreference()
Getter for the archive encryption enabled preference |
String |
getKey()
Getter for the preference key |
SinglePreference<Integer> |
getMaxSampleTransferCountPreference()
Getter for the preference for the maximum count of samples to transfer |
SinglePreference<Integer> |
getMinSampleTransferCountPreference()
Getter for the preference for the minimum count of samples to transfer |
SinglePreference<Long> |
getMinTransferFrequencyPreference()
Getter for the preference for the minimum transmission frequency |
TransmissionProtocolPreference |
getProtocolPreference()
Getter for the preference for the transmission protocol parameters |
void |
setDefault(TransmissionConfiguration defaultValue)
Setter for the default value |
boolean |
testForKey(String key)
Method to test for a preferences key support |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String PREFIX
private final IntegerPreference minSampleTransferCountPreference
private final IntegerPreference maxSampleTransferCountPreference
private final LongPreference minTransferFrequencyPreference
private final TransmissionProtocolPreference protocolPreference
private final SinglePreference<ArchiveTypes> archiveTypePreference
private final SinglePreference<Boolean> encryptionEnabledPreference
Constructor Detail |
---|
public TransmissionPreferenceImpl()
Method Detail |
---|
public String getKey()
SinglePreference
getKey
in interface SinglePreference<TransmissionConfiguration>
public TransmissionConfiguration getConfiguration(SharedPreferences sharedPreferences)
SinglePreference
getConfiguration
in interface SinglePreference<TransmissionConfiguration>
sharedPreferences
- the shared application preferences
public TransmissionConfiguration getDefault()
SinglePreference
getDefault
in interface SinglePreference<TransmissionConfiguration>
public void setDefault(TransmissionConfiguration defaultValue)
SinglePreference
setDefault
in interface SinglePreference<TransmissionConfiguration>
defaultValue
- the default value to setpublic boolean testForKey(String key)
SinglePreference
testForKey
in interface SinglePreference<TransmissionConfiguration>
key
- the key to test for
public SinglePreference<Integer> getMinSampleTransferCountPreference()
TransmissionPreference
getMinSampleTransferCountPreference
in interface TransmissionPreference
public SinglePreference<Integer> getMaxSampleTransferCountPreference()
TransmissionPreference
getMaxSampleTransferCountPreference
in interface TransmissionPreference
public SinglePreference<Long> getMinTransferFrequencyPreference()
TransmissionPreference
getMinTransferFrequencyPreference
in interface TransmissionPreference
public TransmissionProtocolPreference getProtocolPreference()
TransmissionPreference
getProtocolPreference
in interface TransmissionPreference
public SinglePreference<ArchiveTypes> getArchiveTypePreference()
TransmissionPreference
getArchiveTypePreference
in interface TransmissionPreference
public SinglePreference<Boolean> getEncryptionEnabledPreference()
TransmissionPreference
getEncryptionEnabledPreference
in interface TransmissionPreference
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |