Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

switch to const char * for the str member of infomap to save the pred…

…efined length biting later
  • Loading branch information...
commit 6274487b312ce92aadbf486d6584448f6f4db3c0 1 parent d2b4c30
Jonathan Marshall authored
Showing with 359 additions and 359 deletions.
  1. +359 −359 xbmc/GUIInfoManager.cpp
View
718 xbmc/GUIInfoManager.cpp
@@ -139,368 +139,368 @@ int CGUIInfoManager::TranslateString(const CStdString &condition)
typedef struct
{
- char str[21];
+ const char *str;
int val;
} infomap;
-infomap player_labels[] = {{ "hasmedia", PLAYER_HAS_MEDIA }, // bools from here
- { "hasaudio", PLAYER_HAS_AUDIO },
- { "hasvideo", PLAYER_HAS_VIDEO },
- { "playing", PLAYER_PLAYING },
- { "paused", PLAYER_PAUSED },
- { "rewinding", PLAYER_REWINDING },
- { "forwarding", PLAYER_FORWARDING },
- { "rewinding2x", PLAYER_REWINDING_2x },
- { "rewinding4x", PLAYER_REWINDING_4x },
- { "rewinding8x", PLAYER_REWINDING_8x },
- { "rewinding16x", PLAYER_REWINDING_16x },
- { "rewinding32x", PLAYER_REWINDING_32x },
- { "forwarding2x", PLAYER_FORWARDING_2x },
- { "forwarding4x", PLAYER_FORWARDING_4x },
- { "forwarding8x", PLAYER_FORWARDING_8x },
- { "forwarding16x", PLAYER_FORWARDING_16x },
- { "forwarding32x", PLAYER_FORWARDING_32x },
- { "canrecord", PLAYER_CAN_RECORD },
- { "recording", PLAYER_RECORDING },
- { "displayafterseek", PLAYER_DISPLAY_AFTER_SEEK },
- { "caching", PLAYER_CACHING },
- { "seekbar", PLAYER_SEEKBAR },
- { "seeking", PLAYER_SEEKING },
- { "showtime", PLAYER_SHOWTIME },
- { "showcodec", PLAYER_SHOWCODEC },
- { "showinfo", PLAYER_SHOWINFO },
- { "muted", PLAYER_MUTED },
- { "hasduration", PLAYER_HASDURATION },
- { "passthrough", PLAYER_PASSTHROUGH },
- { "cachelevel", PLAYER_CACHELEVEL }, // labels from here
- { "seekbar", PLAYER_SEEKBAR },
- { "progress", PLAYER_PROGRESS },
- { "progresscache", PLAYER_PROGRESS_CACHE },
- { "volume", PLAYER_VOLUME },
- { "subtitledelay", PLAYER_SUBTITLE_DELAY },
- { "audiodelay", PLAYER_AUDIO_DELAY },
- { "chapter", PLAYER_CHAPTER },
- { "chaptercount", PLAYER_CHAPTERCOUNT },
- { "chaptername", PLAYER_CHAPTERNAME },
- { "starrating", PLAYER_STAR_RATING },
- { "folderpath", PLAYER_PATH },
- { "filenameandpath", PLAYER_FILEPATH }};
-
-infomap player_times[] = {{ "seektime", PLAYER_SEEKTIME },
- { "seekoffset", PLAYER_SEEKOFFSET },
- { "timeremaining", PLAYER_TIME_REMAINING },
- { "timespeed", PLAYER_TIME_SPEED },
- { "time", PLAYER_TIME },
- { "duration", PLAYER_DURATION },
- { "finishtime", PLAYER_FINISH_TIME }};
-
-infomap weather[] = {{ "isfetched", WEATHER_IS_FETCHED },
- { "conditions", WEATHER_CONDITIONS }, // labels from here
- { "temperature", WEATHER_TEMPERATURE },
- { "location", WEATHER_LOCATION },
- { "fanartcode", WEATHER_FANART_CODE },
- { "plugin", WEATHER_PLUGIN }};
-
-infomap system_labels[] = {{ "hasnetwork", SYSTEM_ETHERNET_LINK_ACTIVE },
- { "hasmediadvd", SYSTEM_MEDIA_DVD },
- { "dvdready", SYSTEM_DVDREADY },
- { "trayopen", SYSTEM_TRAYOPEN },
- { "haslocks", SYSTEM_HASLOCKS },
- { "hasloginscreen", SYSTEM_HAS_LOGINSCREEN },
- { "ismaster", SYSTEM_ISMASTER },
- { "loggedon", SYSTEM_LOGGEDON },
- { "showexitbutton", SYSTEM_SHOW_EXIT_BUTTON },
- { "hasdrivef", SYSTEM_HAS_DRIVE_F },
- { "hasdriveg", SYSTEM_HAS_DRIVE_G },
- { "canpowerdown", SYSTEM_CAN_POWERDOWN },
- { "cansuspend", SYSTEM_CAN_SUSPEND },
- { "canhibernate", SYSTEM_CAN_HIBERNATE },
- { "canreboot", SYSTEM_CAN_REBOOT },
- { "cputemperature", SYSTEM_CPU_TEMPERATURE }, // labels from here
- { "cpuusage", SYSTEM_CPU_USAGE },
- { "gputemperature", SYSTEM_GPU_TEMPERATURE },
- { "fanspeed", SYSTEM_FAN_SPEED },
- { "freespace", SYSTEM_FREE_SPACE },
- { "usedspace", SYSTEM_USED_SPACE },
- { "totalspace", SYSTEM_TOTAL_SPACE },
- { "usedspacepercent", SYSTEM_USED_SPACE_PERCENT },
- { "freespacepercent", SYSTEM_FREE_SPACE_PERCENT },
- { "buildversion", SYSTEM_BUILD_VERSION },
- { "builddate", SYSTEM_BUILD_DATE },
- { "fps", SYSTEM_FPS },
- { "dvdtraystate", SYSTEM_DVD_TRAY_STATE },
- { "freememory", SYSTEM_FREE_MEMORY },
- { "language", SYSTEM_LANGUAGE },
- { "temperatureunits", SYSTEM_TEMPERATURE_UNITS },
- { "screenmode", SYSTEM_SCREEN_MODE },
- { "screenwidth", SYSTEM_SCREEN_WIDTH },
- { "screenheight", SYSTEM_SCREEN_HEIGHT },
- { "currentwindow", SYSTEM_CURRENT_WINDOW },
- { "currentcontrol", SYSTEM_CURRENT_CONTROL },
- { "dvdlabel", SYSTEM_DVD_LABEL },
- { "internetstate", SYSTEM_INTERNET_STATE },
- { "kernelversion", SYSTEM_KERNEL_VERSION },
- { "uptime", SYSTEM_UPTIME },
- { "totaluptime", SYSTEM_TOTALUPTIME },
- { "cpufrequency", SYSTEM_CPUFREQUENCY },
- { "screenresolution", SYSTEM_SCREEN_RESOLUTION },
- { "videoencoderinfo", SYSTEM_VIDEO_ENCODER_INFO },
- { "profilename", SYSTEM_PROFILENAME },
- { "profilethumb", SYSTEM_PROFILETHUMB },
- { "profilecount", SYSTEM_PROFILECOUNT },
- { "progressbar", SYSTEM_PROGRESS_BAR },
- { "batterylevel", SYSTEM_BATTERY_LEVEL },
- { "alarmpos", SYSTEM_ALARM_POS }};
-
-infomap system_param[] = {{ "hasalarm", SYSTEM_HAS_ALARM },
- { "getbool", SYSTEM_GET_BOOL },
- { "hascoreid", SYSTEM_HAS_CORE_ID },
- { "setting", SYSTEM_SETTING },
- { "hasaddon", SYSTEM_HAS_ADDON },
- { "coreusage", SYSTEM_GET_CORE_USAGE }};
-
-infomap lcd_labels[] = {{ "playicon", LCD_PLAY_ICON },
- { "progressbar", LCD_PROGRESS_BAR },
- { "cputemperature", LCD_CPU_TEMPERATURE },
- { "gputemperature", LCD_GPU_TEMPERATURE },
- { "hddtemperature", LCD_HDD_TEMPERATURE },
- { "fanspeed", LCD_FAN_SPEED },
- { "date", LCD_DATE },
- { "time21", LCD_TIME_21 },
- { "time22", LCD_TIME_22 },
- { "timewide21", LCD_TIME_W21 },
- { "timewide22", LCD_TIME_W22 },
- { "time41", LCD_TIME_41 },
- { "time42", LCD_TIME_42 },
- { "time43", LCD_TIME_43 },
- { "time44", LCD_TIME_44 }};
-
-infomap network_labels[] = {{ "isdhcp", NETWORK_IS_DHCP },
- { "ipaddress", NETWORK_IP_ADDRESS }, //labels from here
- { "linkstate", NETWORK_LINK_STATE },
- { "macaddress", NETWORK_MAC_ADDRESS },
- { "subnetaddress", NETWORK_SUBNET_ADDRESS },
- { "gatewayaddress", NETWORK_GATEWAY_ADDRESS },
- { "dns1address", NETWORK_DNS1_ADDRESS },
- { "dns2address", NETWORK_DNS2_ADDRESS },
- { "dhcpaddress", NETWORK_DHCP_ADDRESS }};
-
-infomap musicpartymode[] = {{ "enabled", MUSICPM_ENABLED },
- { "songsplayed", MUSICPM_SONGSPLAYED },
- { "matchingsongs", MUSICPM_MATCHINGSONGS },
- { "matchingsongspicked", MUSICPM_MATCHINGSONGSPICKED },
- { "matchingsongsleft", MUSICPM_MATCHINGSONGSLEFT },
- { "relaxedsongspicked",MUSICPM_RELAXEDSONGSPICKED },
- { "randomsongspicked", MUSICPM_RANDOMSONGSPICKED }};
-
-infomap audioscrobbler[] = {{ "enabled", AUDIOSCROBBLER_ENABLED },
- { "connectstate", AUDIOSCROBBLER_CONN_STATE }, //labels from here
- { "submitinterval", AUDIOSCROBBLER_SUBMIT_INT },
- { "filescached", AUDIOSCROBBLER_FILES_CACHED },
- { "submitstate", AUDIOSCROBBLER_SUBMIT_STATE }};
-
-infomap lastfm[] = {{ "radioplaying", LASTFM_RADIOPLAYING },
- { "canlove", LASTFM_CANLOVE},
- { "canban", LASTFM_CANBAN}};
-
-infomap musicplayer[] = {{ "title", MUSICPLAYER_TITLE },
- { "album", MUSICPLAYER_ALBUM },
- { "artist", MUSICPLAYER_ARTIST },
- { "albumartist", MUSICPLAYER_ALBUM_ARTIST },
- { "year", MUSICPLAYER_YEAR },
- { "genre", MUSICPLAYER_GENRE },
- { "duration", MUSICPLAYER_DURATION },
- { "tracknumber", MUSICPLAYER_TRACK_NUMBER },
- { "cover", MUSICPLAYER_COVER },
- { "bitrate", MUSICPLAYER_BITRATE },
- { "playlistlength", MUSICPLAYER_PLAYLISTLEN },
- { "playlistposition", MUSICPLAYER_PLAYLISTPOS },
- { "channels", MUSICPLAYER_CHANNELS },
- { "bitspersample", MUSICPLAYER_BITSPERSAMPLE },
- { "samplerate", MUSICPLAYER_SAMPLERATE },
- { "codec", MUSICPLAYER_CODEC },
- { "discnumber", MUSICPLAYER_DISC_NUMBER },
- { "rating", MUSICPLAYER_RATING },
- { "comment", MUSICPLAYER_COMMENT },
- { "lyrics", MUSICPLAYER_LYRICS },
- { "playlistplaying", MUSICPLAYER_PLAYLISTPLAYING },
- { "exists", MUSICPLAYER_EXISTS },
- { "hasprevious", MUSICPLAYER_HASPREVIOUS },
- { "hasnext", MUSICPLAYER_HASNEXT },
- { "playcount", MUSICPLAYER_PLAYCOUNT },
- { "lastplayed", MUSICPLAYER_LASTPLAYED }};
-
-infomap videoplayer[] = {{ "title", VIDEOPLAYER_TITLE },
- { "genre", VIDEOPLAYER_GENRE },
- { "country", VIDEOPLAYER_COUNTRY },
- { "originaltitle", VIDEOPLAYER_ORIGINALTITLE },
- { "director", VIDEOPLAYER_DIRECTOR },
- { "year", VIDEOPLAYER_YEAR },
- { "cover", VIDEOPLAYER_COVER },
- { "usingoverlays", VIDEOPLAYER_USING_OVERLAYS },
- { "isfullscreen", VIDEOPLAYER_ISFULLSCREEN },
- { "hasmenu", VIDEOPLAYER_HASMENU },
- { "playlistlength", VIDEOPLAYER_PLAYLISTLEN },
- { "playlistposition", VIDEOPLAYER_PLAYLISTPOS },
- { "plot", VIDEOPLAYER_PLOT },
- { "plotoutline", VIDEOPLAYER_PLOT_OUTLINE },
- { "episode", VIDEOPLAYER_EPISODE },
- { "season", VIDEOPLAYER_SEASON },
- { "rating", VIDEOPLAYER_RATING },
- { "ratingandvotes", VIDEOPLAYER_RATING_AND_VOTES },
- { "tvshowtitle", VIDEOPLAYER_TVSHOW },
- { "premiered", VIDEOPLAYER_PREMIERED },
- { "studio", VIDEOPLAYER_STUDIO },
- { "mpaa", VIDEOPLAYER_MPAA },
- { "top250", VIDEOPLAYER_TOP250 },
- { "cast", VIDEOPLAYER_CAST },
- { "castandrole", VIDEOPLAYER_CAST_AND_ROLE },
- { "artist", VIDEOPLAYER_ARTIST },
- { "album", VIDEOPLAYER_ALBUM },
- { "writer", VIDEOPLAYER_WRITER },
- { "tagline", VIDEOPLAYER_TAGLINE },
- { "hasinfo", VIDEOPLAYER_HAS_INFO },
- { "trailer", VIDEOPLAYER_TRAILER },
- { "videocodec", VIDEOPLAYER_VIDEO_CODEC },
- { "videoresolution", VIDEOPLAYER_VIDEO_RESOLUTION },
- { "videoaspect", VIDEOPLAYER_VIDEO_ASPECT },
- { "audiocodec", VIDEOPLAYER_AUDIO_CODEC },
- { "audiochannels", VIDEOPLAYER_AUDIO_CHANNELS },
- { "hasteletext", VIDEOPLAYER_HASTELETEXT },
- { "lastplayed", VIDEOPLAYER_LASTPLAYED },
- { "playcount", VIDEOPLAYER_PLAYCOUNT },
- { "hassubtitles", VIDEOPLAYER_HASSUBTITLES },
- { "subtitlesenabled", VIDEOPLAYER_SUBTITLESENABLED }};
-
-infomap mediacontainer[] = {{ "hasfiles", CONTAINER_HASFILES },
- { "hasfolders", CONTAINER_HASFOLDERS },
- { "isstacked", CONTAINER_STACKED },
- { "folderthumb", CONTAINER_FOLDERTHUMB },
- { "tvshowthumb", CONTAINER_TVSHOWTHUMB },
- { "seasonthumb", CONTAINER_SEASONTHUMB },
- { "folderpath", CONTAINER_FOLDERPATH },
- { "foldername", CONTAINER_FOLDERNAME },
- { "pluginname", CONTAINER_PLUGINNAME },
- { "viewmode", CONTAINER_VIEWMODE },
- { "totaltime", CONTAINER_TOTALTIME },
- { "hasthumb", CONTAINER_HAS_THUMB },
- { "sortmethod", CONTAINER_SORT_METHOD },
- { "showplot", CONTAINER_SHOWPLOT }};
-
-infomap container_bools[] ={{ "onnext", CONTAINER_MOVE_NEXT },
- { "onprevious", CONTAINER_MOVE_PREVIOUS },
- { "onscrollnext", CONTAINER_SCROLL_NEXT },
- { "onscrollprevious", CONTAINER_SCROLL_PREVIOUS },
- { "numpages", CONTAINER_NUM_PAGES },
- { "numitems", CONTAINER_NUM_ITEMS },
- { "currentpage", CONTAINER_CURRENT_PAGE },
- { "scrolling", CONTAINER_SCROLLING },
- { "hasnext", CONTAINER_HAS_NEXT },
- { "hasprevious", CONTAINER_HAS_PREVIOUS }};
-
-infomap container_ints[] = {{ "row", CONTAINER_ROW },
- { "column", CONTAINER_COLUMN },
- { "position", CONTAINER_POSITION },
- { "subitem", CONTAINER_SUBITEM },
- { "hasfocus", CONTAINER_HAS_FOCUS }};
-
-infomap container_str[] = {{ "property", CONTAINER_PROPERTY },
- { "content", CONTAINER_CONTENT }};
-
-infomap listitem_labels[]= {{ "thumb", LISTITEM_THUMB },
- { "icon", LISTITEM_ICON },
- { "actualicon", LISTITEM_ACTUAL_ICON },
- { "overlay", LISTITEM_OVERLAY },
- { "label", LISTITEM_LABEL },
- { "label2", LISTITEM_LABEL2 },
- { "title", LISTITEM_TITLE },
- { "tracknumber", LISTITEM_TRACKNUMBER },
- { "artist", LISTITEM_ARTIST },
- { "album", LISTITEM_ALBUM },
- { "albumartist", LISTITEM_ALBUM_ARTIST },
- { "year", LISTITEM_YEAR },
- { "genre", LISTITEM_GENRE },
- { "director", LISTITEM_DIRECTOR },
- { "filename", LISTITEM_FILENAME },
- { "filenameandpath", LISTITEM_FILENAME_AND_PATH },
- { "fileextension", LISTITEM_FILE_EXTENSION },
- { "date", LISTITEM_DATE },
- { "size", LISTITEM_SIZE },
- { "rating", LISTITEM_RATING },
- { "ratingandvotes", LISTITEM_RATING_AND_VOTES },
- { "programcount", LISTITEM_PROGRAM_COUNT },
- { "duration", LISTITEM_DURATION },
- { "isselected", LISTITEM_ISSELECTED },
- { "isplaying", LISTITEM_ISPLAYING },
- { "plot", LISTITEM_PLOT },
- { "plotoutline", LISTITEM_PLOT_OUTLINE },
- { "episode", LISTITEM_EPISODE },
- { "season", LISTITEM_SEASON },
- { "tvshowtitle", LISTITEM_TVSHOW },
- { "premiered", LISTITEM_PREMIERED },
- { "comment", LISTITEM_COMMENT },
- { "path", LISTITEM_PATH },
- { "foldername", LISTITEM_FOLDERNAME },
- { "folderpath", LISTITEM_FOLDERPATH },
- { "picturepath", LISTITEM_PICTURE_PATH },
- { "pictureresolution",LISTITEM_PICTURE_RESOLUTION },
- { "picturedatetime", LISTITEM_PICTURE_DATETIME },
- { "studio", LISTITEM_STUDIO },
- { "country", LISTITEM_COUNTRY },
- { "mpaa", LISTITEM_MPAA },
- { "cast", LISTITEM_CAST },
- { "castandrole", LISTITEM_CAST_AND_ROLE },
- { "writer", LISTITEM_WRITER },
- { "tagline", LISTITEM_TAGLINE },
- { "top250", LISTITEM_TOP250 },
- { "trailer", LISTITEM_TRAILER },
- { "starrating", LISTITEM_STAR_RATING },
- { "sortletter", LISTITEM_SORT_LETTER },
- { "videocodec", LISTITEM_VIDEO_CODEC },
- { "videoresolution", LISTITEM_VIDEO_RESOLUTION },
- { "videoaspect", LISTITEM_VIDEO_ASPECT },
- { "audiocodec", LISTITEM_AUDIO_CODEC },
- { "audiochannels", LISTITEM_AUDIO_CHANNELS },
- { "audiolanguage", LISTITEM_AUDIO_LANGUAGE },
- { "subtitlelanguage", LISTITEM_SUBTITLE_LANGUAGE },
- { "isfolder", LISTITEM_IS_FOLDER },
- { "originaltitle", LISTITEM_ORIGINALTITLE },
- { "lastplayed", LISTITEM_LASTPLAYED },
- { "playcount", LISTITEM_PLAYCOUNT },
- { "discnumber", LISTITEM_DISC_NUMBER }};
-
-infomap visualisation[] = {{ "locked", VISUALISATION_LOCKED },
- { "preset", VISUALISATION_PRESET },
- { "name", VISUALISATION_NAME },
- { "enabled", VISUALISATION_ENABLED }};
-
-infomap fanart_labels[] = {{ "color1", FANART_COLOR1 },
- { "color2", FANART_COLOR2 },
- { "color3", FANART_COLOR3 },
- { "image", FANART_IMAGE }};
-
-infomap skin_labels[] = {{ "currenttheme", SKIN_THEME },
- { "currentcolourtheme",SKIN_COLOUR_THEME }};
-
-infomap window_bools[] = {{ "ismedia", WINDOW_IS_MEDIA },
- { "isactive", WINDOW_IS_ACTIVE },
- { "istopmost", WINDOW_IS_TOPMOST },
- { "isvisible", WINDOW_IS_VISIBLE },
- { "previous", WINDOW_PREVIOUS },
- { "next", WINDOW_NEXT }};
-
-infomap control_labels[] = {{ "hasfocus", CONTROL_HAS_FOCUS },
- { "isvisible", CONTROL_IS_VISIBLE },
- { "isenabled", CONTROL_IS_ENABLED },
- { "getlabel", CONTROL_GET_LABEL }};
-
-infomap playlist[] = {{ "length", PLAYLIST_LENGTH },
- { "position", PLAYLIST_POSITION },
- { "random", PLAYLIST_RANDOM },
- { "repeat", PLAYLIST_REPEAT },
- { "israndom", PLAYLIST_ISRANDOM },
- { "isrepeat", PLAYLIST_ISREPEAT },
- { "isrepeatone", PLAYLIST_ISREPEATONE }};
+const infomap player_labels[] = {{ "hasmedia", PLAYER_HAS_MEDIA }, // bools from here
+ { "hasaudio", PLAYER_HAS_AUDIO },
+ { "hasvideo", PLAYER_HAS_VIDEO },
+ { "playing", PLAYER_PLAYING },
+ { "paused", PLAYER_PAUSED },
+ { "rewinding", PLAYER_REWINDING },
+ { "forwarding", PLAYER_FORWARDING },
+ { "rewinding2x", PLAYER_REWINDING_2x },
+ { "rewinding4x", PLAYER_REWINDING_4x },
+ { "rewinding8x", PLAYER_REWINDING_8x },
+ { "rewinding16x", PLAYER_REWINDING_16x },
+ { "rewinding32x", PLAYER_REWINDING_32x },
+ { "forwarding2x", PLAYER_FORWARDING_2x },
+ { "forwarding4x", PLAYER_FORWARDING_4x },
+ { "forwarding8x", PLAYER_FORWARDING_8x },
+ { "forwarding16x", PLAYER_FORWARDING_16x },
+ { "forwarding32x", PLAYER_FORWARDING_32x },
+ { "canrecord", PLAYER_CAN_RECORD },
+ { "recording", PLAYER_RECORDING },
+ { "displayafterseek", PLAYER_DISPLAY_AFTER_SEEK },
+ { "caching", PLAYER_CACHING },
+ { "seekbar", PLAYER_SEEKBAR },
+ { "seeking", PLAYER_SEEKING },
+ { "showtime", PLAYER_SHOWTIME },
+ { "showcodec", PLAYER_SHOWCODEC },
+ { "showinfo", PLAYER_SHOWINFO },
+ { "muted", PLAYER_MUTED },
+ { "hasduration", PLAYER_HASDURATION },
+ { "passthrough", PLAYER_PASSTHROUGH },
+ { "cachelevel", PLAYER_CACHELEVEL }, // labels from here
+ { "seekbar", PLAYER_SEEKBAR },
+ { "progress", PLAYER_PROGRESS },
+ { "progresscache", PLAYER_PROGRESS_CACHE },
+ { "volume", PLAYER_VOLUME },
+ { "subtitledelay", PLAYER_SUBTITLE_DELAY },
+ { "audiodelay", PLAYER_AUDIO_DELAY },
+ { "chapter", PLAYER_CHAPTER },
+ { "chaptercount", PLAYER_CHAPTERCOUNT },
+ { "chaptername", PLAYER_CHAPTERNAME },
+ { "starrating", PLAYER_STAR_RATING },
+ { "folderpath", PLAYER_PATH },
+ { "filenameandpath", PLAYER_FILEPATH }};
+
+const infomap player_times[] = {{ "seektime", PLAYER_SEEKTIME },
+ { "seekoffset", PLAYER_SEEKOFFSET },
+ { "timeremaining", PLAYER_TIME_REMAINING },
+ { "timespeed", PLAYER_TIME_SPEED },
+ { "time", PLAYER_TIME },
+ { "duration", PLAYER_DURATION },
+ { "finishtime", PLAYER_FINISH_TIME }};
+
+const infomap weather[] = {{ "isfetched", WEATHER_IS_FETCHED },
+ { "conditions", WEATHER_CONDITIONS }, // labels from here
+ { "temperature", WEATHER_TEMPERATURE },
+ { "location", WEATHER_LOCATION },
+ { "fanartcode", WEATHER_FANART_CODE },
+ { "plugin", WEATHER_PLUGIN }};
+
+const infomap system_labels[] = {{ "hasnetwork", SYSTEM_ETHERNET_LINK_ACTIVE },
+ { "hasmediadvd", SYSTEM_MEDIA_DVD },
+ { "dvdready", SYSTEM_DVDREADY },
+ { "trayopen", SYSTEM_TRAYOPEN },
+ { "haslocks", SYSTEM_HASLOCKS },
+ { "hasloginscreen", SYSTEM_HAS_LOGINSCREEN },
+ { "ismaster", SYSTEM_ISMASTER },
+ { "loggedon", SYSTEM_LOGGEDON },
+ { "showexitbutton", SYSTEM_SHOW_EXIT_BUTTON },
+ { "hasdrivef", SYSTEM_HAS_DRIVE_F },
+ { "hasdriveg", SYSTEM_HAS_DRIVE_G },
+ { "canpowerdown", SYSTEM_CAN_POWERDOWN },
+ { "cansuspend", SYSTEM_CAN_SUSPEND },
+ { "canhibernate", SYSTEM_CAN_HIBERNATE },
+ { "canreboot", SYSTEM_CAN_REBOOT },
+ { "cputemperature", SYSTEM_CPU_TEMPERATURE }, // labels from here
+ { "cpuusage", SYSTEM_CPU_USAGE },
+ { "gputemperature", SYSTEM_GPU_TEMPERATURE },
+ { "fanspeed", SYSTEM_FAN_SPEED },
+ { "freespace", SYSTEM_FREE_SPACE },
+ { "usedspace", SYSTEM_USED_SPACE },
+ { "totalspace", SYSTEM_TOTAL_SPACE },
+ { "usedspacepercent", SYSTEM_USED_SPACE_PERCENT },
+ { "freespacepercent", SYSTEM_FREE_SPACE_PERCENT },
+ { "buildversion", SYSTEM_BUILD_VERSION },
+ { "builddate", SYSTEM_BUILD_DATE },
+ { "fps", SYSTEM_FPS },
+ { "dvdtraystate", SYSTEM_DVD_TRAY_STATE },
+ { "freememory", SYSTEM_FREE_MEMORY },
+ { "language", SYSTEM_LANGUAGE },
+ { "temperatureunits", SYSTEM_TEMPERATURE_UNITS },
+ { "screenmode", SYSTEM_SCREEN_MODE },
+ { "screenwidth", SYSTEM_SCREEN_WIDTH },
+ { "screenheight", SYSTEM_SCREEN_HEIGHT },
+ { "currentwindow", SYSTEM_CURRENT_WINDOW },
+ { "currentcontrol", SYSTEM_CURRENT_CONTROL },
+ { "dvdlabel", SYSTEM_DVD_LABEL },
+ { "internetstate", SYSTEM_INTERNET_STATE },
+ { "kernelversion", SYSTEM_KERNEL_VERSION },
+ { "uptime", SYSTEM_UPTIME },
+ { "totaluptime", SYSTEM_TOTALUPTIME },
+ { "cpufrequency", SYSTEM_CPUFREQUENCY },
+ { "screenresolution", SYSTEM_SCREEN_RESOLUTION },
+ { "videoencoderinfo", SYSTEM_VIDEO_ENCODER_INFO },
+ { "profilename", SYSTEM_PROFILENAME },
+ { "profilethumb", SYSTEM_PROFILETHUMB },
+ { "profilecount", SYSTEM_PROFILECOUNT },
+ { "progressbar", SYSTEM_PROGRESS_BAR },
+ { "batterylevel", SYSTEM_BATTERY_LEVEL },
+ { "alarmpos", SYSTEM_ALARM_POS }};
+
+const infomap system_param[] = {{ "hasalarm", SYSTEM_HAS_ALARM },
+ { "getbool", SYSTEM_GET_BOOL },
+ { "hascoreid", SYSTEM_HAS_CORE_ID },
+ { "setting", SYSTEM_SETTING },
+ { "hasaddon", SYSTEM_HAS_ADDON },
+ { "coreusage", SYSTEM_GET_CORE_USAGE }};
+
+const infomap lcd_labels[] = {{ "playicon", LCD_PLAY_ICON },
+ { "progressbar", LCD_PROGRESS_BAR },
+ { "cputemperature", LCD_CPU_TEMPERATURE },
+ { "gputemperature", LCD_GPU_TEMPERATURE },
+ { "hddtemperature", LCD_HDD_TEMPERATURE },
+ { "fanspeed", LCD_FAN_SPEED },
+ { "date", LCD_DATE },
+ { "time21", LCD_TIME_21 },
+ { "time22", LCD_TIME_22 },
+ { "timewide21", LCD_TIME_W21 },
+ { "timewide22", LCD_TIME_W22 },
+ { "time41", LCD_TIME_41 },
+ { "time42", LCD_TIME_42 },
+ { "time43", LCD_TIME_43 },
+ { "time44", LCD_TIME_44 }};
+
+const infomap network_labels[] = {{ "isdhcp", NETWORK_IS_DHCP },
+ { "ipaddress", NETWORK_IP_ADDRESS }, //labels from here
+ { "linkstate", NETWORK_LINK_STATE },
+ { "macaddress", NETWORK_MAC_ADDRESS },
+ { "subnetaddress", NETWORK_SUBNET_ADDRESS },
+ { "gatewayaddress", NETWORK_GATEWAY_ADDRESS },
+ { "dns1address", NETWORK_DNS1_ADDRESS },
+ { "dns2address", NETWORK_DNS2_ADDRESS },
+ { "dhcpaddress", NETWORK_DHCP_ADDRESS }};
+
+const infomap musicpartymode[] = {{ "enabled", MUSICPM_ENABLED },
+ { "songsplayed", MUSICPM_SONGSPLAYED },
+ { "matchingsongs", MUSICPM_MATCHINGSONGS },
+ { "matchingsongspicked", MUSICPM_MATCHINGSONGSPICKED },
+ { "matchingsongsleft", MUSICPM_MATCHINGSONGSLEFT },
+ { "relaxedsongspicked",MUSICPM_RELAXEDSONGSPICKED },
+ { "randomsongspicked", MUSICPM_RANDOMSONGSPICKED }};
+
+const infomap audioscrobbler[] = {{ "enabled", AUDIOSCROBBLER_ENABLED },
+ { "connectstate", AUDIOSCROBBLER_CONN_STATE }, //labels from here
+ { "submitinterval", AUDIOSCROBBLER_SUBMIT_INT },
+ { "filescached", AUDIOSCROBBLER_FILES_CACHED },
+ { "submitstate", AUDIOSCROBBLER_SUBMIT_STATE }};
+
+const infomap lastfm[] = {{ "radioplaying", LASTFM_RADIOPLAYING },
+ { "canlove", LASTFM_CANLOVE},
+ { "canban", LASTFM_CANBAN}};
+
+const infomap musicplayer[] = {{ "title", MUSICPLAYER_TITLE },
+ { "album", MUSICPLAYER_ALBUM },
+ { "artist", MUSICPLAYER_ARTIST },
+ { "albumartist", MUSICPLAYER_ALBUM_ARTIST },
+ { "year", MUSICPLAYER_YEAR },
+ { "genre", MUSICPLAYER_GENRE },
+ { "duration", MUSICPLAYER_DURATION },
+ { "tracknumber", MUSICPLAYER_TRACK_NUMBER },
+ { "cover", MUSICPLAYER_COVER },
+ { "bitrate", MUSICPLAYER_BITRATE },
+ { "playlistlength", MUSICPLAYER_PLAYLISTLEN },
+ { "playlistposition", MUSICPLAYER_PLAYLISTPOS },
+ { "channels", MUSICPLAYER_CHANNELS },
+ { "bitspersample", MUSICPLAYER_BITSPERSAMPLE },
+ { "samplerate", MUSICPLAYER_SAMPLERATE },
+ { "codec", MUSICPLAYER_CODEC },
+ { "discnumber", MUSICPLAYER_DISC_NUMBER },
+ { "rating", MUSICPLAYER_RATING },
+ { "comment", MUSICPLAYER_COMMENT },
+ { "lyrics", MUSICPLAYER_LYRICS },
+ { "playlistplaying", MUSICPLAYER_PLAYLISTPLAYING },
+ { "exists", MUSICPLAYER_EXISTS },
+ { "hasprevious", MUSICPLAYER_HASPREVIOUS },
+ { "hasnext", MUSICPLAYER_HASNEXT },
+ { "playcount", MUSICPLAYER_PLAYCOUNT },
+ { "lastplayed", MUSICPLAYER_LASTPLAYED }};
+
+const infomap videoplayer[] = {{ "title", VIDEOPLAYER_TITLE },
+ { "genre", VIDEOPLAYER_GENRE },
+ { "country", VIDEOPLAYER_COUNTRY },
+ { "originaltitle", VIDEOPLAYER_ORIGINALTITLE },
+ { "director", VIDEOPLAYER_DIRECTOR },
+ { "year", VIDEOPLAYER_YEAR },
+ { "cover", VIDEOPLAYER_COVER },
+ { "usingoverlays", VIDEOPLAYER_USING_OVERLAYS },
+ { "isfullscreen", VIDEOPLAYER_ISFULLSCREEN },
+ { "hasmenu", VIDEOPLAYER_HASMENU },
+ { "playlistlength", VIDEOPLAYER_PLAYLISTLEN },
+ { "playlistposition", VIDEOPLAYER_PLAYLISTPOS },
+ { "plot", VIDEOPLAYER_PLOT },
+ { "plotoutline", VIDEOPLAYER_PLOT_OUTLINE },
+ { "episode", VIDEOPLAYER_EPISODE },
+ { "season", VIDEOPLAYER_SEASON },
+ { "rating", VIDEOPLAYER_RATING },
+ { "ratingandvotes", VIDEOPLAYER_RATING_AND_VOTES },
+ { "tvshowtitle", VIDEOPLAYER_TVSHOW },
+ { "premiered", VIDEOPLAYER_PREMIERED },
+ { "studio", VIDEOPLAYER_STUDIO },
+ { "mpaa", VIDEOPLAYER_MPAA },
+ { "top250", VIDEOPLAYER_TOP250 },
+ { "cast", VIDEOPLAYER_CAST },
+ { "castandrole", VIDEOPLAYER_CAST_AND_ROLE },
+ { "artist", VIDEOPLAYER_ARTIST },
+ { "album", VIDEOPLAYER_ALBUM },
+ { "writer", VIDEOPLAYER_WRITER },
+ { "tagline", VIDEOPLAYER_TAGLINE },
+ { "hasinfo", VIDEOPLAYER_HAS_INFO },
+ { "trailer", VIDEOPLAYER_TRAILER },
+ { "videocodec", VIDEOPLAYER_VIDEO_CODEC },
+ { "videoresolution", VIDEOPLAYER_VIDEO_RESOLUTION },
+ { "videoaspect", VIDEOPLAYER_VIDEO_ASPECT },
+ { "audiocodec", VIDEOPLAYER_AUDIO_CODEC },
+ { "audiochannels", VIDEOPLAYER_AUDIO_CHANNELS },
+ { "hasteletext", VIDEOPLAYER_HASTELETEXT },
+ { "lastplayed", VIDEOPLAYER_LASTPLAYED },
+ { "playcount", VIDEOPLAYER_PLAYCOUNT },
+ { "hassubtitles", VIDEOPLAYER_HASSUBTITLES },
+ { "subtitlesenabled", VIDEOPLAYER_SUBTITLESENABLED }};
+
+const infomap mediacontainer[] = {{ "hasfiles", CONTAINER_HASFILES },
+ { "hasfolders", CONTAINER_HASFOLDERS },
+ { "isstacked", CONTAINER_STACKED },
+ { "folderthumb", CONTAINER_FOLDERTHUMB },
+ { "tvshowthumb", CONTAINER_TVSHOWTHUMB },
+ { "seasonthumb", CONTAINER_SEASONTHUMB },
+ { "folderpath", CONTAINER_FOLDERPATH },
+ { "foldername", CONTAINER_FOLDERNAME },
+ { "pluginname", CONTAINER_PLUGINNAME },
+ { "viewmode", CONTAINER_VIEWMODE },
+ { "totaltime", CONTAINER_TOTALTIME },
+ { "hasthumb", CONTAINER_HAS_THUMB },
+ { "sortmethod", CONTAINER_SORT_METHOD },
+ { "showplot", CONTAINER_SHOWPLOT }};
+
+const infomap container_bools[] ={{ "onnext", CONTAINER_MOVE_NEXT },
+ { "onprevious", CONTAINER_MOVE_PREVIOUS },
+ { "onscrollnext", CONTAINER_SCROLL_NEXT },
+ { "onscrollprevious", CONTAINER_SCROLL_PREVIOUS },
+ { "numpages", CONTAINER_NUM_PAGES },
+ { "numitems", CONTAINER_NUM_ITEMS },
+ { "currentpage", CONTAINER_CURRENT_PAGE },
+ { "scrolling", CONTAINER_SCROLLING },
+ { "hasnext", CONTAINER_HAS_NEXT },
+ { "hasprevious", CONTAINER_HAS_PREVIOUS }};
+
+const infomap container_ints[] = {{ "row", CONTAINER_ROW },
+ { "column", CONTAINER_COLUMN },
+ { "position", CONTAINER_POSITION },
+ { "subitem", CONTAINER_SUBITEM },
+ { "hasfocus", CONTAINER_HAS_FOCUS }};
+
+const infomap container_str[] = {{ "property", CONTAINER_PROPERTY },
+ { "content", CONTAINER_CONTENT }};
+
+const infomap listitem_labels[]= {{ "thumb", LISTITEM_THUMB },
+ { "icon", LISTITEM_ICON },
+ { "actualicon", LISTITEM_ACTUAL_ICON },
+ { "overlay", LISTITEM_OVERLAY },
+ { "label", LISTITEM_LABEL },
+ { "label2", LISTITEM_LABEL2 },
+ { "title", LISTITEM_TITLE },
+ { "tracknumber", LISTITEM_TRACKNUMBER },
+ { "artist", LISTITEM_ARTIST },
+ { "album", LISTITEM_ALBUM },
+ { "albumartist", LISTITEM_ALBUM_ARTIST },
+ { "year", LISTITEM_YEAR },
+ { "genre", LISTITEM_GENRE },
+ { "director", LISTITEM_DIRECTOR },
+ { "filename", LISTITEM_FILENAME },
+ { "filenameandpath", LISTITEM_FILENAME_AND_PATH },
+ { "fileextension", LISTITEM_FILE_EXTENSION },
+ { "date", LISTITEM_DATE },
+ { "size", LISTITEM_SIZE },
+ { "rating", LISTITEM_RATING },
+ { "ratingandvotes", LISTITEM_RATING_AND_VOTES },
+ { "programcount", LISTITEM_PROGRAM_COUNT },
+ { "duration", LISTITEM_DURATION },
+ { "isselected", LISTITEM_ISSELECTED },
+ { "isplaying", LISTITEM_ISPLAYING },
+ { "plot", LISTITEM_PLOT },
+ { "plotoutline", LISTITEM_PLOT_OUTLINE },
+ { "episode", LISTITEM_EPISODE },
+ { "season", LISTITEM_SEASON },
+ { "tvshowtitle", LISTITEM_TVSHOW },
+ { "premiered", LISTITEM_PREMIERED },
+ { "comment", LISTITEM_COMMENT },
+ { "path", LISTITEM_PATH },
+ { "foldername", LISTITEM_FOLDERNAME },
+ { "folderpath", LISTITEM_FOLDERPATH },
+ { "picturepath", LISTITEM_PICTURE_PATH },
+ { "pictureresolution",LISTITEM_PICTURE_RESOLUTION },
+ { "picturedatetime", LISTITEM_PICTURE_DATETIME },
+ { "studio", LISTITEM_STUDIO },
+ { "country", LISTITEM_COUNTRY },
+ { "mpaa", LISTITEM_MPAA },
+ { "cast", LISTITEM_CAST },
+ { "castandrole", LISTITEM_CAST_AND_ROLE },
+ { "writer", LISTITEM_WRITER },
+ { "tagline", LISTITEM_TAGLINE },
+ { "top250", LISTITEM_TOP250 },
+ { "trailer", LISTITEM_TRAILER },
+ { "starrating", LISTITEM_STAR_RATING },
+ { "sortletter", LISTITEM_SORT_LETTER },
+ { "videocodec", LISTITEM_VIDEO_CODEC },
+ { "videoresolution", LISTITEM_VIDEO_RESOLUTION },
+ { "videoaspect", LISTITEM_VIDEO_ASPECT },
+ { "audiocodec", LISTITEM_AUDIO_CODEC },
+ { "audiochannels", LISTITEM_AUDIO_CHANNELS },
+ { "audiolanguage", LISTITEM_AUDIO_LANGUAGE },
+ { "subtitlelanguage", LISTITEM_SUBTITLE_LANGUAGE },
+ { "isfolder", LISTITEM_IS_FOLDER },
+ { "originaltitle", LISTITEM_ORIGINALTITLE },
+ { "lastplayed", LISTITEM_LASTPLAYED },
+ { "playcount", LISTITEM_PLAYCOUNT },
+ { "discnumber", LISTITEM_DISC_NUMBER }};
+
+const infomap visualisation[] = {{ "locked", VISUALISATION_LOCKED },
+ { "preset", VISUALISATION_PRESET },
+ { "name", VISUALISATION_NAME },
+ { "enabled", VISUALISATION_ENABLED }};
+
+const infomap fanart_labels[] = {{ "color1", FANART_COLOR1 },
+ { "color2", FANART_COLOR2 },
+ { "color3", FANART_COLOR3 },
+ { "image", FANART_IMAGE }};
+
+const infomap skin_labels[] = {{ "currenttheme", SKIN_THEME },
+ { "currentcolourtheme",SKIN_COLOUR_THEME }};
+
+const infomap window_bools[] = {{ "ismedia", WINDOW_IS_MEDIA },
+ { "isactive", WINDOW_IS_ACTIVE },
+ { "istopmost", WINDOW_IS_TOPMOST },
+ { "isvisible", WINDOW_IS_VISIBLE },
+ { "previous", WINDOW_PREVIOUS },
+ { "next", WINDOW_NEXT }};
+
+const infomap control_labels[] = {{ "hasfocus", CONTROL_HAS_FOCUS },
+ { "isvisible", CONTROL_IS_VISIBLE },
+ { "isenabled", CONTROL_IS_ENABLED },
+ { "getlabel", CONTROL_GET_LABEL }};
+
+const infomap playlist[] = {{ "length", PLAYLIST_LENGTH },
+ { "position", PLAYLIST_POSITION },
+ { "random", PLAYLIST_RANDOM },
+ { "repeat", PLAYLIST_REPEAT },
+ { "israndom", PLAYLIST_ISRANDOM },
+ { "isrepeat", PLAYLIST_ISREPEAT },
+ { "isrepeatone", PLAYLIST_ISREPEATONE }};
CGUIInfoManager::Property::Property(const CStdString &property, const CStdString &parameters)
: name(property)
Please sign in to comment.
Something went wrong with that request. Please try again.