aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/enumerations
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2012-05-01 08:15:49 +0200
committerBananeweizen <bananeweizen@gmx.de>2012-05-01 08:15:49 +0200
commite3f07c229b048d39bcb61db16545648aa697e0d6 (patch)
treee33f3d7b7adb9b453964f7024b450899a424e2ce /main/src/cgeo/geocaching/enumerations
parent5709b30c25a2dbc79454c8f5150f676de0e49a75 (diff)
downloadcgeo-e3f07c229b048d39bcb61db16545648aa697e0d6.zip
cgeo-e3f07c229b048d39bcb61db16545648aa697e0d6.tar.gz
cgeo-e3f07c229b048d39bcb61db16545648aa697e0d6.tar.bz2
refactoring: rename log typ enums for easier code completion and
reading
Diffstat (limited to 'main/src/cgeo/geocaching/enumerations')
-rw-r--r--main/src/cgeo/geocaching/enumerations/LogType.java54
1 files changed, 27 insertions, 27 deletions
diff --git a/main/src/cgeo/geocaching/enumerations/LogType.java b/main/src/cgeo/geocaching/enumerations/LogType.java
index e4add78..e5c9d40 100644
--- a/main/src/cgeo/geocaching/enumerations/LogType.java
+++ b/main/src/cgeo/geocaching/enumerations/LogType.java
@@ -16,30 +16,30 @@ import java.util.Map;
*/
public enum LogType {
- LOG_FOUND_IT(2,"icon_smile","found it",R.string.log_found),
- LOG_DIDNT_FIND_IT(3, "icon_sad", "didn't find it", R.string.log_dnf),
- LOG_NOTE(4,"icon_note","write note",R.string.log_note),
- LOG_PUBLISH_LISTING(1003, "icon_greenlight", "publish listing", R.string.log_published),
- LOG_ENABLE_LISTING(23,"icon_enabled","enable listing",R.string.log_enabled),
- LOG_ARCHIVE(5,"traffic_cone","archive",R.string.log_archived),
- LOG_TEMP_DISABLE_LISTING(22,"icon_disabled","temporarily disable listing",R.string.log_disabled),
- LOG_NEEDS_ARCHIVE(7,"icon_remove","needs archived",R.string.log_needs_archived),
- LOG_WILL_ATTEND(9,"icon_rsvp","will attend",R.string.log_attend),
- LOG_ATTENDED(10,"icon_attended","attended",R.string.log_attended),
- LOG_RETRIEVED_IT(13,"picked_up","retrieved it",R.string.log_retrieved),
- LOG_PLACED_IT(14,"dropped_off","placed it",R.string.log_placed),
- LOG_GRABBED_IT(19,"transfer","grabbed it",R.string.log_grabbed),
- LOG_NEEDS_MAINTENANCE(45,"icon_needsmaint","needs maintenance",R.string.log_maintenance_needed),
- LOG_OWNER_MAINTENANCE(46,"icon_maint","owner maintenance",R.string.log_maintained),
- LOG_UPDATE_COORDINATES(47,"coord_update","update coordinates",R.string.log_update),
- LOG_DISCOVERED_IT(48,"icon_discovered","discovered it",R.string.log_discovered),
- LOG_POST_REVIEWER_NOTE(18,"big_smile","post reviewer note",R.string.log_reviewed),
- LOG_VISIT(1001, "icon_visited", "visit", R.string.log_tb_visit),
- LOG_WEBCAM_PHOTO_TAKEN(11, "icon_camera", "webcam photo taken", R.string.log_webcam),
- LOG_ANNOUNCEMENT(74, "icon_announcement", "announcement", R.string.log_announcement),
- LOG_MOVE_COLLECTION(69, "conflict_collection_icon_note", "unused_collection", R.string.log_movecollection),
- LOG_MOVE_INVENTORY(70, "conflict_inventory_icon_note", "unused_inventory", R.string.log_moveinventory),
- LOG_UNKNOWN(0, "unknown", "", R.string.err_unknown); // LogType not init. yet
+ FOUND_IT(2,"icon_smile","found it",R.string.log_found),
+ DIDNT_FIND_IT(3, "icon_sad", "didn't find it", R.string.log_dnf),
+ NOTE(4,"icon_note","write note",R.string.log_note),
+ PUBLISH_LISTING(1003, "icon_greenlight", "publish listing", R.string.log_published),
+ ENABLE_LISTING(23,"icon_enabled","enable listing",R.string.log_enabled),
+ ARCHIVE(5,"traffic_cone","archive",R.string.log_archived),
+ TEMP_DISABLE_LISTING(22,"icon_disabled","temporarily disable listing",R.string.log_disabled),
+ NEEDS_ARCHIVE(7,"icon_remove","needs archived",R.string.log_needs_archived),
+ WILL_ATTEND(9,"icon_rsvp","will attend",R.string.log_attend),
+ ATTENDED(10,"icon_attended","attended",R.string.log_attended),
+ RETRIEVED_IT(13,"picked_up","retrieved it",R.string.log_retrieved),
+ PLACED_IT(14,"dropped_off","placed it",R.string.log_placed),
+ GRABBED_IT(19,"transfer","grabbed it",R.string.log_grabbed),
+ NEEDS_MAINTENANCE(45,"icon_needsmaint","needs maintenance",R.string.log_maintenance_needed),
+ OWNER_MAINTENANCE(46,"icon_maint","owner maintenance",R.string.log_maintained),
+ UPDATE_COORDINATES(47,"coord_update","update coordinates",R.string.log_update),
+ DISCOVERED_IT(48,"icon_discovered","discovered it",R.string.log_discovered),
+ POST_REVIEWER_NOTE(18,"big_smile","post reviewer note",R.string.log_reviewed),
+ VISIT(1001, "icon_visited", "visit", R.string.log_tb_visit),
+ WEBCAM_PHOTO_TAKEN(11, "icon_camera", "webcam photo taken", R.string.log_webcam),
+ ANNOUNCEMENT(74, "icon_announcement", "announcement", R.string.log_announcement),
+ MOVE_COLLECTION(69, "conflict_collection_icon_note", "unused_collection", R.string.log_movecollection),
+ MOVE_INVENTORY(70, "conflict_inventory_icon_note", "unused_inventory", R.string.log_moveinventory),
+ UNKNOWN(0, "unknown", "", R.string.err_unknown); // LogType not init. yet
public final int id;
public final String iconName;
@@ -72,13 +72,13 @@ public enum LogType {
return logType;
}
}
- return LOG_UNKNOWN;
+ return UNKNOWN;
}
public static LogType getByIconName(final String imageType) {
final LogType result = imageType != null ? LogType.FIND_BY_ICONNAME.get(imageType.toLowerCase().trim()) : null;
if (result == null) {
- return LOG_UNKNOWN;
+ return UNKNOWN;
}
return result;
}
@@ -86,7 +86,7 @@ public enum LogType {
public static LogType getByType(final String type) {
final LogType result = type != null ? LogType.FIND_BY_TYPE.get(type.toLowerCase().trim()) : null;
if (result == null) {
- return LOG_UNKNOWN;
+ return UNKNOWN;
}
return result;
}