private PerformanceFlags performanceFlags;
private AdvancedSettings advancedSettings;
private DebugSettings debugSettings;
+
public BookmarkBase(Parcel parcel) {
type = parcel.readInt();
id = parcel.readLong();
debugSettings = parcel.readParcelable(DebugSettings.class
.getClassLoader());
}
+
public BookmarkBase() {
init();
}
height = parcel.readInt();
}
+ private void validate() {
+ switch (colors) {
+ case 32:
+ case 24:
+ case 16:
+ case 15:
+ case 8:
+ break;
+ default:
+ colors = 32;
+ break;
+ }
+
+ if ((width <= 0) || (width > 65536)) {
+ width = 1024;
+ }
+
+ if ((height <= 0) || (height > 65536)) {
+ height = 768;
+ }
+
+ switch(resolution) {
+ case FITSCREEN:
+ case AUTOMATIC:
+ case CUSTOM:
+ case PREDEFINED:
+ break;
+ default:
+ resolution = AUTOMATIC;
+ break;
+ }
+ }
+
private void init() {
resolution = AUTOMATIC;
colors = 16;
}
public boolean isPredefined() {
+ validate();
return (resolution == PREDEFINED);
}
public boolean isAutomatic() {
+ validate();
return (resolution == AUTOMATIC);
}
public boolean isFitScreen() {
+ validate();
return (resolution == FITSCREEN);
}
public boolean isCustom() {
+ validate();
return (resolution == CUSTOM);
}
public int getWidth() {
+ validate();
return width;
}
}
public int getHeight() {
+ validate();
return height;
}
}
public int getColors() {
+ validate();
return colors;
}
this.debug = "INFO";
}
+
public String getDebugLevel() {
validate();
return debug;
}
private void validate() {
- switch(redirectSound) {
+ switch (redirectSound) {
case 0:
case 1:
case 2:
break;
}
- switch(security) {
+ switch (security) {
case 0:
case 1:
case 2: