Debian Codegraph @

src/util/dfileservices_dummy.cpp

raw
1 // SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-or-later
4
5 #include "dfileservices.h"
6
7 DCORE_BEGIN_NAMESPACE
8
9 static QStringList urls2uris(const QList<QUrl> &urls)
10 {
11 QStringList list;
12
13 list.reserve(urls.size());
14
15 for (const QUrl url : urls) {
16 list << url.toString();
17 }
18
19 return list;
20 }
21
22 static QList<QUrl> path2urls(const QList<QString> &paths)
23 {
24 QList<QUrl> list;
25
26 list.reserve(paths.size());
27
28 for (const QString &path : paths) {
29 list << QUrl::fromLocalFile(path);
30 }
31
32 return list;
33 }
34
35 bool DFileServices::showFolder(QString localFilePath, const QString &startupId)
36 {
37 Q_UNUSED(localFilePath);
38 Q_UNUSED(startupId);
39 return false;
40 }
41
42 bool DFileServices::showFolders(const QList<QString> localFilePaths, const QString &startupId)
43 {
44 Q_UNUSED(localFilePaths);
45 Q_UNUSED(startupId);
46 return false;
47 }
48
49 bool DFileServices::showFolder(QUrl url, const QString &startupId)
50 {
51 Q_UNUSED(url);
52 Q_UNUSED(startupId);
53 return false;
54 }
55
56 bool DFileServices::showFolders(const QList<QUrl> urls, const QString &startupId)
57 {
58 Q_UNUSED(urls);
59 Q_UNUSED(startupId);
60 return false;
61 }
62
63 bool DFileServices::showFileItemPropertie(QString localFilePath, const QString &startupId)
64 {
65 Q_UNUSED(localFilePath);
66 Q_UNUSED(startupId);
67 return false;
68 }
69
70 bool DFileServices::showFileItemProperties(const QList<QString> localFilePaths, const QString &startupId)
71 {
72 Q_UNUSED(localFilePaths);
73 Q_UNUSED(startupId);
74 return false;
75 }
76
77 bool DFileServices::showFileItemPropertie(QUrl url, const QString &startupId)
78 {
79 Q_UNUSED(url);
80 Q_UNUSED(startupId);
81 return false;
82 }
83
84 bool DFileServices::showFileItemProperties(const QList<QUrl> urls, const QString &startupId)
85 {
86 Q_UNUSED(urls);
87 Q_UNUSED(startupId);
88 return false;
89 }
90
91 bool DFileServices::showFileItem(QString localFilePath, const QString &startupId)
92 {
93 Q_UNUSED(localFilePath);
94 Q_UNUSED(startupId);
95 return false;
96 }
97
98 bool DFileServices::showFileItems(const QList<QString> localFilePaths, const QString &startupId)
99 {
100 Q_UNUSED(localFilePaths);
101 Q_UNUSED(startupId);
102 return false;
103 }
104
105 bool DFileServices::showFileItem(QUrl url, const QString &startupId)
106 {
107 Q_UNUSED(url);
108 Q_UNUSED(startupId);
109 return false;
110 }
111
112 bool DFileServices::showFileItems(const QList<QUrl> urls, const QString &startupId)
113 {
114 Q_UNUSED(urls);
115 Q_UNUSED(startupId);
116 return false;
117 }
118
119 bool DFileServices::trash(QString localFilePath)
120 {
121 Q_UNUSED(localFilePath);
122 return false;
123 }
124
125 bool DFileServices::trash(const QList<QString> localFilePaths)
126 {
127 Q_UNUSED(localFilePaths);
128 return false;
129 }
130
131 bool DFileServices::trash(QUrl url)
132 {
133 Q_UNUSED(url);
134 return false;
135 }
136
137 bool DFileServices::trash(const QList<QUrl> urls)
138 {
139 Q_UNUSED(urls);
140 return false;
141 }
142
143
144 QString DFileServices::errorMessage()
145 {
146 return QString();
147 }
148
149 DCORE_END_NAMESPACE