Quark  0.1
RecentFile.h++
Go to the documentation of this file.
1 
2 #ifndef __libquark_gui_RecentFile_hxx
3 #define __libquark_gui_RecentFile_hxx
4 
5 #include <QString>
6 
7 namespace quark {
8 namespace gui {
9 
17 {
18  public:
19 
21  explicit RecentFile(const QString &path);
22 
24  ~RecentFile();
25 
27  inline QString getPath() const
28  { return(_path); }
29 
31  inline QString getFilename() const
32  { return(_filename); }
33 
35  bool operator<(const RecentFile &other) const;
36 
37  private:
38 
39  QString _path;
40  QString _filename;
41 };
42 
43 } // namespace gui
44 } // namespace quark
45 
46 #endif // __libquark_gui_RecentFile_hxx
QString getPath() const
Returns the file path.
Definition: RecentFile.h++:27
~RecentFile()
Destructor.
RecentFile(const QString &path)
Constructs a new RecentFile with the specified file path.
An object representing a recently opened file.
Definition: RecentFile.h++:16
Definition: BarChartView.h++:6
bool operator<(const RecentFile &other) const
Comparison operator.
QString getFilename() const
Returns the filename portion of the file path.
Definition: RecentFile.h++:31