mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
42 lines
1.4 KiB
C++
42 lines
1.4 KiB
C++
#pragma once
|
|
#ifndef MIQT_QT_SCRIPT_GEN_QSCRIPTPROGRAM_H
|
|
#define MIQT_QT_SCRIPT_GEN_QSCRIPTPROGRAM_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
#include "../../libmiqt/libmiqt.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
class QScriptProgram;
|
|
#else
|
|
typedef struct QScriptProgram QScriptProgram;
|
|
#endif
|
|
|
|
QScriptProgram* QScriptProgram_new();
|
|
QScriptProgram* QScriptProgram_new2(struct miqt_string sourceCode);
|
|
QScriptProgram* QScriptProgram_new3(QScriptProgram* other);
|
|
QScriptProgram* QScriptProgram_new4(struct miqt_string sourceCode, struct miqt_string fileName);
|
|
QScriptProgram* QScriptProgram_new5(struct miqt_string sourceCode, struct miqt_string fileName, int firstLineNumber);
|
|
void QScriptProgram_OperatorAssign(QScriptProgram* self, QScriptProgram* other);
|
|
bool QScriptProgram_IsNull(const QScriptProgram* self);
|
|
struct miqt_string QScriptProgram_SourceCode(const QScriptProgram* self);
|
|
struct miqt_string QScriptProgram_FileName(const QScriptProgram* self);
|
|
int QScriptProgram_FirstLineNumber(const QScriptProgram* self);
|
|
bool QScriptProgram_OperatorEqual(const QScriptProgram* self, QScriptProgram* other);
|
|
bool QScriptProgram_OperatorNotEqual(const QScriptProgram* self, QScriptProgram* other);
|
|
void QScriptProgram_Delete(QScriptProgram* self, bool isSubclass);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|