kwin/effects/videorecord.h
Luboš Luňák 8973e88245 Convert zoom and videorecord to plugins.
svn path=/branches/work/kwin_composite/; revision=652616
2007-04-11 15:22:36 +00:00

43 lines
1 KiB
C++

/*****************************************************************
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
#include <kwineffects.h>
#include <captury/captury.h>
namespace KWin
{
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