mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
55 lines
1.9 KiB
C++
55 lines
1.9 KiB
C++
#ifndef GEN_QSTORAGEINFO_H
|
|
#define GEN_QSTORAGEINFO_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
class QByteArray;
|
|
class QDir;
|
|
class QStorageInfo;
|
|
#else
|
|
typedef struct QByteArray QByteArray;
|
|
typedef struct QDir QDir;
|
|
typedef struct QStorageInfo QStorageInfo;
|
|
#endif
|
|
|
|
QStorageInfo* QStorageInfo_new();
|
|
QStorageInfo* QStorageInfo_new2(const char* path, size_t path_Strlen);
|
|
QStorageInfo* QStorageInfo_new3(QDir* dir);
|
|
QStorageInfo* QStorageInfo_new4(QStorageInfo* other);
|
|
void QStorageInfo_OperatorAssign(QStorageInfo* self, QStorageInfo* other);
|
|
void QStorageInfo_Swap(QStorageInfo* self, QStorageInfo* other);
|
|
void QStorageInfo_SetPath(QStorageInfo* self, const char* path, size_t path_Strlen);
|
|
void QStorageInfo_RootPath(QStorageInfo* self, char** _out, int* _out_Strlen);
|
|
QByteArray* QStorageInfo_Device(QStorageInfo* self);
|
|
QByteArray* QStorageInfo_Subvolume(QStorageInfo* self);
|
|
QByteArray* QStorageInfo_FileSystemType(QStorageInfo* self);
|
|
void QStorageInfo_Name(QStorageInfo* self, char** _out, int* _out_Strlen);
|
|
void QStorageInfo_DisplayName(QStorageInfo* self, char** _out, int* _out_Strlen);
|
|
long long QStorageInfo_BytesTotal(QStorageInfo* self);
|
|
long long QStorageInfo_BytesFree(QStorageInfo* self);
|
|
long long QStorageInfo_BytesAvailable(QStorageInfo* self);
|
|
int QStorageInfo_BlockSize(QStorageInfo* self);
|
|
bool QStorageInfo_IsRoot(QStorageInfo* self);
|
|
bool QStorageInfo_IsReadOnly(QStorageInfo* self);
|
|
bool QStorageInfo_IsReady(QStorageInfo* self);
|
|
bool QStorageInfo_IsValid(QStorageInfo* self);
|
|
void QStorageInfo_Refresh(QStorageInfo* self);
|
|
void QStorageInfo_MountedVolumes(QStorageInfo*** _out, size_t* _out_len);
|
|
QStorageInfo* QStorageInfo_Root();
|
|
void QStorageInfo_Delete(QStorageInfo* self);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|