2007-02-23 16:20:22 +00:00
|
|
|
/*****************************************************************
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org>
|
|
|
|
|
|
|
|
You can Freely distribute this program under the GNU General Public
|
|
|
|
License. See the file "COPYING" for the exact licensing terms.
|
|
|
|
******************************************************************/
|
|
|
|
|
|
|
|
#ifndef KWIN_VIDEO_H
|
|
|
|
#define KWIN_VIDEO_H
|
|
|
|
|
2007-04-11 15:22:36 +00:00
|
|
|
#include <kwineffects.h>
|
2007-02-23 16:20:22 +00:00
|
|
|
|
|
|
|
#include <captury/captury.h>
|
|
|
|
|
2007-04-05 12:07:35 +00:00
|
|
|
namespace KWin
|
2007-02-23 16:20:22 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
class VideoRecordEffect
|
|
|
|
: public QObject, public Effect
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
VideoRecordEffect();
|
|
|
|
virtual ~VideoRecordEffect();
|
|
|
|
virtual void paintScreen( int mask, QRegion region, ScreenPaintData& data );
|
|
|
|
virtual void postPaintScreen();
|
|
|
|
private slots:
|
|
|
|
void toggleRecording();
|
|
|
|
private:
|
|
|
|
void startRecording();
|
|
|
|
void stopRecording();
|
|
|
|
captury_config_t config;
|
|
|
|
captury_t* client;
|
|
|
|
QRect area;
|
|
|
|
QRegion capture_region;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|