/*===========================================================================
    C++ class definitions exported from UnrealScript.
    This is automatically generated by the tools.
    DO NOT modify this manually! Edit the corresponding .uc files instead!
===========================================================================*/
#if _MSC_VER
#pragma pack (push,4)
#endif

#ifndef SQLMANAGER_API
#define SQLMANAGER_API DLL_IMPORT
#endif

#ifndef NAMES_ONLY
#define AUTOGENERATE_NAME(name) extern SQLMANAGER_API FName SQLMANAGER_##name;
#define AUTOGENERATE_FUNCTION(cls,idx,name)
#endif
//Includes
#include "mysql.h"

#ifndef NAMES_ONLY

#define UCONST_CON_NOCON 0xFF
#define UCONST_CON_UNK 0x80
#define UCONST_CON_NOINIT 0x40
#define UCONST_QUR_NORES 0x20
#define UCONST_QUR_UNK 0x10
#define UCONST_CON_NODB 0x08
#define UCONST_CON_WRPSW 0x04
#define UCONST_CON_WRUSR 0x02
#define UCONST_CON_OK 0x00

class SQLMANAGER_API USqlManager : public UObject
{
	private:
	MYSQL *newSQL;
	MYSQL_RES *result;
	MYSQL_ROW row;
	bool bIsIterating;
public:
    BITFIELD bInitialized:1 GCC_PACK(4);
    BITFIELD bConnected:1;
    BITFIELD bLogErrors:1;
    DECLARE_FUNCTION(execResults);
    DECLARE_FUNCTION(execGetNumRows);
    DECLARE_FUNCTION(execGetNumColumns);
    DECLARE_FUNCTION(execGetColumn);
    DECLARE_FUNCTION(execQuery);
    DECLARE_FUNCTION(execSetDatabase);
    DECLARE_FUNCTION(execConnect);
    DECLARE_FUNCTION(execInit);
    DECLARE_FUNCTION(execGetIpToCountry);
    DECLARE_BASE_CLASS(USqlManager,UObject,0|CLASS_Config,SqlManager)
	friend FArchive &operator<<( FArchive& Ar, USqlManager*& Res )
	{ 
		return Ar << *(UObject**)&Res;
	}
		//Destructor redefined
	virtual ~USqlManager()
	{	
		mysql_close(newSQL);
		ConditionalDestroy();
	}
	static void InternalConstructor( void* X )
	{ 
		new( (EInternal*)X )USqlManager(); 
	}
    //NO_DEFAULT_CONSTRUCTOR(USqlManager)
	//Mimc a default construcor
	USqlManager()
	{
		bIsIterating = false;
	}
};

#endif

AUTOGENERATE_FUNCTION(USqlManager,2055,execResults);
AUTOGENERATE_FUNCTION(USqlManager,2059,execGetNumRows);
AUTOGENERATE_FUNCTION(USqlManager,2058,execGetNumColumns);
AUTOGENERATE_FUNCTION(USqlManager,2057,execGetColumn);
AUTOGENERATE_FUNCTION(USqlManager,2054,execQuery);
AUTOGENERATE_FUNCTION(USqlManager,2053,execSetDatabase);
AUTOGENERATE_FUNCTION(USqlManager,2052,execConnect);
AUTOGENERATE_FUNCTION(USqlManager,2051,execInit);
AUTOGENERATE_FUNCTION(USqlManager,2050,execGetIpToCountry);

#ifndef NAMES_ONLY
#undef AUTOGENERATE_NAME
#undef AUTOGENERATE_FUNCTION
#endif NAMES_ONLY

#if _MSC_VER
#pragma pack (pop)
#endif
