Warning, file /network/tokodon/src/utils/filehelper.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu>
0002 // SPDX-License-Identifier: LGPL-2.0-or-later
0003 
0004 #include <QObject>
0005 
0006 class AbstractAccount;
0007 
0008 class FileHelper : public QObject
0009 {
0010     Q_OBJECT
0011 
0012 public:
0013     explicit FileHelper(QObject *parent = nullptr);
0014     ~FileHelper() override;
0015 
0016     Q_INVOKABLE void downloadFile(AbstractAccount *account, const QString &url, const QString &destination) const;
0017     Q_INVOKABLE QString url(const QUrl &url) const;
0018     Q_INVOKABLE QString fileName(const QUrl &url) const;
0019 };