realtimenetprots/sipfw/SampleApp/gameUI_techview/Data/SIPEx.rss
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 
       
     2 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description:
       
    15 //
       
    16 
       
    17 
       
    18 
       
    19 //  RESOURCE IDENTIFIER
       
    20 NAME    SLGA
       
    21 
       
    22 //  INCLUDES
       
    23 #include <uikon.rh> // RSS_SIGNATURE 
       
    24 #include <techview/eikon.rh>
       
    25 #include <badef.rh> // TBUF
       
    26 #include <techview/eikon.rsg>
       
    27 #include "SIPEx_loc.rls"
       
    28 #include "SIPEx.hrh"
       
    29 
       
    30 //  CONSTANTS  
       
    31 #define EDWIN_LENGTH    16
       
    32 #define SIP_ADDRESS_MAX_LENGTH 256
       
    33 #define NUMBER_OF_MSG_LINES 5
       
    34 #define SIPEXTOOLBARWIDTH 130
       
    35 //  RESOURCE DEFINITIONS 
       
    36 
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 //   
       
    40 // Resource file signature
       
    41 //
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 RESOURCE RSS_SIGNATURE { }
       
    45 
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 //   
       
    49 // Default document name
       
    50 //
       
    51 // -----------------------------------------------------------------------------
       
    52 //
       
    53 RESOURCE TBUF 
       
    54     { 
       
    55 	buf = ""; 
       
    56     }
       
    57 
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 //   
       
    61 // Application info
       
    62 // Defines the menus, toolband and softkeys for the application.
       
    63 //
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 RESOURCE EIK_APP_INFO
       
    67     {
       
    68     menubar = r_sip_ex_menubar;
       
    69     toolbar=r_sip_ex_toolbar;
       
    70     }
       
    71 
       
    72 // -----------------------------------------------------------------------------
       
    73 //   
       
    74 // r_sip_ex_menubar
       
    75 // The resources for SIPEx menubar
       
    76 //
       
    77 // -----------------------------------------------------------------------------
       
    78 //
       
    79 RESOURCE MENU_BAR r_sip_ex_menubar
       
    80     {
       
    81     titles =
       
    82         {
       
    83         MENU_TITLE 
       
    84             { 
       
    85             menu_pane = r_sip_ex_menu; 
       
    86             }
       
    87         };
       
    88     }
       
    89 
       
    90 
       
    91 // -----------------------------------------------------------------------------
       
    92 //   
       
    93 // r_sip_ex_menu
       
    94 // The resources for SIPEx menubar
       
    95 //
       
    96 // -----------------------------------------------------------------------------
       
    97 //
       
    98 RESOURCE MENU_PANE r_sip_ex_menu
       
    99     {
       
   100     items =
       
   101         {
       
   102         MENU_ITEM
       
   103 	        {
       
   104             command = ECmdInviteForGame;
       
   105             txt = sip_ex_invite_for_game;
       
   106             }, 
       
   107         MENU_ITEM
       
   108 	        {
       
   109             command = ECmdEnableProfile;
       
   110             txt = sip_ex_enable_profile;
       
   111             }, 
       
   112         MENU_ITEM
       
   113 	        {
       
   114             command = ECmdDisableProfile;
       
   115             txt = sip_ex_disable_profile;
       
   116             }, 
       
   117         MENU_ITEM
       
   118             {
       
   119             command = ECmdSendIM;
       
   120             txt = sip_ex_send_im_cmd;
       
   121             },
       
   122         MENU_ITEM
       
   123             {
       
   124             command = ECmdEndGame;
       
   125             txt = sip_ex_end_game_cmd;
       
   126             },
       
   127         MENU_ITEM
       
   128 	        {
       
   129             command = EEikCmdExit;
       
   130             txt = sip_ex_exit;
       
   131             }
       
   132         };
       
   133     }
       
   134 
       
   135 // -----------------------------------------------------------------------------
       
   136 //   
       
   137 // r_sip_ex_toolbar
       
   138 // The cba buttons for SIPEx game
       
   139 //
       
   140 // -----------------------------------------------------------------------------
       
   141 //
       
   142 RESOURCE TOOLBAR r_sip_ex_toolbar
       
   143 	{
       
   144 	breadth = SIPEXTOOLBARWIDTH;
       
   145 	controls =
       
   146 		{
       
   147 		TBAR_CTRL  
       
   148 			{ 
       
   149 			 type = EEikCtFileNameLabel;
       
   150 			 id = EToolbarFileNameLabel;
       
   151 			 },
       
   152     	TBAR_BUTTON 
       
   153             {
       
   154             id = ECmdInviteForGame;
       
   155             txt = sip_ex_invite_for_game;
       
   156             }, 
       
   157         TBAR_BUTTON 
       
   158             {
       
   159             id = ECmdEnableProfile;
       
   160             txt = sip_ex_enable_profile;
       
   161             }, 
       
   162         TBAR_BUTTON 
       
   163             {
       
   164             id = ECmdDisableProfile;
       
   165             txt = sip_ex_disable_profile;
       
   166             }, 
       
   167         TBAR_BUTTON 
       
   168             {
       
   169             id = ECmdSendIM;
       
   170             txt = sip_ex_send_im_cmd;
       
   171             },
       
   172         TBAR_BUTTON 
       
   173             {
       
   174             id = ECmdEndGame;
       
   175             txt = sip_ex_end_game_cmd;
       
   176             },
       
   177         TBAR_BUTTON 
       
   178             {
       
   179             id = EEikCmdExit;
       
   180             txt = sip_ex_exit;
       
   181             },
       
   182 		TBAR_CTRL
       
   183 			{
       
   184 			type = EEikCtSpacer;
       
   185 			flags = EEikToolBarCtrlHasSetMinLength | EEikToolBarCtrlIsStretchable;
       
   186 			length = 0;
       
   187 			control = SPACER;
       
   188 			},
       
   189 		TBAR_CTRL
       
   190 			{
       
   191 			type = EEikCtClock;
       
   192 			control = CLOCK 
       
   193 			            { 
       
   194 			            digitalresourceid = R_EIK_DIGITAL_CLOCK; 
       
   195 			            analogresourceid = R_EIK_ANALOG_CLOCK; 
       
   196                         };
       
   197 			},
       
   198 		TBAR_CTRL
       
   199 			{
       
   200 			type = EEikCtSpacer;
       
   201 			flags = EEikToolBarCtrlHasSetMinLength;
       
   202 			length = KEikStdGapBelowClock;
       
   203 			control = SPACER;
       
   204 			}
       
   205 		};
       
   206 	}
       
   207 
       
   208 
       
   209 // -----------------------------------------------------------------------------
       
   210 //   
       
   211 // r_invite_address_dlg
       
   212 // 
       
   213 //
       
   214 // -----------------------------------------------------------------------------
       
   215 //
       
   216 RESOURCE DIALOG r_invite_address_dlg
       
   217     {
       
   218 	title = sip_ex_invite_address_dlg_title;
       
   219 	buttons = r_invite_address_dlg_buttons;
       
   220 	flags = EEikDialogFlagNotifyEsc | EEikDialogFlagWait;
       
   221 	items =
       
   222 		{
       
   223 		DLG_LINE
       
   224 		    {
       
   225 		    type = EEikCtEdwin;
       
   226 		    prompt = sip_ex_address_line;
       
   227 		    id = ESIPExInviteAddressId;
       
   228 		    control = EDWIN
       
   229                 { 
       
   230                 width = EDWIN_LENGTH; 
       
   231                 };
       
   232 		    }
       
   233 		};
       
   234     }
       
   235       
       
   236 // -----------------------------------------------------------------------------
       
   237 //   
       
   238 // r_profile_dlg
       
   239 // 
       
   240 //
       
   241 // -----------------------------------------------------------------------------
       
   242 //
       
   243 RESOURCE DIALOG r_profile_dlg
       
   244     {
       
   245     title = sip_ex_default_profile_line;
       
   246 	buttons = r_invite_address_dlg_buttons;
       
   247 	flags = EEikDialogFlagNotifyEsc | EEikDialogFlagWait;
       
   248 	items=
       
   249        {
       
   250         DLG_LINE
       
   251             {
       
   252             type = EEikCtEdwin;
       
   253             prompt = sip_ex_public_uname;
       
   254 		    id = EItemUsername;
       
   255             control = EDWIN 
       
   256                 { 
       
   257                 maxlength = SIP_ADDRESS_MAX_LENGTH;
       
   258                 width = EDWIN_LENGTH; 
       
   259                 };
       
   260             },
       
   261             
       
   262          DLG_LINE
       
   263 		    {
       
   264 		    type = EEikCtChoiceList;
       
   265            	prompt = sip_ex_accesspointid;
       
   266            	id = EItemAccesspointid;
       
   267            	control = CHOICELIST
       
   268            		{
       
   269            		//array_id = sip_ex_compression_choices;
       
   270            		};
       
   271 		    },
       
   272             
       
   273         DLG_LINE
       
   274 		    {
       
   275 		    type = EEikCtChoiceList;
       
   276 		    prompt = sip_ex_compression;
       
   277 		    id = EItemCompression;
       
   278 		    control = CHOICELIST
       
   279                 { 
       
   280                 array_id = sip_ex_compression_choices;
       
   281                 };
       
   282 		    },
       
   283 		    
       
   284         DLG_LINE
       
   285 		    {
       
   286 		    type = EEikCtChoiceList;
       
   287 		    prompt = sip_ex_security_neg;
       
   288 		    id = EItemSecurity;
       
   289 		    control = CHOICELIST
       
   290                 { 
       
   291                 array_id = sip_ex_compression_choices;
       
   292                 };
       
   293 		    },
       
   294 		    
       
   295         DLG_LINE
       
   296             {
       
   297             type = EEikCtEdwin;
       
   298             prompt = sip_ex_proxy_address;
       
   299 		    id = EProxyServerItemAddr;
       
   300             control = EDWIN 
       
   301                 { 
       
   302                 maxlength = SIP_ADDRESS_MAX_LENGTH;
       
   303                 width = EDWIN_LENGTH; 
       
   304                 };
       
   305             },
       
   306 		    
       
   307         DLG_LINE
       
   308             {
       
   309             type = EEikCtEdwin;
       
   310             prompt = sip_ex_proxy_realm;
       
   311 		    id = EProxyServerItemRealm;
       
   312             control = EDWIN 
       
   313                 { 
       
   314                 maxlength = SIP_ADDRESS_MAX_LENGTH;
       
   315                 width = EDWIN_LENGTH; 
       
   316                 };
       
   317             },
       
   318         
       
   319         DLG_LINE
       
   320             {
       
   321             type = EEikCtEdwin;
       
   322             prompt = sip_ex_proxy_uname;
       
   323 		    id = EProxyServerItemUsername;
       
   324             control = EDWIN 
       
   325                 { 
       
   326                 maxlength = SIP_ADDRESS_MAX_LENGTH;
       
   327                 width = EDWIN_LENGTH; 
       
   328                 };
       
   329             },
       
   330             
       
   331         DLG_LINE
       
   332             {
       
   333             type = EEikCtEdwin;
       
   334             prompt = sip_ex_proxy_password;
       
   335 		    id = EProxyServerItemPassword;
       
   336             control = EDWIN 
       
   337                 { 
       
   338                 maxlength = SIP_ADDRESS_MAX_LENGTH;
       
   339                 width = EDWIN_LENGTH; 
       
   340                 };
       
   341             },
       
   342             
       
   343         DLG_LINE
       
   344             {
       
   345             type = EEikCtEdwin;
       
   346             prompt = sip_ex_reg_address;
       
   347 		    id = ERegistrarServerItemAddr;
       
   348             control = EDWIN 
       
   349                 { 
       
   350                 maxlength = SIP_ADDRESS_MAX_LENGTH;
       
   351                 width = EDWIN_LENGTH; 
       
   352                 };
       
   353             },
       
   354 		    
       
   355         DLG_LINE
       
   356             {
       
   357             type = EEikCtEdwin;
       
   358             prompt = sip_ex_reg_realm;
       
   359 		    id = ERegistrarServerItemRealm;
       
   360             control = EDWIN 
       
   361                 { 
       
   362                 maxlength = SIP_ADDRESS_MAX_LENGTH;
       
   363                 width = EDWIN_LENGTH; 
       
   364                 };
       
   365             },
       
   366         
       
   367         DLG_LINE
       
   368             {
       
   369             type = EEikCtEdwin;
       
   370             prompt = sip_ex_reg_uname;
       
   371 		    id = ERegistrarServerItemUsername;
       
   372             control = EDWIN 
       
   373                 { 
       
   374                 maxlength = SIP_ADDRESS_MAX_LENGTH;
       
   375                 width = EDWIN_LENGTH; 
       
   376                 };
       
   377             },
       
   378             
       
   379         DLG_LINE
       
   380             {
       
   381             type = EEikCtEdwin;
       
   382             prompt = sip_ex_reg_password;
       
   383 		    id = ERegistrarServerItemPassword;
       
   384             control = EDWIN 
       
   385                 { 
       
   386                 maxlength = SIP_ADDRESS_MAX_LENGTH;
       
   387                 width = EDWIN_LENGTH; 
       
   388                 };
       
   389             }
       
   390             
       
   391             
       
   392         };
       
   393     }
       
   394     
       
   395       
       
   396 // -----------------------------------------------------------------------------
       
   397 //   
       
   398 // r_instant_message_dlg
       
   399 // The dialog for instant message sending
       
   400 //
       
   401 // -----------------------------------------------------------------------------
       
   402 //
       
   403 RESOURCE DIALOG r_instant_message_dlg
       
   404     {
       
   405 	title = sip_ex_instant_message_dlg_title;
       
   406 	buttons = r_invite_address_dlg_buttons;
       
   407 	flags = EEikDialogFlagNotifyEsc | EEikDialogFlagWait;
       
   408 	items =
       
   409 		{
       
   410 		DLG_LINE
       
   411 		    {
       
   412 		    type = EEikCtEdwin;
       
   413 		    prompt = sip_ex_im_address_line;
       
   414 		    id = ESIPExIMAddressLineId;
       
   415 		    control = EDWIN
       
   416                 { 
       
   417                 maxlength = SIP_ADDRESS_MAX_LENGTH;
       
   418                 width = EDWIN_LENGTH; 
       
   419                 };
       
   420 		    },
       
   421         DLG_LINE
       
   422             {
       
   423             type = EEikCtGlobalTextEditor;
       
   424             prompt = sip_ex_im_msg_line;
       
   425             id = ESIPExIMMessageLineId;
       
   426             control = GTXTED
       
   427                 {
       
   428                 width = 150;
       
   429                 height = 50;
       
   430                 numlines = NUMBER_OF_MSG_LINES;
       
   431                 };
       
   432             }
       
   433             
       
   434 		};
       
   435     }
       
   436 
       
   437 //----------------------------------------------------
       
   438 //   
       
   439 //    r_invite_address_dlg_buttons
       
   440 //    The buttons for the credentials dialog
       
   441 //
       
   442 //----------------------------------------------------
       
   443 //
       
   444 RESOURCE DLG_BUTTONS r_invite_address_dlg_buttons
       
   445 	{
       
   446 	buttons = 
       
   447 		{
       
   448 		DLG_BUTTON
       
   449 			{
       
   450 			id = EEikBidOk;
       
   451 			button = CMBUT { txt = sip_ex_dlg_ok; };		
       
   452 			hotkey = EEikBidOk;
       
   453 			},
       
   454 		DLG_BUTTON
       
   455 			{
       
   456 			id = EEikBidCancel;
       
   457 			button = CMBUT { txt = sip_ex_dlg_cancel; };
       
   458 			hotkey = EEikBidCancel;
       
   459 			}
       
   460 		};
       
   461 	}
       
   462 
       
   463 //----------------------------------------------------
       
   464 //   
       
   465 //    The text resources
       
   466 //
       
   467 //----------------------------------------------------
       
   468 //
       
   469 RESOURCE TBUF r_error_in_address_txt 
       
   470     { 
       
   471     buf = sip_ex_error_in_address;
       
   472     }
       
   473     
       
   474 RESOURCE TBUF r_error_in_username_txt 
       
   475     { 
       
   476     buf = sip_ex_error_in_username;
       
   477     }
       
   478     
       
   479 RESOURCE TBUF r_error_in_compression_txt 
       
   480     { 
       
   481     buf = sip_ex_error_in_compression;
       
   482     }
       
   483     
       
   484 RESOURCE TBUF r_error_in_security_txt 
       
   485     { 
       
   486     buf = sip_ex_error_in_security;
       
   487     }
       
   488     
       
   489 RESOURCE TBUF r_error_in_proxy_txt 
       
   490     { 
       
   491     buf = sip_ex_error_in_proxy;
       
   492     }
       
   493 
       
   494 RESOURCE TBUF r_error_in_registrar_txt 
       
   495     { 
       
   496     buf = sip_ex_error_in_registrar;
       
   497     }
       
   498 
       
   499 RESOURCE TBUF r_error_in_general_txt 
       
   500     { 
       
   501     buf = sip_ex_error_in_general;
       
   502     }
       
   503 
       
   504 RESOURCE TBUF r_sip_ex_not_connected_txt
       
   505     {
       
   506     buf = sip_ex_not_connected_txt;
       
   507     }
       
   508 
       
   509 RESOURCE TBUF r_sip_ex_not_registered_txt
       
   510     {
       
   511     buf = sip_ex_not_registered_txt;
       
   512     }
       
   513 
       
   514 RESOURCE TBUF r_sip_ex_im_received
       
   515     {
       
   516     buf = sip_ex_im_received;
       
   517     }
       
   518     
       
   519 RESOURCE TBUF r_sip_ex_accept_invitation_dlg_title
       
   520     {
       
   521     buf = sip_ex_accept_invitation_dlg_title;
       
   522     }
       
   523 
       
   524 RESOURCE TBUF r_sip_ex_accept_invitation
       
   525     {
       
   526     buf = sip_ex_accept_invitation;
       
   527     }
       
   528     
       
   529 RESOURCE TBUF r_profile_saved 
       
   530     { 
       
   531     buf = sip_ex_profile_saved;
       
   532     }
       
   533     
       
   534 RESOURCE TBUF r_sip_ex_def_profile_name
       
   535     {
       
   536     buf = sip_ex_sip_provider;
       
   537     }
       
   538 
       
   539 RESOURCE TBUF r_sip_ex_def_username
       
   540     {
       
   541     buf = sip_ex_sip_none;
       
   542     }
       
   543 
       
   544 RESOURCE TBUF r_sip_ex_def_server_address
       
   545     {
       
   546     buf = sip_ex_sip_def_addr;
       
   547     }
       
   548     
       
   549 RESOURCE ARRAY sip_ex_compression_choices
       
   550 	{
       
   551 	items=
       
   552 		{
       
   553 		LBUF {	txt = sip_ex_comp_no;	},
       
   554 		LBUF {	txt = sip_ex_comp_yes;	}
       
   555 		};
       
   556 	}
       
   557 // End of File
       
   558