examples/ForumNokia/CalendarExample/data/CalendarAPIexample.rss

00001 /*
00002  * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
00003  *    
00004  * Redistribution and use in source and binary forms, with or without
00005  * modification, are permitted provided that the following conditions are met:
00006  *    
00007  *  * Redistributions of source code must retain the above copyright notice, this
00008  *    list of conditions and the following disclaimer.
00009  *  * Redistributions in binary form must reproduce the above copyright notice,
00010  *    this list of conditions and the following disclaimer in the documentation
00011  *    and/or other materials provided with the distribution.
00012  *  * Neither the name of Nokia Corporation nor the names of its contributors
00013  *    may be used to endorse or promote products derived from this software
00014  *    without specific prior written permission.
00015  *    
00016  *    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00017  *    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00018  *    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00019  *    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00020  *    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00021  *    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00022  *    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00023  *    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00024  *    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00025  *    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00026  *    
00027  *    Description:  
00028  */
00029 
00030 //  RESOURCE IDENTIFIER
00031 NAME    CAPI // 4 letter ID
00032 
00033 //  INCLUDES
00034 
00035 #include <eikon.rh>
00036 #include "calendarapiexample.hrh"
00037 #include "calendarapiexample.loc"
00038 #include <avkon.rsg>
00039 #include <avkon.rh>
00040 #include <avkon.mbg>
00041 
00042 
00043 //  RESOURCE DEFINITIONS
00044 
00045 RESOURCE RSS_SIGNATURE { }
00046 
00047 RESOURCE TBUF { buf = ""; }
00048 
00049 RESOURCE EIK_APP_INFO
00050     {
00051     status_pane = 0;
00052     }
00053 
00054 
00055 //----------------------------------------------------
00056 //   
00057 //    Views
00058 //
00059 //----------------------------------------------------
00060 //
00061 RESOURCE AVKON_VIEW r_calendarapiexample_search_view
00062     {
00063     menubar = r_calendarapiexample_search_menubar;
00064     cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
00065     }    
00066 
00067 RESOURCE AVKON_VIEW r_calendarapiexample_entries_view
00068     {
00069     menubar = r_calendarapiexample_entries_menubar;
00070     cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
00071     }
00072     
00073 RESOURCE AVKON_VIEW r_calendarapiexample_entry_view
00074     {
00075     menubar = r_calendarapiexample_entry_menubar;
00076     cba = R_AVKON_SOFTKEYS_OPTIONS_DONE;
00077     }
00078     
00079 //----------------------------------------------------
00080 //   
00081 //    Dialogs
00082 //
00083 //----------------------------------------------------
00084 //
00085 RESOURCE DIALOG r_calendarapiexample_progress_note
00086     {
00087     flags = EAknProgressNoteFlags;
00088     buttons = R_AVKON_SOFTKEYS_EMPTY;
00089     items =
00090         {
00091         DLG_LINE
00092             {
00093             type = EAknCtNote;
00094             id = ECalendarAPIexampleProgressNote;
00095             control = AVKON_NOTE
00096                 {
00097                 layout = EProgressLayout;
00098                 singular_label = qtn_calendarapiexample_reading_calendar_singular;
00099                 plural_label = qtn_calendarapiexample_reading_calendar_plural;
00100                 };
00101             }
00102         };
00103     }
00104     
00105 RESOURCE DIALOG r_calendarapiexample_confirmation_query
00106     {
00107     flags = EGeneralQueryFlags;
00108     buttons = R_AVKON_SOFTKEYS_YES_NO;
00109     items = 
00110         {
00111         DLG_LINE
00112             {
00113             type = EAknCtQuery;
00114             id = ECalendarAPIexampleConfirmationQuery;
00115             control = AVKON_CONFIRMATION_QUERY
00116                 {
00117                 layout = EConfirmationQueryLayout;
00118                 };
00119             }
00120         };
00121     }
00122         
00123 //----------------------------------------------------
00124 //   
00125 //    Menubars
00126 //
00127 //----------------------------------------------------
00128 //
00129 RESOURCE MENU_BAR r_calendarapiexample_search_menubar
00130     {
00131     titles =
00132         {
00133         MENU_TITLE { menu_pane = r_calendarapiexample_search_menu; txt = ""; }
00134         };
00135     }
00136 
00137 RESOURCE MENU_BAR r_calendarapiexample_entries_menubar
00138     {
00139     titles =
00140         {
00141         MENU_TITLE { menu_pane = r_calendarapiexample_entries_menu; txt = ""; }
00142         };
00143     }
00144     
00145 RESOURCE MENU_BAR r_calendarapiexample_entry_menubar
00146     {
00147     titles =
00148         {
00149         MENU_TITLE { menu_pane = r_calendarapiexample_entry_menu; txt = ""; }
00150         };
00151     }
00152 
00153 //----------------------------------------------------
00154 //   
00155 //    Menupanes
00156 //
00157 //----------------------------------------------------
00158 //
00159 RESOURCE MENU_PANE r_calendarapiexample_search_menu
00160     {
00161     items =
00162         {
00163         MENU_ITEM { command = ECalendarAPIexampleCmdSearch; txt = qtn_options_search; },
00164         MENU_ITEM { command = ECalendarAPIexampleCmdAdd; txt = qtn_options_add; },
00165         MENU_ITEM { command = EAknCmdExit; txt = qtn_options_exit; }
00166         };
00167     }
00168     
00169 RESOURCE MENU_PANE r_calendarapiexample_entries_menu
00170     {
00171     items =
00172         {
00173         MENU_ITEM { command = ECalendarAPIexampleCmdEdit; txt = qtn_options_edit; },
00174         MENU_ITEM { command = ECalendarAPIexampleCmdDelete; txt = qtn_options_delete; }
00175         };
00176     }
00177     
00178 RESOURCE MENU_PANE r_calendarapiexample_entry_menu
00179     {
00180     items =
00181         {
00182         MENU_ITEM { command = ECalendarAPIexampleCmdDelete; txt = qtn_options_delete; }
00183         };
00184     }
00185 
00186 //----------------------------------------------------
00187 //   
00188 //    Arrays
00189 //
00190 //----------------------------------------------------
00191 //
00192 
00193 RESOURCE ARRAY r_calendarapiexample_search_array 
00194     { 
00195     items = 
00196         {
00197         LBUF
00198             {
00199             txt = qtn_calendarapiexample_week_item;
00200             }, 
00201         LBUF 
00202             { 
00203             txt = qtn_calendarapiexample_month_item; 
00204             }, 
00205         LBUF 
00206             { 
00207             txt = qtn_calendarapiexample_6months_item; 
00208             }, 
00209         LBUF 
00210             { 
00211             txt = qtn_calendarapiexample_year_item; 
00212             } 
00213         }; 
00214     } 
00215 
00216 RESOURCE ARRAY r_sync_texts
00217     {
00218     items =
00219         {
00220         AVKON_ENUMERATED_TEXT { value=KSyncNo; text = qtn_calendarapiexample_no; },
00221         AVKON_ENUMERATED_TEXT { value=KSyncPublic; text = qtn_calendarapiexample_public; },
00222         AVKON_ENUMERATED_TEXT { value=KSyncPrivate; text = qtn_calendarapiexample_private; }
00223         };
00224     }    
00225     
00226 RESOURCE ARRAY r_sync_popped_up
00227    {
00228    items =
00229       {
00230       LBUF { txt = qtn_calendarapiexample_no; },
00231       LBUF { txt = qtn_calendarapiexample_public; },
00232       LBUF { txt = qtn_calendarapiexample_private; }
00233       };
00234    }
00235    
00236 //----------------------------------------------------
00237 //   
00238 //    Buffers
00239 //
00240 //----------------------------------------------------
00241 //
00242 RESOURCE TBUF r_calendarapiexample_search_string
00243     { 
00244     buf=qtn_calendarapiexample_search_string; 
00245     }
00246     
00247 RESOURCE TBUF r_calendarapiexample_no_entries_found
00248     {
00249     buf = qtn_calendarapiexample_no_entries_found;
00250     }
00251     
00252 RESOURCE TBUF r_calendarapiexample_invalid_data
00253     {
00254     buf = qtn_calendarapiexample_invalid_data;
00255     }
00256 
00257 //----------------------------------------------------
00258 //   
00259 //    Setting item list
00260 //
00261 //----------------------------------------------------
00262 //
00263 RESOURCE AVKON_SETTING_ITEM_LIST r_entry_settings_list
00264     {
00265     title = qtn_s60uilab_details;
00266     initial_number = 7;
00267     items =     
00268         {
00269         AVKON_SETTING_ITEM
00270             {
00271             identifier = ECalendarAPIexampleNameItem;
00272             setting_page_resource = r_name_setting_page;
00273             name = name_label;
00274             },
00275         AVKON_SETTING_ITEM
00276             {
00277             identifier = ECalendarAPIexampleDateItem;
00278             setting_page_resource = r_date_setting_page;
00279             name = date_label;
00280             },
00281         AVKON_SETTING_ITEM
00282             {
00283             identifier = ECalendarAPIexampleAlarmItem;
00284             setting_page_resource = r_alarm_setting_page;
00285             associated_resource = r_alarm_setting_binary_texts;
00286             name = alarm_label;
00287             },
00288         AVKON_SETTING_ITEM
00289             {
00290             identifier = ECalendarAPIexampleAlarmTimeItem;
00291             setting_page_resource = r_alarm_time_setting_page;
00292             name = alarm_time_label;
00293             },
00294         AVKON_SETTING_ITEM
00295             {
00296             identifier = ECalendarAPIexampleAlarmDateItem;
00297             setting_page_resource = r_alarm_date_setting_page;
00298             name = alarm_date_label;
00299             },
00300         AVKON_SETTING_ITEM
00301             {
00302             identifier = ECalendarAPIexampleSyncItem;
00303             setting_page_resource = r_sync_setting_page;
00304             associated_resource = r_sync_popup_setting_list;
00305             name = sync_label;
00306             }
00307         };
00308     }
00309 
00310 //----------------------------------------------------
00311 //   
00312 //    Setting pages
00313 //
00314 //----------------------------------------------------
00315 //  
00316 RESOURCE AVKON_SETTING_PAGE r_name_setting_page
00317     {
00318     number = 1;
00319     label = name_label;
00320     type = EEikCtEdwin;
00321     editor_resource_id = r_name_edwin;
00322     }
00323     
00324 RESOURCE AVKON_SETTING_PAGE r_date_setting_page
00325     {
00326     number = 2;
00327     label = date_label;
00328     type = EEikCtDateEditor;
00329     editor_resource_id = r_date_edwin;
00330     }    
00331     
00332 RESOURCE AVKON_SETTING_PAGE r_age_setting_page
00333     {
00334     number = 3;
00335     label = age_label;
00336     type = EAknCtIntegerEdwin;
00337     editor_resource_id = r_age_edwin;
00338     }     
00339 
00340 RESOURCE AVKON_SETTING_PAGE r_alarm_setting_page
00341     {    
00342     number = 4;
00343     label = alarm_label;
00344     type = EAknCtPopupSettingList;
00345     editor_resource_id = r_binary;
00346     }
00347 
00348 RESOURCE POPUP_SETTING_LIST r_binary
00349     {
00350     // no definitions required - values obtained from 
00351     // associated_resource of owning AVKON_SETTING_ITEM_LIST
00352     }
00353 
00354     
00355 RESOURCE AVKON_SETTING_PAGE r_alarm_time_setting_page
00356     {
00357     number = 5;
00358     label = alarm_time_label;
00359     type = EEikCtTimeEditor;
00360     editor_resource_id = r_time_edwin;
00361     }  
00362 
00363 RESOURCE AVKON_SETTING_PAGE r_alarm_date_setting_page
00364     {
00365     number = 6;
00366     label = alarm_date_label;
00367     type = EEikCtDateEditor;
00368     editor_resource_id = r_date_edwin;
00369     }      
00370     
00371 RESOURCE AVKON_SETTING_PAGE r_sync_setting_page
00372     {    
00373     number = 7;
00374     label = sync_label;
00375     type = EAknCtPopupSettingList;
00376     editor_resource_id = r_sync_setting_list;
00377     }
00378     
00379     
00380 //----------------------------------------------------
00381 //   
00382 //    Controls
00383 //
00384 //----------------------------------------------------
00385 //
00386 RESOURCE LISTBOX r_calendarapiexample_search_list 
00387     { 
00388     array_id = r_calendarapiexample_search_array; 
00389     flags = EAknListBoxSelectionList; 
00390     } 
00391 
00392 
00393 RESOURCE EDWIN r_name_edwin
00394     {
00395     width = 10;
00396     maxlength = KMaxNameLength;
00397     }
00398     
00399 RESOURCE DATE_EDITOR r_date_edwin
00400     {
00401     minDate= DATE {year=1980;};
00402     maxDate= DATE {year=2100;};
00403     flags=0;
00404     }       
00405 
00406 RESOURCE AVKON_INTEGER_EDWIN r_age_edwin
00407     {
00408     min = 0;
00409     max = 150;
00410     }           
00411     
00412 RESOURCE TIME_EDITOR r_time_edwin
00413     {
00414     minTime = TIME
00415         {
00416         second = 0;
00417         minute = 0;
00418         hour = 0;
00419         };
00420 
00421     maxTime = TIME
00422         {
00423         second = 59;
00424         minute = 59;
00425         hour = 23;
00426         };
00427     }
00428     
00429 
00430 
00431 RESOURCE POPUP_SETTING_LIST r_sync_setting_list
00432     {
00433     flags = 0;
00434     }
00435     
00436 //----------------------------------------------------
00437 //   
00438 //    Popup setting texts
00439 //
00440 //----------------------------------------------------
00441 //    
00442 RESOURCE AVKON_POPUP_SETTING_TEXTS r_alarm_setting_binary_texts
00443     {
00444     setting_texts_resource = r_alarm_on_off_texts;
00445     }    
00446 
00447 RESOURCE ARRAY r_alarm_on_off_texts
00448     {
00449     items =
00450         {
00451         AVKON_ENUMERATED_TEXT { value=1; text = qtn_calendarapiexample_yes; },
00452         AVKON_ENUMERATED_TEXT { value=0; text = qtn_calendarapiexample_no; }
00453         };
00454     } 
00455 
00456 
00457 
00458     
00459 RESOURCE AVKON_POPUP_SETTING_TEXTS r_sync_popup_setting_list
00460     {
00461     setting_texts_resource = r_sync_texts;
00462     popped_up_texts_resource = r_sync_popped_up;
00463     }
00464 
00465 
00466    
00467 
00468     
00469 // End of File

Generated by  doxygen 1.6.2