| 1 |
// SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
#ifndef DFILESERVICES_H |
| 6 |
#define DFILESERVICES_H |
| 7 |
|
| 8 |
#include <dtkcore_global.h> |
| 9 |
|
| 10 |
#include <QUrl> |
| 11 |
|
| 12 |
DCORE_BEGIN_NAMESPACE |
| 13 |
|
| 14 |
class LIBDTKCORESHARED_EXPORT DFileServices |
| 15 |
{ |
| 16 |
public: |
| 17 |
static bool showFolder(QString localFilePath, const QString &startupId = QString()); |
| 18 |
static bool showFolders(const QList<QString> localFilePaths, const QString &startupId = QString()); |
| 19 |
static bool showFolder(QUrl url, const QString &startupId = QString()); |
| 20 |
static bool showFolders(const QList<QUrl> urls, const QString &startupId = QString()); |
| 21 |
|
| 22 |
static bool showFileItemPropertie(QString localFilePath, const QString &startupId = QString()); |
| 23 |
static bool showFileItemProperties(const QList<QString> localFilePaths, const QString &startupId = QString()); |
| 24 |
static bool showFileItemPropertie(QUrl url, const QString &startupId = QString()); |
| 25 |
static bool showFileItemProperties(const QList<QUrl> urls, const QString &startupId = QString()); |
| 26 |
|
| 27 |
static bool showFileItem(QString localFilePath, const QString &startupId = QString()); |
| 28 |
static bool showFileItems(const QList<QString> localFilePaths, const QString &startupId = QString()); |
| 29 |
static bool showFileItem(QUrl url, const QString &startupId = QString()); |
| 30 |
static bool showFileItems(const QList<QUrl> urls, const QString &startupId = QString()); |
| 31 |
|
| 32 |
static bool trash(QString localFilePath); |
| 33 |
static bool trash(const QList<QString> localFilePaths); |
| 34 |
static bool trash(QUrl urlstartupId); |
| 35 |
static bool trash(const QList<QUrl> urls); |
| 36 |
|
| 37 |
static QString errorMessage(); |
| 38 |
}; |
| 39 |
|
| 40 |
DCORE_END_NAMESPACE |
| 41 |
|
| 42 |
#endif // DFILESERVICES_H |