CCIMXDesktop
 
Loading...
Searching...
No Matches
CameraWindow.h
1#ifndef CAMERAWINDOW_H
2#define CAMERAWINDOW_H
3
4#include <QMainWindow>
5class CameraCapture;
6class PhotoSaver;
7class DesktopToast;
8QT_BEGIN_NAMESPACE
9namespace Ui {
10class CameraWindow;
11}
12QT_END_NAMESPACE
13
14class CameraWindow : public QMainWindow {
15 Q_OBJECT
16
17public:
23 CameraWindow(QWidget* parent = nullptr);
24
30 void fresh_cameralists();
35 void redirect(const QString path);
37
38private slots:
42 void on_btn_oppose_camera_clicked();
43
44private:
45 void setup_internal();
46 void select(int index);
47 void process_oppose_state(bool prev_opened);
48 void capture_photo_once();
49 Ui::CameraWindow* ui;
50 CameraCapture* camera_capture;
51 DesktopToast* toast;
52 QString cached_path; /* cached saving dirent */
53};
54#endif // CAMERAWINDOW_H
The CameraCapture class handles camera video capturing.
Definition CameraCapture.h:20
Definition CameraWindow.h:14
void redirect(const QString path)
redirect to the save path
Definition CameraWindow.cpp:41
void fresh_cameralists()
fresh_cameralists refresh the camera lists
Definition CameraWindow.cpp:18
The DesktopToast class is the toast handle classes using less lock messages queue to display the mess...
Definition DesktopToast.h:15
The PhotoSaver class provides static methods for saving images.
Definition PhotoSaver.h:11