2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QRESOURCE_H
|
|
|
|
#define GEN_QRESOURCE_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "binding.h"
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QByteArray;
|
|
|
|
class QDateTime;
|
|
|
|
class QLocale;
|
|
|
|
class QResource;
|
|
|
|
#else
|
|
|
|
typedef struct QByteArray QByteArray;
|
|
|
|
typedef struct QDateTime QDateTime;
|
|
|
|
typedef struct QLocale QLocale;
|
|
|
|
typedef struct QResource QResource;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QResource* QResource_new();
|
2024-09-14 22:29:05 +00:00
|
|
|
QResource* QResource_new2(struct miqt_string* file);
|
|
|
|
QResource* QResource_new3(struct miqt_string* file, QLocale* locale);
|
|
|
|
void QResource_SetFileName(QResource* self, struct miqt_string* file);
|
|
|
|
struct miqt_string* QResource_FileName(const QResource* self);
|
|
|
|
struct miqt_string* QResource_AbsoluteFilePath(const QResource* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QResource_SetLocale(QResource* self, QLocale* locale);
|
2024-09-11 05:41:09 +00:00
|
|
|
QLocale* QResource_Locale(const QResource* self);
|
|
|
|
bool QResource_IsValid(const QResource* self);
|
|
|
|
uintptr_t QResource_CompressionAlgorithm(const QResource* self);
|
|
|
|
long long QResource_Size(const QResource* self);
|
|
|
|
const unsigned char* QResource_Data(const QResource* self);
|
|
|
|
long long QResource_UncompressedSize(const QResource* self);
|
|
|
|
QByteArray* QResource_UncompressedData(const QResource* self);
|
|
|
|
QDateTime* QResource_LastModified(const QResource* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
void QResource_AddSearchPath(struct miqt_string* path);
|
|
|
|
struct miqt_array* QResource_SearchPaths();
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QResource_IsCompressed(const QResource* self);
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QResource_RegisterResource(struct miqt_string* rccFilename);
|
|
|
|
bool QResource_UnregisterResource(struct miqt_string* rccFilename);
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QResource_RegisterResourceWithRccData(const unsigned char* rccData);
|
|
|
|
bool QResource_UnregisterResourceWithRccData(const unsigned char* rccData);
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QResource_RegisterResource2(struct miqt_string* rccFilename, struct miqt_string* resourceRoot);
|
|
|
|
bool QResource_UnregisterResource2(struct miqt_string* rccFilename, struct miqt_string* resourceRoot);
|
|
|
|
bool QResource_RegisterResource22(const unsigned char* rccData, struct miqt_string* resourceRoot);
|
|
|
|
bool QResource_UnregisterResource22(const unsigned char* rccData, struct miqt_string* resourceRoot);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QResource_Delete(QResource* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|