//udp.rss file
NAME SOCK
//#include<eikctrls.hrh>
//#include<ukion.hrh>
//#include<avkon.hrh>

#include <eikon.rh>
#include <eikon.rsg>
#include "udp.hrh"
#include<qiknumbereditor.h >
#include<qiknumericeditor.h >
#include<coecntrl.h>


RESOURCE RSS_SIGNATURE { }

RESOURCE TBUF { buf=""; }

RESOURCE EIK_APP_INFO
{
menubar=r_udp_menubar;
hotkeys=r_udp_hotkeys;
cba = r_main_cba;
}

RESOURCE HOTKEYS r_udp_hotkeys
{
control=
{
HOTKEY { command=EEikCmdExit; key='e'; },
HOTKEY { command=ESocketStart; key='s'; },
HOTKEY { command=ESocketStop; key='f'; },
HOTKEY { command=ESocketOptions; key='o'; },
HOTKEY { command=ESocketClearScreen; key='c'; }
};
}

RESOURCE MENU_BAR r_udp_menubar
{
titles=
{
MENU_TITLE { menu_pane=r_udp_file_menu; txt="File"; },
MENU_TITLE { menu_pane=r_udp_tools_menu; txt="Tools"; },
MENU_TITLE { menu_pane=r_udp_console_menu; txt="Console"; },
MENU_TITLE { menu_pane=r_udp_help_menu; txt="Help"; }
};
}

RESOURCE MENU_PANE r_udp_file_menu
{
items=
{
MENU_ITEM { command=EEikCmdExit; txt="Close"; }
};
}

RESOURCE MENU_PANE r_udp_tools_menu
{
items=
{
MENU_ITEM { command=ESocketStart; txt="Start"; },
MENU_ITEM { command=ESocketStop; txt="Stop"; },
MENU_ITEM { command=ESocketOptions; txt="Options…"; }
};
}

RESOURCE MENU_PANE r_udp_console_menu
{
items=
{
MENU_ITEM
{
command=ESocketClearScreen;
txt="Clear screen";
}
};
}

RESOURCE MENU_PANE r_udp_help_menu
{
items=
{
MENU_ITEM
{
command=ESocketAbout;
txt="About udp…";
}
};
}


/*RESOURCE CBA r_main_cba
{
breadth=80;
buttons=
{
CBA_BUTTON
{
id=ESocketStart;
txt="Start";
bmpfile="";
bmpid=0xffff;
},
CBA_BUTTON
{
id=ESocketStop;
txt="Stop";
bmpfile="";
bmpid=0xffff;
},
CBA_BUTTON
{
id=ESocketOptions;
txt="Options";
bmpfile="";
bmpid=0xffff;
},
CBA_BUTTON
{
id=EEikCmdExit;
txt="Close";
bmpfile="";
bmpid=0xffff;
}
};
}*/
/*
RESOURCE DLG_BUTTONS r_eik_buttons_send_ok
{
buttons=
{
DLG_BUTTON { id=ESocketSendButton; button=CMBUT {txt="Send";}; hotkey='H'; flags=0;},
DLG_BUTTON { id=EEikBidOk; button=CMBUT {txt="Close";}; hotkey=EEikBidOk; }
};
}
*/
/*RESOURCE DIALOG r_udp_options_dialog
{
title="Udp Options";
buttons=R_EIK_BUTTONS_CANCEL_OK;
flags=EEikDialogFlagWait|EEikDialogFlagDensePacking;
items=
{
DLG_LINE
{
type=EEikCtChoiceList;
prompt="Protocol";
id=EProtocol;
control=CHOICELIST
{
array_id=r_protocol_list;
};
},
DLG_LINE
{
type=EEikCtNumberEditor;
prompt="Local Port";
id=ELocalPort;
control=NUMBER_EDITOR
{
min= 1;
max= 65535;
};
},
DLG_LINE
{
type=EEikCtNumberEditor;
prompt="Remote Port";
id=ERemotePort;
control=NUMBER_EDITOR
{
min= 1;
max= 65535;
};
},
DLG_LINE
{
type=EEikCtEdwin;
prompt="Remote Address";
id=ERemoteAddr;
control=NUMBER_EDITOR { maxlength=59; width=20; lines=1; };
},
DLG_LINE
{
type=EAknCtIntegerEdwin;
prompt="Loop Count";
id=ECount;
control=NUMBER_EDITOR
{
min= 0;
max= 9998;
};
},
DLG_LINE
{
type=EAknCtIntegerEdwin;
prompt="Packet Size";
id=EPacketSize;
control=NUMBER_EDITOR
{
min= 1;
max= 8192;
};
},
DLG_LINE
{
type=EEikCtChoiceList;
prompt="Trace";
id=ETrace;
control=CHOICELIST
{
array_id=r_yesno_list;
};
}
};
}*/

RESOURCE ARRAY r_protocol_list
{
items=
{
LBUF { txt="UDP"; }
};
}

RESOURCE ARRAY r_yesno_list
{
items=
{
LBUF { txt="No"; },
LBUF { txt="Yes"; }
};
}

RESOURCE TBUF r_udp_net_open_error { buf="Error opening Network"; }
RESOURCE TBUF r_not_implemented { buf="Not available yet"; }
RESOURCE TBUF r_busy { buf="Running"; }

RESOURCE DIALOG r_udp_about
{
title="About Udp";
buttons=R_EIK_BUTTONS_CANCEL_OK;
flags=EEikDialogFlagWait|EEikDialogFlagDensePacking;
items=
{
DLG_LINE
{
type=EEikCtLabel;
prompt="";
control=LABEL
{
txt=" ";
};
},
DLG_LINE
{
type=EEikCtLabel;
prompt="";
control=LABEL
{
txt="Udp for EPOC32";
};
},
DLG_LINE
{
type=EEikCtLabel;
prompt="";
control=LABEL
{
txt="By Phong Vu";
};
},
DLG_LINE
{
type=EEikCtLabel;
prompt="";
control=LABEL
{
txt="";
};
},
DLG_LINE
{
type=EEikCtLabel;
prompt="";
control=LABEL
{
txt="COPYRIGHT NSVAS";
};
},
DLG_LINE
{
type=EEikCtLabel;
prompt="";
control=LABEL
{
txt="SECF";
};
},
DLG_LINE
{
type=EEikCtLabel;
prompt="";
control=LABEL
{
txt="The Developer Community";
};
}
};
}