digiKam
dbinarysearch.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2012-01-05
7  * Description : a widget to find missing binaries.
8  *
9  * Copyright (C) 2009-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2012-2016 by Benjamin Girault <benjamin dot girault at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_DBINARY_SEARCH_H
26 #define DIGIKAM_DBINARY_SEARCH_H
27 
28 // Qt includes
29 
30 #include <QString>
31 #include <QTreeWidget>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 #include "dbinaryiface.h"
37 
38 namespace Digikam
39 {
40 
44 class DIGIKAM_EXPORT DBinarySearch : public QTreeWidget
45 {
46  Q_OBJECT
47 
48 public:
49 
51  {
52  Status = 0,
56  Link
57  };
58 
59 public:
60 
61  explicit DBinarySearch(QWidget* const parent);
62  ~DBinarySearch() override;
63 
64  void addBinary(DBinaryIface& binary);
65  void addDirectory(const QString& dir);
66  bool allBinariesFound();
67 
68 public Q_SLOTS:
69 
70  void slotAreBinariesFound();
71 
72 Q_SIGNALS:
73 
74  void signalBinariesFound(bool);
75  void signalAddDirectory(const QString& dir);
76  void signalAddPossibleDirectory(const QString& dir);
77 
78 private:
79 
80  class Private;
81  Private* const d;
82 };
83 
84 } // namespace Digikam
85 
86 #endif // DIGIKAM_DBINARY_SEARCH_H
Definition: dbinaryiface.h:46
Definition: dbinarysearch.h:45
void signalAddDirectory(const QString &dir)
void signalAddPossibleDirectory(const QString &dir)
void signalBinariesFound(bool)
ColumnType
Definition: dbinarysearch.h:51
@ Button
Definition: dbinarysearch.h:55
@ Version
Definition: dbinarysearch.h:54
@ Binary
Definition: dbinarysearch.h:53
Status
Definition: coredbconstants.h:85
Definition: datefolderview.cpp:43