File indexing completed on 2025-01-05 03:59:47

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2007-09-06
0007  * Description : a dialog to control camera capture.
0008  *
0009  * SPDX-FileCopyrightText: 2007-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_CAPTURE_DLG_H
0016 #define DIGIKAM_CAPTURE_DLG_H
0017 
0018 // Qt includes
0019 
0020 #include <QCloseEvent>
0021 #include <QDialog>
0022 
0023 // Local includes
0024 
0025 #include "digikam_export.h"
0026 
0027 class QWidget;
0028 
0029 namespace Digikam
0030 {
0031 
0032 class CameraController;
0033 
0034 class CaptureDlg : public QDialog
0035 {
0036     Q_OBJECT
0037 
0038 public:
0039 
0040     CaptureDlg(QWidget* const parent,
0041                CameraController* const controller,
0042                const QString& cameraTitle);
0043     ~CaptureDlg()                   override;
0044 
0045 protected:
0046 
0047     void closeEvent(QCloseEvent* e) override;
0048 
0049 private Q_SLOTS:
0050 
0051     void slotPreview();
0052     void slotPreviewDone(const QImage&);
0053     void slotCapture();
0054     void slotCancel();
0055     void slotHelp();
0056 
0057 private:
0058 
0059     class Private;
0060     Private* const d;
0061 };
0062 
0063 } // namespace Digikam
0064 
0065 #endif // DIGIKAM_CAPTURE_DLG_H