2012-01-04 22:13:01 +00:00
|
|
|
/* recent_file_status.h
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-07 11:26:45 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2012-01-04 22:13:01 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RECENT_FILE_STATUS_H
|
|
|
|
#define RECENT_FILE_STATUS_H
|
|
|
|
|
2017-12-16 22:24:24 +00:00
|
|
|
#include <QRunnable>
|
2015-03-16 13:51:44 +00:00
|
|
|
#include <QFileInfo>
|
2012-01-04 22:13:01 +00:00
|
|
|
|
2017-12-16 22:24:24 +00:00
|
|
|
class RecentFileStatus : public QObject, public QRunnable
|
2012-01-04 22:13:01 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-12-17 20:51:36 +00:00
|
|
|
RecentFileStatus(const QString filename, QObject *parent);
|
2012-01-04 22:13:01 +00:00
|
|
|
|
2015-03-16 13:51:44 +00:00
|
|
|
protected:
|
|
|
|
void run();
|
2012-01-04 22:13:01 +00:00
|
|
|
|
|
|
|
private:
|
2018-02-02 17:37:50 +00:00
|
|
|
const QString filename_;
|
2015-03-16 13:51:44 +00:00
|
|
|
QFileInfo fileinfo_;
|
2012-01-04 22:13:01 +00:00
|
|
|
|
|
|
|
signals:
|
2014-07-09 21:31:44 +00:00
|
|
|
void statusFound(const QString filename = QString(), qint64 size = 0, bool accessible = false);
|
2012-01-04 22:13:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // RECENT_FILE_STATUS_H
|