2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_NETWORK_GEN_QNETWORKDISKCACHE_H
|
|
|
|
#define MIQT_QT_NETWORK_GEN_QNETWORKDISKCACHE_H
|
2024-11-04 09:53:04 +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
|
2024-11-19 06:29:06 +00:00
|
|
|
class QAbstractNetworkCache;
|
2024-11-04 09:53:04 +00:00
|
|
|
class QIODevice;
|
|
|
|
class QMetaObject;
|
|
|
|
class QNetworkCacheMetaData;
|
|
|
|
class QNetworkDiskCache;
|
|
|
|
class QObject;
|
|
|
|
class QUrl;
|
|
|
|
#else
|
2024-11-19 06:29:06 +00:00
|
|
|
typedef struct QAbstractNetworkCache QAbstractNetworkCache;
|
2024-11-04 09:53:04 +00:00
|
|
|
typedef struct QIODevice QIODevice;
|
|
|
|
typedef struct QMetaObject QMetaObject;
|
|
|
|
typedef struct QNetworkCacheMetaData QNetworkCacheMetaData;
|
|
|
|
typedef struct QNetworkDiskCache QNetworkDiskCache;
|
|
|
|
typedef struct QObject QObject;
|
|
|
|
typedef struct QUrl QUrl;
|
|
|
|
#endif
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QNetworkDiskCache* QNetworkDiskCache_new();
|
|
|
|
QNetworkDiskCache* QNetworkDiskCache_new2(QObject* parent);
|
|
|
|
void QNetworkDiskCache_virtbase(QNetworkDiskCache* src, QAbstractNetworkCache** outptr_QAbstractNetworkCache);
|
2024-11-04 09:53:04 +00:00
|
|
|
QMetaObject* QNetworkDiskCache_MetaObject(const QNetworkDiskCache* self);
|
|
|
|
void* QNetworkDiskCache_Metacast(QNetworkDiskCache* self, const char* param1);
|
|
|
|
struct miqt_string QNetworkDiskCache_Tr(const char* s);
|
|
|
|
struct miqt_string QNetworkDiskCache_TrUtf8(const char* s);
|
|
|
|
struct miqt_string QNetworkDiskCache_CacheDirectory(const QNetworkDiskCache* self);
|
|
|
|
void QNetworkDiskCache_SetCacheDirectory(QNetworkDiskCache* self, struct miqt_string cacheDir);
|
|
|
|
long long QNetworkDiskCache_MaximumCacheSize(const QNetworkDiskCache* self);
|
|
|
|
void QNetworkDiskCache_SetMaximumCacheSize(QNetworkDiskCache* self, long long size);
|
|
|
|
long long QNetworkDiskCache_CacheSize(const QNetworkDiskCache* self);
|
|
|
|
QNetworkCacheMetaData* QNetworkDiskCache_MetaData(QNetworkDiskCache* self, QUrl* url);
|
|
|
|
void QNetworkDiskCache_UpdateMetaData(QNetworkDiskCache* self, QNetworkCacheMetaData* metaData);
|
|
|
|
QIODevice* QNetworkDiskCache_Data(QNetworkDiskCache* self, QUrl* url);
|
|
|
|
bool QNetworkDiskCache_Remove(QNetworkDiskCache* self, QUrl* url);
|
|
|
|
QIODevice* QNetworkDiskCache_Prepare(QNetworkDiskCache* self, QNetworkCacheMetaData* metaData);
|
|
|
|
void QNetworkDiskCache_Insert(QNetworkDiskCache* self, QIODevice* device);
|
|
|
|
QNetworkCacheMetaData* QNetworkDiskCache_FileMetaData(const QNetworkDiskCache* self, struct miqt_string fileName);
|
|
|
|
void QNetworkDiskCache_Clear(QNetworkDiskCache* self);
|
2024-11-19 06:29:06 +00:00
|
|
|
long long QNetworkDiskCache_Expire(QNetworkDiskCache* self);
|
2024-11-04 09:53:04 +00:00
|
|
|
struct miqt_string QNetworkDiskCache_Tr2(const char* s, const char* c);
|
|
|
|
struct miqt_string QNetworkDiskCache_Tr3(const char* s, const char* c, int n);
|
|
|
|
struct miqt_string QNetworkDiskCache_TrUtf82(const char* s, const char* c);
|
|
|
|
struct miqt_string QNetworkDiskCache_TrUtf83(const char* s, const char* c, int n);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QNetworkDiskCache_override_virtual_CacheSize(void* self, intptr_t slot);
|
|
|
|
long long QNetworkDiskCache_virtualbase_CacheSize(const void* self);
|
|
|
|
void QNetworkDiskCache_override_virtual_MetaData(void* self, intptr_t slot);
|
|
|
|
QNetworkCacheMetaData* QNetworkDiskCache_virtualbase_MetaData(void* self, QUrl* url);
|
|
|
|
void QNetworkDiskCache_override_virtual_UpdateMetaData(void* self, intptr_t slot);
|
|
|
|
void QNetworkDiskCache_virtualbase_UpdateMetaData(void* self, QNetworkCacheMetaData* metaData);
|
|
|
|
void QNetworkDiskCache_override_virtual_Data(void* self, intptr_t slot);
|
|
|
|
QIODevice* QNetworkDiskCache_virtualbase_Data(void* self, QUrl* url);
|
|
|
|
void QNetworkDiskCache_override_virtual_Remove(void* self, intptr_t slot);
|
|
|
|
bool QNetworkDiskCache_virtualbase_Remove(void* self, QUrl* url);
|
|
|
|
void QNetworkDiskCache_override_virtual_Prepare(void* self, intptr_t slot);
|
|
|
|
QIODevice* QNetworkDiskCache_virtualbase_Prepare(void* self, QNetworkCacheMetaData* metaData);
|
|
|
|
void QNetworkDiskCache_override_virtual_Insert(void* self, intptr_t slot);
|
|
|
|
void QNetworkDiskCache_virtualbase_Insert(void* self, QIODevice* device);
|
|
|
|
void QNetworkDiskCache_override_virtual_Clear(void* self, intptr_t slot);
|
|
|
|
void QNetworkDiskCache_virtualbase_Clear(void* self);
|
|
|
|
void QNetworkDiskCache_override_virtual_Expire(void* self, intptr_t slot);
|
|
|
|
long long QNetworkDiskCache_virtualbase_Expire(void* self);
|
|
|
|
void QNetworkDiskCache_Delete(QNetworkDiskCache* self, bool isSubclass);
|
2024-11-04 09:53:04 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|