2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QMIMEDATABASE_H
|
|
|
|
#define MIQT_QT_GEN_QMIMEDATABASE_H
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2024-08-29 07:01:51 +00:00
|
|
|
class QFileInfo;
|
2024-08-25 04:08:24 +00:00
|
|
|
class QIODevice;
|
|
|
|
class QMimeDatabase;
|
|
|
|
class QMimeType;
|
|
|
|
class QUrl;
|
|
|
|
#else
|
2024-08-29 07:01:51 +00:00
|
|
|
typedef struct QFileInfo QFileInfo;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QIODevice QIODevice;
|
|
|
|
typedef struct QMimeDatabase QMimeDatabase;
|
|
|
|
typedef struct QMimeType QMimeType;
|
|
|
|
typedef struct QUrl QUrl;
|
|
|
|
#endif
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QMimeDatabase* QMimeDatabase_new();
|
2024-10-18 23:53:33 +00:00
|
|
|
QMimeType* QMimeDatabase_MimeTypeForName(const QMimeDatabase* self, struct miqt_string nameOrAlias);
|
|
|
|
QMimeType* QMimeDatabase_MimeTypeForFile(const QMimeDatabase* self, struct miqt_string fileName);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMimeType* QMimeDatabase_MimeTypeForFileWithFileInfo(const QMimeDatabase* self, QFileInfo* fileInfo);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of QMimeType* */ QMimeDatabase_MimeTypesForFileName(const QMimeDatabase* self, struct miqt_string fileName);
|
2024-10-18 23:53:33 +00:00
|
|
|
QMimeType* QMimeDatabase_MimeTypeForData(const QMimeDatabase* self, struct miqt_string data);
|
2024-09-11 05:41:09 +00:00
|
|
|
QMimeType* QMimeDatabase_MimeTypeForDataWithDevice(const QMimeDatabase* self, QIODevice* device);
|
|
|
|
QMimeType* QMimeDatabase_MimeTypeForUrl(const QMimeDatabase* self, QUrl* url);
|
2024-10-18 23:53:33 +00:00
|
|
|
QMimeType* QMimeDatabase_MimeTypeForFileNameAndData(const QMimeDatabase* self, struct miqt_string fileName, QIODevice* device);
|
|
|
|
QMimeType* QMimeDatabase_MimeTypeForFileNameAndData2(const QMimeDatabase* self, struct miqt_string fileName, struct miqt_string data);
|
|
|
|
struct miqt_string QMimeDatabase_SuffixForFileName(const QMimeDatabase* self, struct miqt_string fileName);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of QMimeType* */ QMimeDatabase_AllMimeTypes(const QMimeDatabase* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
QMimeType* QMimeDatabase_MimeTypeForFile2(const QMimeDatabase* self, struct miqt_string fileName, int mode);
|
2024-09-18 00:12:02 +00:00
|
|
|
QMimeType* QMimeDatabase_MimeTypeForFile22(const QMimeDatabase* self, QFileInfo* fileInfo, int mode);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QMimeDatabase_Delete(QMimeDatabase* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|