1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
qTox/widget/selfcamview.h

38 lines
707 B
C
Raw Normal View History

2014-06-29 04:24:26 +08:00
#ifndef SELFCAMVIEW_H
#define SELFCAMVIEW_H
#include <QCamera>
#include <QCameraImageCapture>
#include <QMediaRecorder>
#include <QWidget>
#include <QVideoWidget>
#include <QCameraViewfinder>
#include <QHBoxLayout>
class QCloseEvent;
class QShowEvent;
class SelfCamView : public QWidget
{
Q_OBJECT
public:
SelfCamView(QWidget *parent=0);
~SelfCamView();
private:
void closeEvent(QCloseEvent*);
void showEvent(QShowEvent*);
private slots:
void setCamera(const QByteArray &cameraDevice);
void displayCameraError();
private:
QCamera *camera;
QCameraViewfinder* viewfinder;
QHBoxLayout* mainLayout;
};
#endif // SELFCAMVIEW_H