You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
filemanager/helper/pathhistory.h

24 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