Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
recentitem.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QString>
4 
5 namespace geometrize
6 {
7 
12 {
13 public:
14  RecentItem(const QString& key, const QString& displayName, const long long int timeStamp);
15 
16  enum class Type
17  {
21  UNKNOWN
22  };
23 
29  static RecentItem::Type getTypeForKey(const QString& key);
30 
31  QString getKey() const;
32  QString getDisplayName() const;
33  long long int getTimeStamp() const;
34 
35 private:
36  QString m_key;
37  QString m_displayName;
38  long long int m_timeStamp;
39 };
40 
41 }
QString getKey() const
Definition: recentitem.cpp:32
static RecentItem::Type getTypeForKey(const QString &key)
getTypeForKey Gets the recent item type for the given recent item key.
Definition: recentitem.cpp:14
long long int m_timeStamp
Timestamp, millis since epoch, typically when the item was last accessed or used. ...
Definition: recentitem.h:38
QString m_displayName
Display name of the item, suitable for showing to the user.
Definition: recentitem.h:37
long long int getTimeStamp() const
Definition: recentitem.cpp:42
The RecentItem class models an item that was recently interacted with.
Definition: recentitem.h:11
QString getDisplayName() const
Definition: recentitem.cpp:37
RecentItem(const QString &key, const QString &displayName, const long long int timeStamp)
Definition: recentitem.cpp:10
Type
Definition: recentitem.h:16
QString m_key
Key, path, URL or other unique identifier for the item.
Definition: recentitem.h:36