JavaQxCommon.h

00001 /*
00002  * @(#)JavaQxCommon.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 JAVAQXCOMMON_H
00010 #define JAVAQXCOMMON_H
00011 
00026 /*^**************************************************************************^*/
00027 /*- JavaQxCommon :: Include.                                                 -*/
00028 /*^**************************************************************************^*/
00029 
00030 #include <QGlobalStatic>
00031 #include <QString>
00032 
00033 #include "jni.h"
00034 
00035 /*^**************************************************************************^*/
00036 /*- JavaQxCommon :: Global Definitions.                                      -*/
00037 /*^**************************************************************************^*/
00038 
00039 #define JAVAQX_JNI_VERSION JNI_VERSION_1_4
00040 
00041 #ifdef JAVAQX_LIB
00042   #define JAVAQX_EXPORT Q_DECL_EXPORT
00043 #else
00044   #define JAVAQX_EXPORT
00045 #endif // JAVAQX_LIB
00046 
00047 #ifdef JAVAQX_DEBUG
00048   #include <iostream>
00049   #define sout(string) std::cout << string << std::endl
00050   #define snl std::cout << std::endl
00051   #include <QDebug>
00052 #endif // JAVAQX_DEBUG
00053 
00054 #ifdef USE_PLATFORM_CODE
00055   #ifdef Q_OS_WIN32
00056     #define USE_WIN32_CODE
00057   #endif // Q_OS_WIN32
00058   #ifdef Q_OS_LINUX
00059     #define USE_LINUX_CODE
00060   #endif // Q_OS_LINUX
00061 #endif // USE_PLATFORM_CODE
00062 
00063 #define BEGIN_NAMESPACE_JAVAQX namespace JavaQx {
00064 #define END_NAMESPACE_JAVAQX }
00065 
00066 /*^**************************************************************************^*/
00067 /*- JavaQxCommon :: Global Functions.                                        -*/
00068 /*^**************************************************************************^*/
00069 
00070 BEGIN_NAMESPACE_JAVAQX
00071 
00072 void ErrorMessage(const char *title, const char *message);
00073 
00074 void WarningMessage(const char *title, const char *message);
00075 
00076 void InformationMessage(const char *title, const char *message);
00077 
00078 END_NAMESPACE_JAVAQX
00079 
00080 #endif // JAVAQXCOMMON_H
00081 
00082 /*^*****************************************************************************
00083   File History:
00084 
00085  - 2007-05-20 10:31:11 Slobodan
00086    Initial version
00087 
00088 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.