-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimagefiles.h
45 lines (36 loc) · 863 Bytes
/
imagefiles.h
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
#ifndef IMAGEFILES_H
#define IMAGEFILES_H
#include <QObject>
#include <QStringList>
#include <QList>
#include <QString>
#include <QDir>
#include <QUrl>
#include <QVariant>
#include <QQmlEngine>
#include "myimageprovider.h"
#define IMAGE_BUF_SIZE 1024
class imageFiles : public QObject
{
Q_OBJECT
public:
explicit imageFiles(QObject *parent = 0);
~imageFiles(void);
Q_INVOKABLE QString nextImage(void);
Q_INVOKABLE QString previousImage(void);
void ReadURLs(void);
void setupImageProvider(QQmlEngine *eng);
void readImageURLsFromDisk(QDir d);
signals:
public slots:
private:
MyImageProvider *imageProvider;
QStringList photoUrlList;
int imageCount;
int imagePointer;
QList<int> imagesShown;
quint32 newImagesShown[IMAGE_BUF_SIZE];
int newImagePointer;
QDir topDir;
};
#endif // IMAGEFILES_H