DtkCore
DTK Core module
dfileservices.h
1/*
2 * Copyright (C) 2017 ~ 2017 Deepin Technology Co., Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef DFILESERVICES_H
19#define DFILESERVICES_H
20
21#include <dtkcore_global.h>
22
23#include <QUrl>
24
25DCORE_BEGIN_NAMESPACE
26
27class LIBDTKCORESHARED_EXPORT DFileServices
28{
29public:
30 static bool showFolder(QString localFilePath, const QString &startupId = QString());
31 static bool showFolders(const QList<QString> localFilePaths, const QString &startupId = QString());
32 static bool showFolder(QUrl url, const QString &startupId = QString());
33 static bool showFolders(const QList<QUrl> urls, const QString &startupId = QString());
34
35 static bool showFileItemPropertie(QString localFilePath, const QString &startupId = QString());
36 static bool showFileItemProperties(const QList<QString> localFilePaths, const QString &startupId = QString());
37 static bool showFileItemPropertie(QUrl url, const QString &startupId = QString());
38 static bool showFileItemProperties(const QList<QUrl> urls, const QString &startupId = QString());
39
40 static bool showFileItem(QString localFilePath, const QString &startupId = QString());
41 static bool showFileItems(const QList<QString> localFilePaths, const QString &startupId = QString());
42 static bool showFileItem(QUrl url, const QString &startupId = QString());
43 static bool showFileItems(const QList<QUrl> urls, const QString &startupId = QString());
44
45 static bool trash(QString localFilePath);
46 static bool trash(const QList<QString> localFilePaths);
47 static bool trash(QUrl urlstartupId);
48 static bool trash(const QList<QUrl> urls);
49
50 static QString errorMessage();
51};
52
53DCORE_END_NAMESPACE
54
55#endif // DFILESERVICES_H
Definition: dfileservices.h:28