-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathContentResolver.h
More file actions
49 lines (37 loc) · 1.54 KB
/
Copy pathContentResolver.h
File metadata and controls
49 lines (37 loc) · 1.54 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
//----------------------------------------------------------------------
//
//----------------------------------------------------------------------
#ifndef __ContentResolver__
#define __ContentResolver__
//----------------------------------------------------------------------
//
//----------------------------------------------------------------------
#include <QObject>
#include <QVariant>
#include <QAndroidJniObject>
#include <QAndroidJniEnvironment>
#include "AndroidObject.h"
#include "InputStream.h"
//----------------------------------------------------------------------
//
//----------------------------------------------------------------------
class ContentResolver : public AndroidObject
{
public:
ContentResolver(QAndroidJniEnvironment& env);
ContentResolver(ContentResolver& other);
ContentResolver(ContentResolver&& other);
static const char* JCLASS;
QStringList query(const QString& uri, const QString& columnName);
QString queryForString(const QString& uri, const QString& columnName);
qint64 queryForLongLong(const QString& uri, const QString& columnName, qint64 defaultValue);
InputStream openInputStream(const QString& uri);
static QAndroidJniObject contentResolver(QAndroidJniEnvironment& env);
};
//----------------------------------------------------------------------
//
//----------------------------------------------------------------------
#endif
//----------------------------------------------------------------------
//
//----------------------------------------------------------------------