17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
+
+
|
#import "OFObject.h"
#ifdef OF_HAVE_BLOCKS
typedef void (^of_timer_block_t)(void);
#endif
@class OFDate;
@class OFCondition;
/**
* \brief A class for creating and firing timers.
*/
@interface OFTimer: OFObject <OFComparing>
{
OFDate *fireDate;
double interval;
id target, object1, object2;
SEL selector;
uint8_t arguments;
BOOL repeats;
#ifdef OF_HAVE_BLOCKS
of_timer_block_t block;
#endif
BOOL isValid;
OFCondition *condition;
}
/**
* \brief Creates and schedules a new timer with the specified time interval.
*
* \param interval The time interval after which the timer should be executed
* when fired
|
280
281
282
283
284
285
286
287
|
282
283
284
285
286
287
288
289
290
291
292
293
294
|
+
+
+
+
+
|
* \brief Returns the time interval in which the timer will repeat, if it is a
* repeating timer.
*
* \return The time interval in which the timer will repeat, if it is a
* repeating timer
*/
- (double)timeInterval;
/**
* \brief Waits until the timer fired.
*/
- (void)waitUntilDone;
@end
|