aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/BackgroundWorker.h
blob: d50612fa98ba0bcfb99142aa5774a67920195f19 (plain)
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
//===========================================
//  Lumina-DE source code
//  Copyright (c) 2014, Ken Moore
//  Available under the 3-clause BSD license
//  See the LICENSE file for full details
//===========================================
//  This is the background class for running long-lived calculations
//===========================================
#ifndef _LUMINA_FILE_MANAGER_BACKGROUND_WORKER_H
#define _LUMINA_FILE_MANAGER_BACKGROUND_WORKER_H

#include <QObject>
#include <QStringList>
#include <QString>
#include <QFileInfo>
#include <QDir>
#include <QDateTime>

#include <LuminaOS.h>


class BackgroundWorker : public QObject{
	Q_OBJECT
public:
	BackgroundWorker();
	~BackgroundWorker();
		
private:
	QStringList multiFilter, imgFilter;
	QString cdir, csnapdir; //last directory checked (and base snapshot dir found)
	QString ItemsInstatusBar(QFileInfoList, QString);

public slots:
	//Kickoff processes with these slots
        // and then listen for the appropriate signals when finished
	void startDirChecks(QString path);
	void createStatusBarMsg(QFileInfoList fileList, QString path, QString message);

signals:
	void ImagesAvailable(QStringList files);
	void MultimediaAvailable(QStringList files);
	void SnapshotsAvailable(QString basedir, QStringList snappaths);
	void Si_DisplayStatusBar(QString);
	
};

#endif
bgstack15