File: drecentmanager.h

package info (click to toggle)
dtkcore 5.7.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,728 kB
  • sloc: cpp: 22,021; ansic: 183; python: 68; xml: 58; makefile: 27; sh: 15
file content (30 lines) | stat: -rw-r--r-- 640 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later

#ifndef DRECENTMANAGER_H
#define DRECENTMANAGER_H

#include "dtkcore_global.h"
#include <QString>

DCORE_BEGIN_NAMESPACE

struct LIBDTKCORESHARED_EXPORT DRecentData
{
    QString appName;
    QString appExec;
    QString mimeType;
};

class LIBDTKCORESHARED_EXPORT DRecentManager
{
public:
    static bool addItem(const QString &uri, DRecentData &data);
    static void removeItem(const QString &target);
    static void removeItems(const QStringList &list);
};

DCORE_END_NAMESPACE

#endif // DRECENTMANAGER_H