digiKam
cameraselection.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 : 2003-02-10
7  * Description : Camera type selection dialog
8  *
9  * Copyright (C) 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com>
10  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles 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_CAMERA_SELECTION_H
26 #define DIGIKAM_CAMERA_SELECTION_H
27 
28 // Qt includes
29 
30 #include <QString>
31 #include <QStringList>
32 #include <QDialog>
33 
34 // Local includes
35 
36 #include "searchtextbar.h"
37 
38 class QTreeWidgetItem;
39 
40 namespace Digikam
41 {
42 
43 class CameraSelection : public QDialog
44 {
45  Q_OBJECT
46 
47 public:
48 
49  explicit CameraSelection(QWidget* const parent = nullptr);
50  ~CameraSelection() override;
51 
52  void setCamera(const QString& title, const QString& model,
53  const QString& port, const QString& path);
54 
55  QString currentTitle() const;
56  QString currentModel() const;
57  QString currentPortPath() const;
58  QString currentCameraPath() const;
59 
60 Q_SIGNALS:
61 
62  void signalOkClicked(const QString& title, const QString& model,
63  const QString& port, const QString& path);
64 
65 private:
66 
67  void getCameraList();
68  void getSerialPortList();
69 
70 private Q_SLOTS:
71 
72  void slotHelp();
73  void slotUMSCameraLinkUsed();
74  void slotPTPCameraLinkUsed();
75  void slotPTPIPCameraLinkUsed();
76  void slotNetworkEditChanged(const QString& text);
77  void slotSelectionChanged(QTreeWidgetItem*, int);
78  void slotPortChanged();
79  void slotOkClicked();
80  void slotSearchTextChanged(const SearchTextSettings&);
81 
82 private:
83 
84  class Private;
85  Private* const d;
86 };
87 
88 } // namespace Digikam
89 
90 #endif // DIGIKAM_CAMERA_SELECTION_H
Definition: cameraselection.h:44
QString currentPortPath() const
Definition: cameraselection.cpp:656
~CameraSelection() override
Definition: cameraselection.cpp:332
QString currentModel() const
Definition: cameraselection.cpp:637
void signalOkClicked(const QString &title, const QString &model, const QString &port, const QString &path)
CameraSelection(QWidget *const parent=nullptr)
Definition: cameraselection.cpp:106
void setCamera(const QString &title, const QString &model, const QString &port, const QString &path)
Definition: cameraselection.cpp:414
QString currentCameraPath() const
Definition: cameraselection.cpp:669
QString currentTitle() const
Definition: cameraselection.cpp:632
Definition: searchtextbar.h:43
Definition: datefolderview.cpp:43