Timer.h

Go to the documentation of this file.
00001 #ifndef JAVA_UTIL_TIMER_H
00002 #define JAVA_UTIL_TIMER_H 1
00003 
00004 #ifndef JAVA_UTIL_TIMERTASK_H
00005 #include <java_util/TimerTask.h>
00006 #endif /* JAVA_UTIL_TIMERTASK_H */
00007 #ifndef JAVA_UTIL_DATE_H
00008 #include <java_util/Date.h>
00009 #endif /* JAVA_UTIL_DATE_H */
00010 
00011 namespace java {
00012   namespace util {
00013 
00059     class JAVA_UTIL_SPEC Timer : virtual public Object {
00060 
00061     public:
00062 
00066       Timer();
00067 
00098       virtual void schedule(const Ref<TimerTask>& task, jlong delay, jlong period = 0);
00099 
00129       virtual void schedule(const Ref<TimerTask>& task, const Date& firstTime, jlong period = 0);
00130 
00162       virtual void scheduleAtFixedRate(const Ref<TimerTask>& task, jlong delay, jlong period = 0);
00163 
00194       virtual void scheduleAtFixedRate(const Ref<TimerTask>& task, const Date& firstTime, jlong period = 0);
00195 
00210       virtual void cancel();
00211 
00212     private:
00213 
00214       ObjectRef impl;
00215       REGISTER_MEMBERS;
00216 
00217     };
00218 
00219   } // namespace util
00220 } // namespace java
00221 
00222 #endif /* JAVA_UTIL_TIMER_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3