filemanager/helper/pathhistory.h
2021-03-29 16:51:34 +08:00

23 lines
369 B
C++

#ifndef PATHHISTORY_H
#define PATHHISTORY_H
#include <QObject>
class PathHistory : public QObject
{
Q_OBJECT
public:
explicit PathHistory(QObject *parent = nullptr);
void append(const QUrl &path);
QUrl posteriorPath();
QUrl previousPath();
private:
QVector<QUrl> m_prevHistory;
QVector<QUrl> m_postHistory;
};
#endif // PATHHISTORY_H