Author: aschnell Date: Mon Mar 16 12:40:20 2009 New Revision: 56133 URL: http://svn.opensuse.org/viewcvs/yast?rev=56133&view=rev Log: - added Event::IsTimeout Modified: trunk/yast2/library/modules/Event.ycp Modified: trunk/yast2/library/modules/Event.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/modules/Event.ycp?rev=56133&r1=56132&r2=56133&view=diff ============================================================================== --- trunk/yast2/library/modules/Event.ycp (original) +++ trunk/yast2/library/modules/Event.ycp Mon Mar 16 12:40:20 2009 @@ -96,6 +96,20 @@ /** + * Checks that the EventType is TimeoutEvent. + * + * return id or nil. + */ + global symbol IsTimeout(map event) + { + if (event["EventType"]:"Unknown" != "TimeoutEvent") + return nil; + + return event["ID"]:(symbol)(nil); + } + + + /** * Checks that the EventType is CancelEvent. * * return id or nil. -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org