PDA

View Full Version : Need suggestions or sample codes for this (Mobile Timer)



Sunforever0220
17 Mar 2011, 6:05 AM
Specification:Different break times of 15mins, 30mins and 45mins are available for user to choose
Pseudo code: Set breakTime = 15mins/30mins/45mins
User chooses the option of break times and extra break times from 1min to 5min.
If 15mins/30mins/45mins is chosen
Switch (n)//n from 1 to 5
Case 1: set timer for 15mins/30mins/45mins + 1mins,
Case 2: set timer for 15mins/30mins/45mins + 2mins;
Case 3: set timer for 15mins/30mins/45mins + 3mins;
Case 4: set timer for 15mins/30mins/45mins + 4mins;
Case 5: set timer for 15mins/30mins/45mins + 5mins;
The timer should be set after user chosen the break time.

PS: This could be designed as a timepicker, but in the "datepicker" sample code it directly refer to Ext.datepicker class.