blob: c5020a2b3d47e8193f8f2f8f835a02d819a3d38c [file] [log] [blame]
Olivier SOLDANO3dad1752017-07-13 14:08:53 -04001/***************************************************************************
2 * Copyright (C) 2015-2017 by Savoir-faire Linux *
3 * Author: Olivier Soldano <olivier.soldano@savoirfairelinux.com> *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 3 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17 **************************************************************************/
18
19#ifndef PHOTOBOOTHWIDGET_H
20#define PHOTOBOOTHWIDGET_H
21
22#include <QWidget>
23
24namespace Ui {
25class PhotoboothWidget;
26}
27
28class PhotoboothWidget : public QWidget
29{
30 Q_OBJECT
31
32public:
33 explicit PhotoboothWidget(QWidget *parent = 0);
34 ~PhotoboothWidget();
35 void startBooth();
36 void stopBooth();
37
38private slots:
39 void on_importButton_clicked();
40 void on_takePhotoButton_clicked();
41
42private:
43 QString fileName_;
44 Ui::PhotoboothWidget *ui;
45
46signals:
47 void photoTaken(QString fileName);
48};
49
50#endif // PHOTOBOOTHWIDGET_H