JQDialogBridge.h

00001 /*
00002  * @(#)JQDialogBridge.h  0.2.0 / 2007-11-29
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 JQDIALOGBRIDGE_H
00010 #define JQDIALOGBRIDGE_H
00011 
00012 #include "JavaQxQSwing.h"
00013 
00014 #include "JQWindowBridge.h"
00015 
00016 /*^**************************************************************************^*/
00017 /*- JQDialogBridge Class.                                                    -*/
00018 /*^**************************************************************************^*/
00019 
00026 class JAVAQX_EXPORT JQDialogBridge : public JQWindowBridge
00027 {
00028   Q_OBJECT
00029 protected:
00030   JQDialogBridge(JNIEnv *env, jobject obj);
00031 public slots: // native calls
00032   jint exec(JNIEnv *env);
00033   void done(JNIEnv *env, jint result);
00034 public: // native calls
00035   static jlong newInstance(JNIEnv *env, jobject obj);
00036 public:
00037   inline QDialog *qDialog() const;
00038 };
00039 
00040 /*^**************************************************************************^*/
00041 /*- JQDialogBridge :: Public Inline Member Function.                         -*/
00042 /*^**************************************************************************^*/
00043 
00049 inline QDialog *JQDialogBridge::qDialog() const
00050 {
00051   return static_cast<QDialog *>(qObject());
00052 }
00053 
00054 /*^**************************************************************************^*/
00055 /*- Macro Definition.                                                        -*/
00056 /*^**************************************************************************^*/
00057 
00058 #define jqDialogBridge (reinterpret_cast<JQDialogBridge *>(bridge))
00059 
00060 #endif //JQDIALOGBRIDGE_H
00061 
00062 /*^*****************************************************************************
00063   File History:
00064 
00065  - 2007-11-29 10:26:17 Slobodan
00066    Initial version
00067 
00068 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.