File indexing completed on 2024-05-05 05:13:00

0001 /*
0002     This file is part of Akregator.
0003 
0004     SPDX-FileCopyrightText: 2008 Frank Osterfeld <osterfeld@kde.org>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
0007 */
0008 
0009 #pragma once
0010 
0011 #include "command.h"
0012 
0013 #include <memory>
0014 
0015 namespace Akregator
0016 {
0017 class Folder;
0018 class MainWidget;
0019 class SubscriptionListView;
0020 class TreeNode;
0021 class CreateFeedCommandPrivate;
0022 
0023 class CreateFeedCommand : public Command
0024 {
0025     Q_OBJECT
0026 public:
0027     explicit CreateFeedCommand(MainWidget *parent = nullptr);
0028     ~CreateFeedCommand() override;
0029 
0030     void setSubscriptionListView(SubscriptionListView *view);
0031     void setRootFolder(Folder *rootFolder);
0032     void setUrl(const QString &url);
0033     void setPosition(Folder *parent, TreeNode *after);
0034     void setAutoExecute(bool autoexec);
0035 
0036 private:
0037     void doStart() override;
0038     void doAbort() override;
0039 
0040 private:
0041     friend class CreateFeedCommandPrivate;
0042     std::unique_ptr<CreateFeedCommandPrivate> const d;
0043 };
0044 }