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

20 lines
362 B

#ifndef BROWSINGHISTORY_H
#define BROWSINGHISTORY_H
#include <vector>
#include "URL.h"
class BrowsingHistory {
public:
BrowsingHistory();
void addEntry(URL url);
URL const& goForward();
URL const& goBack();
std::vector<URL> const& getHistory() const;
private:
std::vector<URL> history;
unsigned int currentPosition;
};
#endif