swift
autopublishcomponent.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2019 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_COMPONENTS_AUTOPUBLISHCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_AUTOPUBLISHCOMPONENT_H
8 
9 #include <QFrame>
10 #include <QScopedPointer>
11 
14 
15 namespace Ui
16 {
17  class CAutoPublishComponent;
18 }
19 namespace swift::gui::components
20 {
23  {
24  Q_OBJECT
25 
26  public:
28  explicit CAutoPublishComponent(QWidget *parent = nullptr);
29 
31  virtual ~CAutoPublishComponent() override;
32 
34  int readFiles();
35 
37  bool isEmpty() const;
38 
39  private:
40  QScopedPointer<Ui::CAutoPublishComponent> ui;
43 
45  void analyzeAgainstDBData();
46 
48  void sendToDb();
49 
51  void displayData();
52 
54  void deleteAllFiles();
55 
57  void onAutoPublished(bool success, const QString &url, const swift::misc::CStatusMessageList &msgs);
58 
60  void closeParentDialog();
61  };
62 } // namespace swift::gui::components
63 
64 #endif // SWIFT_GUI_COMPONENTS_AUTOPUBLISHCOMPONENT_H
Using this class provides a QFrame with the overlay functionality already integrated.
Data automatically collected and be be sent to backend.
Status messages, e.g. from Core -> GUI.
Objects that can be use for auto-publishing. Auto publishing means we sent those data to the DB.
High level reusable GUI components.
Definition: aboutdialog.cpp:13