00001 /* 00002 * @(#)QStringListAdapter.h 0.2.0 / 2007-09-07 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 QSTRINGLISTADAPTER_H 00010 #define QSTRINGLISTADAPTER_H 00011 00012 #include "JavaQxCommon.h" 00013 00014 #include <QStringList> 00015 00016 /*^**************************************************************************^*/ 00017 /*- QStringListAdapter Class. -*/ 00018 /*^**************************************************************************^*/ 00019 00026 class JAVAQX_EXPORT QStringListAdapter : public QStringList 00027 { 00028 public: 00029 QStringListAdapter(JNIEnv *env, jobjectArray stringArray); 00030 public: 00031 static jobjectArray toJStringArray(JNIEnv *env, 00032 const QStringList &stringList); 00033 }; 00034 00035 #endif // QSTRINGLISTADAPTER_H 00036 00037 /*^***************************************************************************** 00038 File History: 00039 00040 - 2007-09-07 18:03:23 Slobodan 00041 Initial version 00042 00043 *****************************************************************************^*/