radioapp/radiowidgets/inc/radiouiloader.h
changeset 28 075425b8d9a4
parent 19 afea38384506
child 32 189d20c34778
child 34 bc10a61bd7d3
--- a/radioapp/radiowidgets/inc/radiouiloader.h	Fri Jun 04 10:21:36 2010 +0100
+++ b/radioapp/radiowidgets/inc/radiouiloader.h	Fri Jun 11 13:38:32 2010 +0300
@@ -25,71 +25,80 @@
 
 namespace DOCML
 {
-    static QString FILE_MAINVIEW                    = ":/layout/mainview.docml";
-    static QString FILE_STATIONSVIEW                = ":/layout/stationsview.docml";
-    static QString FILE_HISTORYVIEW                 = ":/layout/historyview.docml";
+    static const QLatin1String FILE_MAINVIEW                    ( ":/layout/mainview.docml" );
+    static const QLatin1String FILE_STATIONSVIEW                ( ":/layout/stationsview.docml" );
+    static const QLatin1String FILE_HISTORYVIEW                 ( ":/layout/historyview.docml" );
 
     // Generic XML UI definitions
-    static QString NAME_VIEW                        = "view";
-    static QString SECTION_PORTRAIT                 = "portrait";
-    static QString SECTION_LANDSCAPE                = "landscape";
-    static QString NAME_LOUDSPEAKER_ACTION          = "loudspeaker_action";
+    static const QLatin1String NAME_VIEW                        ( "view" );
+    static const QLatin1String SECTION_LAZY_LOAD                ( "lazy_load" );
+    static const QLatin1String SECTION_PORTRAIT                 ( "portrait" );
+    static const QLatin1String SECTION_LANDSCAPE                ( "landscape" );
+    static const QLatin1String NAME_LOUDSPEAKER_ACTION          ( "loudspeaker_action" );
+    static const QLatin1String NAME_EXIT_ACTION                 ( "exit_action" );
 
     // RadioMainView
-    static QString MV_NAME_HISTORYVIEW_ACTION       = "mv:historyview_action";
-    static QString MV_NAME_STATION_CAROUSEL         = "mv:station_carousel";
-    static QString MV_NAME_FREQUENCY_STRIP          = "mv:frequency_strip";
-    static QString MV_NAME_STATIONS_BUTTON          = "mv:stations_button";
-    static QString MV_NAME_SCAN_BUTTON              = "mv:scan_button";
-    static QString MV_NAME_SPEAKER_BUTTON           = "mv:loudspeaker_button";
-    static QString MV_SECTION_NO_ANTENNA            = "mv:no_antenna";
-    static QString MV_SECTION_SEEKING               = "mv:seeking";
-    static QString MV_SECTION_SCANNING              = "mv:scanning";
-    static QString MV_SECTION_NO_FAVORITES          = "mv:no_favorites";
-    static QString MV_SECTION_NORMAL                = "mv:normal";
+    static const QLatin1String MV_NAME_HISTORYVIEW_ACTION       ( "mv:historyview_action" );
+    static const QLatin1String MV_NAME_STATION_CAROUSEL         ( "mv:station_carousel" );
+    static const QLatin1String MV_NAME_FREQUENCY_STRIP          ( "mv:frequency_strip" );
+    static const QLatin1String MV_NAME_STATIONS_BUTTON          ( "mv:stations_button" );
+    static const QLatin1String MV_NAME_SCAN_BUTTON              ( "mv:scan_button" );
+    static const QLatin1String MV_NAME_SPEAKER_BUTTON           ( "mv:loudspeaker_button" );
+    static const QLatin1String MV_NAME_PREV_BUTTON              ( "mv:prev_button" );
+    static const QLatin1String MV_NAME_NEXT_BUTTON              ( "mv:next_button" );
+    static const QLatin1String MV_SECTION_NO_ANTENNA            ( "mv:no_antenna" );
+    static const QLatin1String MV_SECTION_SEEKING               ( "mv:seeking" );
+    static const QLatin1String MV_SECTION_SCANNING              ( "mv:scanning" );
+    static const QLatin1String MV_SECTION_NO_FAVORITES          ( "mv:no_favorites" );
+    static const QLatin1String MV_SECTION_NORMAL                ( "mv:normal" );
 
     // RadioStationsView
-    static QString SV_NAME_HEADING_BANNER           = "sv:heading_banner";
-    static QString SV_NAME_STATIONS_LIST            = "sv:stations_list";
-    static QString SV_NAME_FAVORITES_BUTTON         = "sv:favorite_stations_button";
-    static QString SV_NAME_LOCALS_BUTTON            = "sv:local_stations_button";
-    static QString SV_NAME_SCAN_ACTION              = "sv:scan_action";
-    static QString SV_NAME_CLEAR_LIST_ACTION        = "sv:clear_list_action";
-    static QString SV_NAME_SCAN_BUTTON              = "sv:scan_button";
+    static const QLatin1String SV_NAME_HEADING_BANNER           ( "sv:heading_banner" );
+    static const QLatin1String SV_NAME_STATIONS_LIST            ( "sv:stations_list" );
+    static const QLatin1String SV_NAME_FAVORITES_BUTTON         ( "sv:favorite_stations_button" );
+    static const QLatin1String SV_NAME_LOCALS_BUTTON            ( "sv:local_stations_button" );
+    static const QLatin1String SV_NAME_SCAN_ACTION              ( "sv:scan_action" );
+    static const QLatin1String SV_NAME_CLEAR_LIST_ACTION        ( "sv:clear_list_action" );
+    static const QLatin1String SV_NAME_SCAN_BUTTON              ( "sv:scan_button" );
+    static const QLatin1String SV_NAME_RENAME_ACTION            ( "sv:rename_action" );
+    static const QLatin1String SV_NAME_FAVORITE_ACTION          ( "sv:toggle_favorite_action" );
+    static const QLatin1String SV_NAME_DELETE_ACTION            ( "sv:delete_action" );
 
-    static QString SV_SECTION_SHOW_ALL_STATIONS     = "show_all_stations";
-    static QString SV_SECTION_SHOW_FAVORITES        = "show_favorites";
-    static QString SV_SECTION_SHOW_SCAN_TEXT        = "show_scan_text";
-    static QString SV_SECTION_HIDE_SCAN_TEXT        = "hide_scan_text";
+    static const QLatin1String SV_SECTION_SHOW_ALL_STATIONS     ( "show_all_stations" );
+    static const QLatin1String SV_SECTION_SHOW_FAVORITES        ( "show_favorites" );
+    static const QLatin1String SV_SECTION_SHOW_SCAN_TEXT        ( "show_scan_text" );
+    static const QLatin1String SV_SECTION_HIDE_SCAN_TEXT        ( "hide_scan_text" );
 
     // RadioStationsView Context Menu
-    static QString NAME_CONTEXT_MENU                = "sv:context_menu";
-    static QString NAME_CONTEXT_RENAME              = "sv:rename_action";
-    static QString NAME_CONTEXT_FAVORITE            = "sv:toggle_favorite_action";
-    static QString NAME_CONTEXT_DELETE              = "sv:delete_action";
-    static QString NAME_INPUT_QUERY                 = "sv:station_name_query";
+    static const QLatin1String NAME_CONTEXT_MENU                ( "sv:context_menu" );
+    static const QLatin1String NAME_CONTEXT_RENAME              ( "sv:rename_action" );
+    static const QLatin1String NAME_CONTEXT_FAVORITE            ( "sv:toggle_favorite_action" );
+    static const QLatin1String NAME_CONTEXT_DELETE              ( "sv:delete_action" );
+    static const QLatin1String NAME_INPUT_QUERY                 ( "sv:station_name_query" );
 
     // Station Carousel
-    static QString MV_NAME_INFO_FIRST_ROW           = "mv:InfoFirstRow";
-    static QString MV_NAME_INFO_SECOND_ROW          = "mv:InfoSecondRow";
-    static QString MV_NAME_INFO_THIRD_ROW           = "mv:InfoThirdRow";
-    static QString MV_NAME_INFO_FOURTH_ROW          = "mv:InfoFourthRow";
-    static QString MV_NAME_INFO_TEXT                = "mv:info_text";
+    static const QLatin1String MV_NAME_INFO_FIRST_ROW           ( "mv:InfoFirstRow" );
+    static const QLatin1String MV_NAME_INFO_SECOND_ROW          ( "mv:InfoSecondRow" );
+    static const QLatin1String MV_NAME_INFO_THIRD_ROW           ( "mv:InfoThirdRow" );
+    static const QLatin1String MV_NAME_INFO_FOURTH_ROW          ( "mv:InfoFourthRow" );
+    static const QLatin1String MV_NAME_INFO_TEXT                ( "mv:info_text" );
 
     // History View
-    static QString HV_NAME_CLEAR_LIST_ACTION        = "hv:clear_list_action";
-    static QString HV_NAME_HISTORY_LIST             = "hv:history_list";
-    static QString HV_NAME_ALL_SONGS_BUTTON         = "hv:all_songs_button";
-    static QString HV_NAME_TAGGED_SONGS_BUTTON      = "hv:tagged_songs_button";
-    static QString HV_SECTION_SHOW_LIST             = "hv:show_list";
-    static QString HV_SECTION_HIDE_LIST             = "hv:hide_list";
-    static QString HV_SECTION_HISTORY_MODE          = "hv:history_mode";
-    static QString HV_SECTION_FAVORITE_MODE         = "hv:tagged_mode";
-    static QString HV_NAME_CONTEXT_MENU             = "hv:context_menu";
+    static const QLatin1String HV_NAME_CLEAR_LIST_ACTION        ( "hv:clear_list_action" );
+    static const QLatin1String HV_NAME_HISTORY_LIST             ( "hv:history_list" );
+    static const QLatin1String HV_NAME_ALL_SONGS_BUTTON         ( "hv:all_songs_button" );
+    static const QLatin1String HV_NAME_TAGGED_SONGS_BUTTON      ( "hv:tagged_songs_button" );
+    static const QLatin1String HV_SECTION_SHOW_LIST             ( "hv:show_list" );
+    static const QLatin1String HV_SECTION_HIDE_LIST             ( "hv:hide_list" );
+    static const QLatin1String HV_SECTION_HISTORY_MODE          ( "hv:history_mode" );
+    static const QLatin1String HV_SECTION_FAVORITE_MODE         ( "hv:tagged_mode" );
+    static const QLatin1String HV_NAME_CONTEXT_MENU             ( "hv:context_menu" );
+    static const QLatin1String HV_NAME_TOGGLE_TAG_ACTION        ( "hv:toggle_tag_action" );
+    static const QLatin1String HV_NAME_OVI_STORE_ACTION         ( "hv:ovi_store_action" );
 
     // History View Context Menu
-    static QString HV_NAME_CONTEXT_TAG              = "hv:toggle_tag_action";
-    static QString HV_NAME_CONTEXT_SEARCH           = "hv:search_from_other_store_action";
+    static const QLatin1String HV_NAME_CONTEXT_TAG              ( "hv:toggle_tag_action" );
+    static const QLatin1String HV_NAME_CONTEXT_SEARCH           ( "hv:search_from_other_store_action" );
 
 }