| 1 |
// SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
#ifndef DRECENTMANAGER_H |
| 6 |
#define DRECENTMANAGER_H |
| 7 |
|
| 8 |
#include "dtkcore_global.h" |
| 9 |
#include <QString> |
| 10 |
|
| 11 |
DCORE_BEGIN_NAMESPACE |
| 12 |
|
| 13 |
struct LIBDTKCORESHARED_EXPORT DRecentData |
| 14 |
{ |
| 15 |
QString appName; |
| 16 |
QString appExec; |
| 17 |
QString mimeType; |
| 18 |
}; |
| 19 |
|
| 20 |
class LIBDTKCORESHARED_EXPORT DRecentManager |
| 21 |
{ |
| 22 |
public: |
| 23 |
static bool addItem(const QString &uri, DRecentData &data); |
| 24 |
static void removeItem(const QString &target); |
| 25 |
static void removeItems(const QStringList &list); |
| 26 |
}; |
| 27 |
|
| 28 |
DCORE_END_NAMESPACE |
| 29 |
|
| 30 |
#endif // DRECENTMANAGER_H |