-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathimportfileprocessor.h
44 lines (37 loc) · 1.16 KB
/
importfileprocessor.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
/** @file importfileprocessor.h
* Hlavickovy soubor tridy ImportFileProcessor dedici ze tridy QObject
* , slouží pro import fotografií
*/
#ifndef IMPORTFILEPROCESSOR_H
#define IMPORTFILEPROCESSOR_H
#include <QDir>
#include <QImageReader>
#include <QObject>
#include <QUrl>
#include "gpsrouteslist.h"
#include "importfileprocessor.h"
class ImportFileProcessor : public QObject {
Q_OBJECT
public:
explicit ImportFileProcessor(QObject* parent = 0);
void processDropFile(QString fileName, int recursion);
int importSubdirs;
int idRouteCount;
int idImageCount;
void loadGpsFile(QString fileName);
void loadImageFile(QString fileName);
QStringList* unrecognizedList;
int countFiles(QString);
int countProcessed;
signals:
void importRouteFinished(GpsRoute* gpsRoute);
void importImageFinished(ImageData* imageData);
void finished(QStringList* unrecognizedList);
void setProgressMaximum(int count);
void setProgressValue(int value);
public slots:
void processDropUrls(QList<QUrl>* urlList);
void importImages(QStringList imageList);
void importGpsFiles(QStringList gpsList);
};
#endif // IMPORTFILEPROCESSOR_H