examples/ForumNokia/ThreadAndActiveObjectsEx/group/threadAO.rss

00001 /*
00002  * Copyright (c) 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 NAME THAO
00031 
00032 #include <eikon.rh>
00033 #include <avkon.rh>
00034 #include <avkon.rsg>
00035 
00036 #include "ThreadAO.hrh"
00037 #include "ThreadAO.loc"
00038 
00039 #define KWidth 176
00040 #define KHeight 100
00041 #define KMaxLength 256  
00042 #define KNumberQueryMin 5
00043 #define KNumberQueryMax 2000
00044 
00045 
00046 
00047 // ---------------------------------------------------------
00048 //   
00049 //    Define the resource file signature 
00050 //    This resource should be empty.
00051 //
00052 // ---------------------------------------------------------
00053 //
00054 RESOURCE RSS_SIGNATURE
00055     {
00056     }
00057 
00058 
00059 
00060 // ---------------------------------------------------------
00061 //   
00062 //    Default Document Name
00063 //
00064 // ---------------------------------------------------------
00065 //
00066 RESOURCE TBUF r_default_document_name
00067     {
00068     buf="";
00069     }
00070 
00071 // ---------------------------------------------------------
00072 //   
00073 //    Define default menu and CBA key.
00074 //
00075 // ---------------------------------------------------------
00076 //
00077 RESOURCE EIK_APP_INFO
00078     {
00079     menubar = r_Thread_menubar;
00080     cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
00081     status_pane = r_my_status_pane;
00082     }
00083 
00084         
00085 // ---------------------------------------------------------
00086 //   
00087 //   r_Thread_menubar
00088 //   Menubar for ThreadAO example
00089 //
00090 // ---------------------------------------------------------
00091 //
00092 RESOURCE MENU_BAR r_Thread_menubar
00093     {
00094     titles =
00095         {
00096         MENU_TITLE
00097             {
00098             menu_pane = r_Thread_menu;
00099             }
00100         };
00101     }
00102 
00103 
00104 // ---------------------------------------------------------
00105 //   
00106 //   r_Thread_menu
00107 //   Menu for "Options"
00108 //
00109 // ---------------------------------------------------------
00110 //
00111 RESOURCE MENU_PANE r_Thread_menu
00112     {
00113     items = 
00114         {
00115         MENU_ITEM
00116             {
00117             command = EThreadStartCommand;
00118             txt = THREAD_ACTIVEOBJECT_START;
00119             },
00120         MENU_ITEM
00121             {
00122             command = EThreadSetRefreshTimeCommand;
00123             txt = THREAD_REFRESHTIME_TEXT;
00124             },        
00125         MENU_ITEM
00126             {
00127             command = EAknSoftkeyExit;
00128             txt = THREAD_EXIT;
00129             }
00130         };
00131     }
00132 
00133 // ---------------------------------------------------------
00134 //      
00135 //      The device list box
00136 //
00137 // ---------------------------------------------------------
00138 //
00139 RESOURCE LISTBOX r_device_list_listbox
00140         {
00141         flags = EAknListBoxSelectionList;
00142         }
00143         
00144 // ---------------------------------------------------------
00145 //      
00146 //      RefreshTime number query dialog
00147 //
00148 // ---------------------------------------------------------
00149 //
00150 RESOURCE DIALOG r_set_refresh_time_dialog
00151     {
00152     flags = EGeneralQueryFlags;
00153     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
00154     items =
00155         {
00156         DLG_LINE
00157             {
00158             type = EAknCtQuery;
00159             id = EGeneralQuery;
00160             control= AVKON_DATA_QUERY
00161                 {
00162                 layout = ENumberLayout;
00163                 label = THREAD_QUERY_DIALOG_TEXT;
00164 //                control = NUMBER_EDITOR
00165                   control = AVKON_INTEGER_EDWIN
00166                     {
00167                     min = KNumberQueryMin;
00168                     max = KNumberQueryMax;
00169                     };
00170                 };
00171             }
00172         };
00173     }
00174 
00175 RESOURCE STATUS_PANE_APP_MODEL r_my_status_pane
00176         {
00177         panes =
00178                 {
00179                 SPANE_PANE
00180                         {
00181                         id = EEikStatusPaneUidTitle;
00182                         type = EAknCtTitlePane;
00183                         resource = r_my_title_pane;
00184                         }
00185                 };
00186         }
00187         
00188 RESOURCE TITLE_PANE r_my_title_pane
00189         {
00190         txt = THREAD_TITLE_PANE_TEXT;
00191         }

Generated by  doxygen 1.6.2