00001 /* 00002 * @(#)QSwingString.h 0.2.0 / 2007-08-21 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 QSWINGSTRING_H 00010 #define QSWINGSTRING_H 00011 00012 #include "JavaQxCore.h" 00013 #include "JNIQSwingWrapper.h" 00014 00015 /*^**************************************************************************^*/ 00016 /*- QSwingString Class. -*/ 00017 /*^**************************************************************************^*/ 00018 00025 class JAVAQX_EXPORT QSwingString : public QStringAdapter 00026 { 00027 public: 00028 inline QSwingString(jstring str); 00029 public: 00030 static jstring toJString(const QString &str); 00031 }; 00032 00033 /*^**************************************************************************^*/ 00034 /*- QSwingString :: Inline Constructor. -*/ 00035 /*^**************************************************************************^*/ 00036 00042 inline QSwingString::QSwingString(jstring str) 00043 : QStringAdapter(QSWING_ENV, str) 00044 { 00045 // empty body 00046 } 00047 00048 #endif // QSWINGSTRING_H 00049 00050 /*^***************************************************************************** 00051 File History: 00052 00053 - 2007-08-21 19:01:09 Slobodan 00054 Initial version 00055 00056 *****************************************************************************^*/