forked from stephenquan/DocumentDialogApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileFolderPrivateAndroid.h
More file actions
52 lines (38 loc) · 1.8 KB
/
Copy pathFileFolderPrivateAndroid.h
File metadata and controls
52 lines (38 loc) · 1.8 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//----------------------------------------------------------------------
//
//----------------------------------------------------------------------
#ifndef __FileFolderPrivateAndroid2__
#define __FileFolderPrivateAndroid2__
//----------------------------------------------------------------------
//
//----------------------------------------------------------------------
#include <QObject>
#include <QVariant>
#include <QAndroidJniEnvironment>
#include "FileFolderPrivate.h"
#include "DocumentFile.h"
//----------------------------------------------------------------------
//
//----------------------------------------------------------------------
class FileFolderPrivateAndroid : public FileFolderPrivate
{
Q_OBJECT
public:
FileFolderPrivateAndroid(QObject* parent = nullptr);
virtual QStringList fileNames(const QVariant& nameFilter = QStringLiteral("*"), bool subFolders = false) const Q_DECL_OVERRIDE;
virtual QStringList folderNames(const QVariant& nameFilter = QStringLiteral("*"), bool subFolders = false) const Q_DECL_OVERRIDE;
virtual QString filePath(const QString& fileName) const Q_DECL_OVERRIDE;
virtual QVariant fileUrl(const QString& fileName) const Q_DECL_OVERRIDE;
void names(QAndroidJniEnvironment& env, QStringList& entryList, const QString& uri, const QVariant&nameFilter, const bool recurse, bool files) const;
virtual QVariant url() const Q_DECL_OVERRIDE;
virtual void setUrl(const QVariant& url) Q_DECL_OVERRIDE;
protected:
DocumentFile* m_DocumentFile;
};
//----------------------------------------------------------------------
//
//----------------------------------------------------------------------
#endif
//----------------------------------------------------------------------
//
//----------------------------------------------------------------------