JQContainerBridge.h

00001 /*
00002  * @(#)JQContainerBridge.h  0.2.0 / 2007-10-27
00003  *
00004  * Copyright (c) 2007, ETF and contributors. All rights reserved.
00005  *
00006  * This software is licensed under the LGPL, version 2.1, license.
00007  * A copy of the license is included in the file LICENSE-LGPL.txt.
00008  */
00009 #ifndef JQCONTAINERBRIDGE_H
00010 #define JQCONTAINERBRIDGE_H
00011 
00012 #include "JavaQxQSwing.h"
00013 
00014 #include "JQComponentBridge.h"
00015 
00016 /*^**************************************************************************^*/
00017 /*- JQContainerBridge Class.                                                 -*/
00018 /*^**************************************************************************^*/
00019 
00026 class JAVAQX_EXPORT JQContainerBridge : public JQComponentBridge
00027 {
00028   Q_OBJECT
00029 protected:
00030   JQContainerBridge(JNIEnv *env, jobject obj, QWidget *widget);
00031   JQContainerBridge(JNIEnv *env, jobject obj);
00032 public slots: // native calls
00033   void insertChild(JNIEnv *env, jlong childBridge, jint index);
00034   void removeChild(JNIEnv *env, jlong childBridge);
00035   void validate(JNIEnv *env);
00036 public: // native calls
00037   static void initialize(JNIEnv *env, jclass cls);
00038   static jlong newInstance(JNIEnv *env, jobject obj);
00039 protected slots:
00040   void validateSlot();
00041 signals:
00042   void validateSignal();
00043 private:
00044   static jmethodID sm_validateMID;
00045 };
00046 
00047 /*^**************************************************************************^*/
00048 /*- Macro Definitions.                                                       -*/
00049 /*^**************************************************************************^*/
00050 
00051 #define jqContainerCast(bridge) (reinterpret_cast<JQContainerBridge *>(bridge))
00052 #define jqContainerBridge jqContainerCast(bridge)
00053 
00054 #endif //JQCONTAINERBRIDGE_H
00055 
00056 /*^*****************************************************************************
00057   File History:
00058 
00059  - 2007-10-27 14:34:00 Slobodan
00060    Initial version
00061 
00062 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.