mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-25 03:12:53 +00:00

some form elements were not working before either so the only regression here is the seek slider, if KMediaWidget is used the whole custom controls code can be trown out I suppose but I'm not sure if the controls should be embeded along with the video or they be can/should be separate Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
37 lines
1 KiB
C++
37 lines
1 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2012 by Tobias Koening <tokoe@kde.org> *
|
|
* *
|
|
* 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 SNAPSHOTTAKER_H
|
|
#define SNAPSHOTTAKER_H
|
|
|
|
#include <KMediaPlayer>
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
class QImage;
|
|
|
|
class SnapshotTaker : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SnapshotTaker( const QString &url, QObject *parent = 0 );
|
|
~SnapshotTaker();
|
|
|
|
Q_SIGNALS:
|
|
void finished( const QImage &image );
|
|
|
|
private Q_SLOTS:
|
|
void stateChanged(bool paused);
|
|
|
|
private:
|
|
KMediaPlayer *m_player;
|
|
};
|
|
|
|
#endif
|