2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT6_GEN_QSTORAGEINFO_H
|
|
|
|
#define MIQT_QT6_GEN_QSTORAGEINFO_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 QDir;
|
|
|
|
class QStorageInfo;
|
|
|
|
#else
|
|
|
|
typedef struct QDir QDir;
|
|
|
|
typedef struct QStorageInfo QStorageInfo;
|
|
|
|
#endif
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QStorageInfo* QStorageInfo_new();
|
|
|
|
QStorageInfo* QStorageInfo_new2(struct miqt_string path);
|
|
|
|
QStorageInfo* QStorageInfo_new3(QDir* dir);
|
|
|
|
QStorageInfo* QStorageInfo_new4(QStorageInfo* other);
|
2024-10-20 05:21:03 +00:00
|
|
|
void QStorageInfo_OperatorAssign(QStorageInfo* self, QStorageInfo* other);
|
|
|
|
void QStorageInfo_Swap(QStorageInfo* self, QStorageInfo* other);
|
|
|
|
void QStorageInfo_SetPath(QStorageInfo* self, struct miqt_string path);
|
|
|
|
struct miqt_string QStorageInfo_RootPath(const QStorageInfo* self);
|
|
|
|
struct miqt_string QStorageInfo_Device(const QStorageInfo* self);
|
|
|
|
struct miqt_string QStorageInfo_Subvolume(const QStorageInfo* self);
|
|
|
|
struct miqt_string QStorageInfo_FileSystemType(const QStorageInfo* self);
|
|
|
|
struct miqt_string QStorageInfo_Name(const QStorageInfo* self);
|
|
|
|
struct miqt_string QStorageInfo_DisplayName(const QStorageInfo* self);
|
|
|
|
long long QStorageInfo_BytesTotal(const QStorageInfo* self);
|
|
|
|
long long QStorageInfo_BytesFree(const QStorageInfo* self);
|
|
|
|
long long QStorageInfo_BytesAvailable(const QStorageInfo* self);
|
|
|
|
int QStorageInfo_BlockSize(const QStorageInfo* self);
|
|
|
|
bool QStorageInfo_IsRoot(const QStorageInfo* self);
|
|
|
|
bool QStorageInfo_IsReadOnly(const QStorageInfo* self);
|
|
|
|
bool QStorageInfo_IsReady(const QStorageInfo* self);
|
|
|
|
bool QStorageInfo_IsValid(const QStorageInfo* self);
|
|
|
|
void QStorageInfo_Refresh(QStorageInfo* self);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of QStorageInfo* */ QStorageInfo_MountedVolumes();
|
2024-10-20 05:21:03 +00:00
|
|
|
QStorageInfo* QStorageInfo_Root();
|
2024-11-19 06:29:06 +00:00
|
|
|
void QStorageInfo_Delete(QStorageInfo* self, bool isSubclass);
|
2024-10-20 05:21:03 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|