JQFileChooserBridge.h

00001 /*
00002  * @(#)JQFileChooserBridge.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 JQFILECHOOSERBRIDGE_H
00010 #define JQFILECHOOSERBRIDGE_H
00011 
00012 #include "JavaQxQSwing.h"
00013 
00014 /*^**************************************************************************^*/
00015 /*- JQFileChooserBridge Class.                                               -*/
00016 /*^**************************************************************************^*/
00017 
00024 class JAVAQX_EXPORT JQFileChooserBridge
00025 {
00026 public: // native calls
00027   static jstring getExistingDirectoryName(JNIEnv *env, jclass cls,
00028                                           jlong parentBridge, jstring caption,
00029                                           jstring directory);
00030   static jstring getOpenFileName(JNIEnv *env, jclass cls, jlong parentBridge,
00031                                  jstring caption, jstring directory,
00032                                  jstring filter, jstring selectedFilter);
00033   static jstring getSaveFileName(JNIEnv *env, jclass cls, jlong parentBridge,
00034                                  jstring caption, jstring directory,
00035                                  jstring filter, jstring selectedFilter);
00036 };
00037 
00038 /*^**************************************************************************^*/
00039 /*- Macro Definition.                                                        -*/
00040 /*^**************************************************************************^*/
00041 
00042 #define jqFileChooserBridge (reinterpret_cast<JQFileChooserBridge *>(bridge))
00043 
00044 #endif //JQFILECHOOSERBRIDGE_H
00045 
00046 /*^*****************************************************************************
00047   File History:
00048 
00049  - 2007-11-29 20:15:08 Slobodan
00050    Initial version
00051 
00052 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.