The RecentItem class models an item that was recently interacted with.
More...
#include <recentitem.h>
|
| QString | m_key |
| | Key, path, URL or other unique identifier for the item. More...
|
| |
| QString | m_displayName |
| | Display name of the item, suitable for showing to the user. More...
|
| |
| long long int | m_timeStamp |
| | Timestamp, millis since epoch, typically when the item was last accessed or used. More...
|
| |
The RecentItem class models an item that was recently interacted with.
◆ Type
| Enumerator |
|---|
| LOCAL_IMAGE | |
| LOCAL_CHAISCRIPT | |
| REMOTE_RESOURCE | |
| UNKNOWN | |
◆ RecentItem()
| geometrize::RecentItem::RecentItem |
( |
const QString & |
key, |
|
|
const QString & |
displayName, |
|
|
const long long int |
timeStamp |
|
) |
| |
◆ getDisplayName()
| QString geometrize::RecentItem::getDisplayName |
( |
| ) |
const |
◆ getKey()
| QString geometrize::RecentItem::getKey |
( |
| ) |
const |
◆ getTimeStamp()
| long long int geometrize::RecentItem::getTimeStamp |
( |
| ) |
const |
◆ getTypeForKey()
getTypeForKey Gets the recent item type for the given recent item key.
- Parameters
-
- Returns
- The recent item type.
16 const QUrl url{QUrl::fromUserInput(key)};
17 if(url.scheme() ==
"file") {
18 if(key.endsWith(
".chai", Qt::CaseInsensitive)) {
◆ m_displayName
| QString geometrize::RecentItem::m_displayName |
|
private |
Display name of the item, suitable for showing to the user.
◆ m_key
| QString geometrize::RecentItem::m_key |
|
private |
Key, path, URL or other unique identifier for the item.
◆ m_timeStamp
| long long int geometrize::RecentItem::m_timeStamp |
|
private |
Timestamp, millis since epoch, typically when the item was last accessed or used.
The documentation for this class was generated from the following files:
- /home/appveyor/projects/geometrize-docs/geometrize/geometrize/recents/recentitem.h
- /home/appveyor/projects/geometrize-docs/geometrize/geometrize/recents/recentitem.cpp
long long int m_timeStamp
Timestamp, millis since epoch, typically when the item was last accessed or used.
Definition: recentitem.h:38