GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
ModuleListView.h
1 
29 #pragma once
30 
31 #include "core/module/Module.h"
32 
33 namespace GpgFrontend::UI {
34 class ModuleListView : public QListView {
35  Q_OBJECT
36  public:
37  explicit ModuleListView(QWidget *parent);
38 
39  auto GetCurrentModuleID() -> Module::ModuleIdentifier;
40 
41  signals:
42  void SignalSelectModule(Module::ModuleIdentifier);
43 
44  protected:
45  void currentChanged(const QModelIndex &current,
46  const QModelIndex &previous) override;
47 
48  private:
49  QStandardItemModel *model_;
50 
51  void load_module_informations();
52 };
53 }; // namespace GpgFrontend::UI
Definition: ModuleListView.h:34
Definition: FileReadTask.cpp:31