digiKam
capturedlg.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 : 2007-09-06
7  * Description : a dialog to control camera capture.
8  *
9  * Copyright (C) 2007-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_CAPTURE_DLG_H
25 #define DIGIKAM_CAPTURE_DLG_H
26 
27 // Qt includes
28 
29 #include <QCloseEvent>
30 #include <QDialog>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 
36 class QWidget;
37 
38 namespace Digikam
39 {
40 
41 class CameraController;
42 
43 class CaptureDlg : public QDialog
44 {
45  Q_OBJECT
46 
47 public:
48 
49  CaptureDlg(QWidget* const parent,
50  CameraController* const controller,
51  const QString& cameraTitle);
52  ~CaptureDlg() override;
53 
54 protected:
55 
56  void closeEvent(QCloseEvent* e) override;
57 
58 private Q_SLOTS:
59 
60  void slotPreview();
61  void slotPreviewDone(const QImage&);
62  void slotCapture();
63  void slotCancel();
64  void slotHelp();
65 
66 private:
67 
68  class Private;
69  Private* const d;
70 };
71 
72 } // namespace Digikam
73 
74 #endif // DIGIKAM_CAPTURE_DLG_H
Definition: cameracontroller.h:51
Definition: capturedlg.h:44
void closeEvent(QCloseEvent *e) override
Definition: capturedlg.cpp:136
CaptureDlg(QWidget *const parent, CameraController *const controller, const QString &cameraTitle)
Definition: capturedlg.cpp:71
~CaptureDlg() override
Definition: capturedlg.cpp:128
Definition: datefolderview.cpp:43