diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | bcb704366cb5e333a626c18c308c7e0448a8e69f (patch) | |
tree | f0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /kopete/plugins/motionautoaway/motionawayplugin.h | |
download | tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/plugins/motionautoaway/motionawayplugin.h')
-rw-r--r-- | kopete/plugins/motionautoaway/motionawayplugin.h | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/kopete/plugins/motionautoaway/motionawayplugin.h b/kopete/plugins/motionautoaway/motionawayplugin.h new file mode 100644 index 00000000..98e7e343 --- /dev/null +++ b/kopete/plugins/motionautoaway/motionawayplugin.h @@ -0,0 +1,93 @@ +/* + motionawayplugin.h + + Kopete Motion Detector Auto-Away plugin + + Copyright (c) 2002 by Duncan Mac-Vicar Prett <[email protected]> + + Contains code from motion.c ( Detect changes in a video stream ) + Copyright 2000 by Jeroen Vreeken ([email protected]) + Distributed under the GNU public license version 2 + See also the file 'COPYING.motion' + + Kopete (c) 2002 by the Kopete developers <[email protected]> + + ************************************************************************* + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ************************************************************************* +*/ + +#ifndef MOTIONAWAYPLUGIN_H +#define MOTIONAWAYPLUGIN_H + +#include "kopeteplugin.h" + +class QTimer; + +/** + * @author Duncan Mac-Vicar Prett <[email protected]> + */ + +class MotionAwayPlugin : public Kopete::Plugin +{ + Q_OBJECT + +public: + MotionAwayPlugin( QObject *parent, const char *name, const QStringList &args ); + ~MotionAwayPlugin(); + +public slots: + void loadSettings(); + void slotTimeout(); + void slotCapture(); + void slotActivity(); + +private: + int awayTimeout; + bool becomeAvailableWithActivity; + QString videoDevice; + + QTimer *m_captureTimer; + QTimer *m_awayTimer; + + int getImage(int, QByteArray& ,int ,int ,int ,int ,int ); + + bool m_tookFirst; + bool m_wentAway; + + int m_width; + int m_height; + + int m_quality; + int m_maxChanges; + + int m_deviceHandler; + int shots; + int m_gap; + + QByteArray m_imageRef; + QByteArray m_imageNew; + QByteArray m_imageOld; + QByteArray m_imageOut; + + /* + time_t currenttimep; + time_t lasttime; + struct tm *currenttime; + + char file[255]; + char filepath[255]; + char c; + + */ +}; + +#endif + +// vim: set noet ts=4 sts=4 sw=4: + |