Symbian 平台上活动对象的一个实例。
源代码在线查看: myclock.rss
/*
============================================================================
Name : MyClock.rss
Author :
Copyright : Your copyright notice
Description : This file contains all the resources for the MyClock.
============================================================================
*/
// RESOURCE IDENTIFIER
NAME MYCL // 4 letter ID
// INCLUDES
#include
#include "MyClock.hrh"
#include "MyClock.loc"
#include
#include
#include
// RESOURCE DEFINITIONS
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf = "MyClock"; }
RESOURCE EIK_APP_INFO
{
hotkeys = r_MyClock_hotkeys;
// menubar = r_MyClock_menubar;
cba = r_timer_softkey_set_exit;
}
//----------------------------------------------------
//
// r_MyClock_hotkeys
//
//----------------------------------------------------
//
RESOURCE HOTKEYS r_MyClock_hotkeys
{
control =
{
HOTKEY { command = EAknCmdExit; key='e'; }
};
}
RESOURCE CBA r_timer_softkey_set_exit
{
buttons =
{
CBA_BUTTON
{
id = ETimerCmdSet;
txt = qtn_appl_set;
},
CBA_BUTTON
{
id = EEikCmdExit;
txt = qtn_appl_exit;
}
};
}
RESOURCE CBA r_timer_softkey_empty_cancel
{
buttons =
{
CBA_BUTTON
{
id = ETimerCmdEmpty;
txt = qtn_appl_empty;
},
CBA_BUTTON
{
id = ETimerCmdCancel;
txt = qtn_appl_cancel;
}
};
}
//----------------------------------------------------
//
// r_MyClock_menubar
//
//----------------------------------------------------
//
/*RESOURCE MENU_BAR r_MyClock_menubar
{
titles =
{
MENU_TITLE { menu_pane = r_MyClock_menu; txt = "File"; }
};
}*/
//----------------------------------------------------
//
// r_MyClock_menu
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_MyClock_menu
{
items =
{
MENU_ITEM { command = EMyClockCmdAppTest; txt = qtn_appl_test; },
MENU_ITEM { command = EAknCmdExit; txt = qtn_appl_exit; }
};
}
RESOURCE DIALOG r_timer_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_DATA_QUERY
{
layout = EDurationLayout;
label = qtn_appl_query;
control = DURATION_EDITOR
{
minDuration = DURATION
{
seconds = 0;
};
maxDuration = DURATION
{
seconds = 3599;
};
flags = EEikTimeWithoutHoursField;
};
};
}
};
}
RESOURCE TBUF r_timer_confirmation { buf = qtn_appl_confirmation;}