forked from rh-lab-q/confla-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfilereader.h
More file actions
32 lines (20 loc) · 727 Bytes
/
filereader.h
File metadata and controls
32 lines (20 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef FILEREADER_H
#define FILEREADER_H
#include <QObject>
class FileReader : public QObject
{
Q_OBJECT
public:
explicit FileReader(QObject *parent = 0);
Q_INVOKABLE QByteArray read_local(const QString &filename);
Q_INVOKABLE bool file_exists_local(const QString &filename);
Q_INVOKABLE void write_local(const QString &filename, QByteArray data);
Q_INVOKABLE void write(const QUrl &filename, QByteArray data);
Q_INVOKABLE bool file_exists(const QUrl &filename);
Q_INVOKABLE QByteArray read(const QUrl &filename);
Q_INVOKABLE bool is_local_file(const QUrl &filename);
Q_INVOKABLE QString getBasename(const QString fullname);
signals:
public slots:
};
#endif // FILEREADER_H