examples/ForumNokia/Symbian_OS_End-to-End_Sockets_API_Example/SocketTaskManager/group/SocketTaskManager.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 
00031 NAME TMAN
00032 
00033 #include <eikon.rh>
00034 #include <eikon.rsg>
00035 #include <avkon.rh>
00036 #ifdef EKA2   // S60 3rd Edition
00037 #include <appinfo.rh>
00038 #endif
00039 #include <avkon.rsg>
00040 #include <avkon.mbg>
00041 #include "TaskManager.hrh"
00042 #include "TaskManager.loc"
00043 
00044 
00045 // ---------------------------------------------------------
00046 //   
00047 //    Define the resource file signature 
00048 //    This resource should be empty.
00049 //
00050 // ---------------------------------------------------------
00051 //
00052 RESOURCE RSS_SIGNATURE { }
00053 
00054 // ---------------------------------------------------------
00055 //   
00056 //    Default Document Name
00057 //
00058 // ---------------------------------------------------------
00059 //
00060 RESOURCE TBUF r_default_document_name { buf=""; }
00061 
00062 // ---------------------------------------------------------
00063 //   
00064 //    Define default menu and CBA key.
00065 //
00066 // ---------------------------------------------------------
00067 //
00068 RESOURCE EIK_APP_INFO
00069     {
00070     menubar = r_taskmanager_menubar;
00071     cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
00072     }
00073 
00074 
00075 // ---------------------------------------------------------
00076 //   
00077 //   Buffers
00078 //
00079 // ---------------------------------------------------------
00080 //    
00081 RESOURCE TBUF r_taskmanager_no_iaps_defined
00082         {
00083         buf = qtn_taskmanager_no_iaps_defined;  
00084         }
00085 
00086 // ---------------------------------------------------------
00087 //   
00088 //   Menubar
00089 //
00090 // ---------------------------------------------------------
00091 //
00092 RESOURCE MENU_BAR r_taskmanager_menubar
00093     {
00094     titles =
00095         {
00096         MENU_TITLE {menu_pane = r_taskmanager_menu;}
00097         };
00098     }
00099 
00100 // ---------------------------------------------------------
00101 //   
00102 //   Menupane
00103 //
00104 // ---------------------------------------------------------
00105 //
00106 RESOURCE MENU_PANE r_taskmanager_menu
00107     {
00108     items = 
00109         {
00110         MENU_ITEM {command = ETaskManagerLoadTasksCommand; txt = qtn_taskmanager_load_tasks;},
00111         MENU_ITEM {command = ETaskManagerConnectionSettingsCommand; txt = qtn_taskmanager_settings;},
00112         MENU_ITEM {command = EAknSoftkeyExit;   txt = qtn_taskmanager_exit;}
00113         };
00114     }
00115 
00116 // ---------------------------------------------------------
00117 //   
00118 //   Dialog
00119 //
00120 // ---------------------------------------------------------
00121 //
00122 RESOURCE DIALOG r_taskmanager_connform_dialog
00123         {
00124         title = qtn_taskmanager_server_settings;
00125           buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
00126           flags = EEikDialogFlagWait |
00127                 EEikDialogFlagFillAppClientRect |
00128                 EEikDialogFlagNoDrag |
00129                 EEikDialogFlagCbaButtons;
00130         form = r_taskmanager_connform_form;
00131         }
00132 
00133 RESOURCE DIALOG r_taskmanager_task_confirmation_query
00134         {
00135         flags=EGeneralQueryFlags;
00136         buttons = R_AVKON_SOFTKEYS_YES_NO;
00137         items =
00138                 {
00139                 DLG_LINE
00140                         {
00141                         type = EAknCtQuery;
00142                         id = ETaskManagerIdConfirmationQuery;
00143                         control = AVKON_CONFIRMATION_QUERY
00144                                 {
00145                                 layout = EConfirmationQueryLayout;
00146                                 };
00147                         }
00148                 };
00149         }
00150 
00151 // ---------------------------------------------------------
00152 //   
00153 //   Form
00154 //
00155 // ---------------------------------------------------------
00156 //
00157 RESOURCE FORM r_taskmanager_connform_form
00158         {
00159         flags = EEikFormUseDoubleSpacedFormat |
00160                 EEikFormEditModeOnly;
00161         items=
00162                 {
00163                 DLG_LINE 
00164                         { 
00165                         type = EEikCtEdwin; 
00166                         id = ETaskManagerIdServer; 
00167                         prompt = qtn_taskmanager_server_name;
00168                         itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
00169                         control = EDWIN
00170                                 {
00171                                 width = 1;
00172                                 lines = 1;
00173                                 maxlength = KMaxServerNameLength;
00174                                 };
00175                         },      
00176                 DLG_LINE 
00177                         { 
00178                         type = EAknCtIntegerEdwin; 
00179                         id = ETaskManagerIdPort; 
00180                         prompt = qtn_taskmanager_port_number;
00181                         itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
00182                         control = AVKON_INTEGER_EDWIN //NUMBER_EDITOR
00183                                 {
00184                                 min = 0;
00185                                 max = 99999;
00186                                 unset_value = 0;
00187                                 };
00188                         },      
00189                 DLG_LINE 
00190                         { 
00191                         type = EEikCtEdwin; 
00192                         id = ETaskManagerIdUsername;
00193                         prompt = qtn_taskmanager_login;
00194                         itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
00195                         control = EDWIN
00196                                 {
00197                                 width = 1;
00198                                 lines = 1;
00199                                 maxlength = KMaxUsernameLength;
00200                                 };
00201                         },
00202                 DLG_LINE 
00203                         { 
00204                         type = EEikCtSecretEd; 
00205                         id = ETaskManagerIdPassword; 
00206                         prompt = qtn_taskmanager_password;
00207                         itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
00208                         control = SECRETED
00209                                 {
00210                                 num_letters = KMaxPasswordLength;
00211                                 };
00212                         
00213                         }
00214                 };
00215         }
00216         
00217 // ---------------------------------------------------------
00218 //   
00219 //   Listbox
00220 //
00221 // ---------------------------------------------------------
00222 //
00223 RESOURCE LISTBOX r_taskmanager_tasklist
00224         {
00225         flags = EAknListBoxSelectionList;
00226         }
00227 
00228 // ---------------------------------------------------------
00229 //   
00230 //   List query
00231 //
00232 // ---------------------------------------------------------
00233 //      
00234 RESOURCE AVKON_LIST_QUERY r_taskmanager_iap_list_query
00235         {
00236         flags = EGeneralQueryFlags;
00237         softkeys = R_AVKON_SOFTKEYS_OK_CANCEL;
00238         items =
00239                 {
00240                 AVKON_LIST_QUERY_DLG_LINE
00241                         {
00242                         control = AVKON_LIST_QUERY_CONTROL
00243                                 {
00244                                 listtype = EAknCtSinglePopupMenuListBox;
00245                                 heading = qtn_taskmanager_select_iap;
00246                                 listbox = AVKON_LIST_QUERY_LIST
00247                                         {
00248                                         };
00249                                 };
00250                         }
00251                 };
00252         }
00253         

Generated by  doxygen 1.6.2