#include <JQTimerBridge.h>
Public Slots | |
void | destroy (JNIEnv *env) |
Destroys the bridge object. | |
void | setInterval (JNIEnv *env, jint interval) |
Sets timer interval. | |
void | setSingleShot (JNIEnv *env, jboolean singleShot) |
Sets whether or not the timer is single shot-timer. | |
Static Public Member Functions | |
static void | initialize (JNIEnv *env, jclass cls) |
Initializes JQTimerBridge class. | |
static jlong | newInstance (JNIEnv *env, jobject obj, jint delay, jint initialDelay, jboolean singleShot) |
Returns new instance of the bridge object. | |
Protected Slots | |
void | timeout () |
Calls timeout method of the JQTimer object. | |
Protected Member Functions | |
JQTimerBridge (JNIEnv *env, jobject obj, jint delay, jint initialDelay, jboolean singleShot) | |
Constructs new JQTimerBridge object. | |
virtual | ~JQTimerBridge () |
Destructs JQTimerBridge object. |
JQTimerBridge::JQTimerBridge | ( | JNIEnv * | env, | |
jobject | obj, | |||
jint | delay, | |||
jint | initialDelay, | |||
jboolean | singleShot | |||
) | [protected] |
Constructs new JQTimerBridge object.
env | the JNIEnv pointer | |
obj | the QSwing timer object | |
delay | the number of milliseconds between timer events | |
initialDelay | the initial delay | |
singleShot | true if the timer is single-shot timer |
void JQTimerBridge::destroy | ( | JNIEnv * | env | ) | [slot] |
Destroys the bridge object.
env | the JNIEnv pointer |
void JQTimerBridge::setInterval | ( | JNIEnv * | env, | |
jint | interval | |||
) | [slot] |
Sets timer interval.
env | the JNIEnv pointer | |
interval | the timer interval |
void JQTimerBridge::setSingleShot | ( | JNIEnv * | env, | |
jboolean | singleShot | |||
) | [slot] |
Sets whether or not the timer is single shot-timer.
env | the JNIEnv pointer | |
singleShot | if true the timer is single shot-timer |
void JQTimerBridge::initialize | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Initializes JQTimerBridge class.
env | the JNIEnv pointer | |
cls | the JavaQx JQTimer class |
FatalError | if failed |
jlong JQTimerBridge::newInstance | ( | JNIEnv * | env, | |
jobject | obj, | |||
jint | delay, | |||
jint | initialDelay, | |||
jboolean | singleShot | |||
) | [static] |
Returns new instance of the bridge object.
env | the JNIEnv pointer | |
obj | the JavaQx JQTimer object | |
delay | the number of milliseconds between timer events | |
initialDelay | the initial delay | |
singleShot | true if the timer is single-shot timer |