miqt/qt6/gen_qfiledevice.h

68 lines
2.5 KiB
C
Raw Normal View History

#pragma once
#ifndef MIQT_QT6_GEN_QFILEDEVICE_H
#define MIQT_QT6_GEN_QFILEDEVICE_H
2024-10-20 05:21:03 +00:00
#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 QDateTime;
class QFileDevice;
2024-11-19 06:29:06 +00:00
class QIODevice;
class QIODeviceBase;
2024-10-20 05:21:03 +00:00
class QMetaObject;
2024-11-19 06:29:06 +00:00
class QObject;
2024-10-20 05:21:03 +00:00
#else
typedef struct QDateTime QDateTime;
typedef struct QFileDevice QFileDevice;
2024-11-19 06:29:06 +00:00
typedef struct QIODevice QIODevice;
typedef struct QIODeviceBase QIODeviceBase;
2024-10-20 05:21:03 +00:00
typedef struct QMetaObject QMetaObject;
2024-11-19 06:29:06 +00:00
typedef struct QObject QObject;
2024-10-20 05:21:03 +00:00
#endif
2024-12-07 04:15:57 +00:00
void QFileDevice_virtbase(QFileDevice* src, QIODevice** outptr_QIODevice);
2024-10-20 05:21:03 +00:00
QMetaObject* QFileDevice_MetaObject(const QFileDevice* self);
void* QFileDevice_Metacast(QFileDevice* self, const char* param1);
struct miqt_string QFileDevice_Tr(const char* s);
int QFileDevice_Error(const QFileDevice* self);
void QFileDevice_UnsetError(QFileDevice* self);
void QFileDevice_Close(QFileDevice* self);
bool QFileDevice_IsSequential(const QFileDevice* self);
int QFileDevice_Handle(const QFileDevice* self);
struct miqt_string QFileDevice_FileName(const QFileDevice* self);
long long QFileDevice_Pos(const QFileDevice* self);
bool QFileDevice_Seek(QFileDevice* self, long long offset);
bool QFileDevice_AtEnd(const QFileDevice* self);
bool QFileDevice_Flush(QFileDevice* self);
long long QFileDevice_Size(const QFileDevice* self);
bool QFileDevice_Resize(QFileDevice* self, long long sz);
int QFileDevice_Permissions(const QFileDevice* self);
bool QFileDevice_SetPermissions(QFileDevice* self, int permissionSpec);
unsigned char* QFileDevice_Map(QFileDevice* self, long long offset, long long size);
bool QFileDevice_Unmap(QFileDevice* self, unsigned char* address);
QDateTime* QFileDevice_FileTime(const QFileDevice* self, int time);
bool QFileDevice_SetFileTime(QFileDevice* self, QDateTime* newDate, int fileTime);
2024-11-19 06:29:06 +00:00
long long QFileDevice_ReadData(QFileDevice* self, char* data, long long maxlen);
long long QFileDevice_WriteData(QFileDevice* self, const char* data, long long lenVal);
long long QFileDevice_ReadLineData(QFileDevice* self, char* data, long long maxlen);
2024-10-20 05:21:03 +00:00
struct miqt_string QFileDevice_Tr2(const char* s, const char* c);
struct miqt_string QFileDevice_Tr3(const char* s, const char* c, int n);
unsigned char* QFileDevice_Map3(QFileDevice* self, long long offset, long long size, int flags);
2024-11-19 06:29:06 +00:00
void QFileDevice_Delete(QFileDevice* self, bool isSubclass);
2024-10-20 05:21:03 +00:00
#ifdef __cplusplus
} /* extern C */
#endif
#endif