JQTimerBridge Class Reference

JQTimer Bridge. More...

#include <JQTimerBridge.h>

List of all members.

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.


Detailed Description

JQTimer Bridge.

Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)
Version:
0.2.0

Constructor & Destructor Documentation

JQTimerBridge::JQTimerBridge ( JNIEnv *  env,
jobject  obj,
jint  delay,
jint  initialDelay,
jboolean  singleShot 
) [protected]

Constructs new JQTimerBridge object.

Parameters:
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


Member Function Documentation

void JQTimerBridge::destroy ( JNIEnv *  env  )  [slot]

Destroys the bridge object.

Parameters:
env the JNIEnv pointer

void JQTimerBridge::setInterval ( JNIEnv *  env,
jint  interval 
) [slot]

Sets timer interval.

Parameters:
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.

Parameters:
env the JNIEnv pointer
singleShot if true the timer is single shot-timer

void JQTimerBridge::initialize ( JNIEnv *  env,
jclass  cls 
) [static]

Initializes JQTimerBridge class.

Parameters:
env the JNIEnv pointer
cls the JavaQx JQTimer class
Exceptions:
FatalError if failed

jlong JQTimerBridge::newInstance ( JNIEnv *  env,
jobject  obj,
jint  delay,
jint  initialDelay,
jboolean  singleShot 
) [static]

Returns new instance of the bridge object.

Parameters:
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
Returns:
new instance of the bridge object.


Copyright © 2007 ETF and contributors. All Rights Reserved.