~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to lib/documentview/videoviewadapter.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// vim: set tabstop=4 shiftwidth=4 noexpandtab:
 
1
// vim: set tabstop=4 shiftwidth=4 expandtab:
2
2
/*
3
3
Gwenview: an image viewer
4
4
Copyright 2009 Aurélien Gâteau <agateau@kde.org>
30
30
// Local
31
31
#include <lib/documentview/abstractdocumentviewadapter.h>
32
32
 
33
 
namespace Gwenview {
34
 
 
 
33
namespace Gwenview
 
34
{
35
35
 
36
36
struct VideoViewAdapterPrivate;
37
 
class GWENVIEWLIB_EXPORT VideoViewAdapter : public AbstractDocumentViewAdapter {
38
 
        Q_OBJECT
 
37
class GWENVIEWLIB_EXPORT VideoViewAdapter : public AbstractDocumentViewAdapter
 
38
{
 
39
    Q_OBJECT
39
40
public:
40
 
        VideoViewAdapter(QWidget*);
41
 
        ~VideoViewAdapter();
42
 
 
43
 
        virtual void installEventFilterOnViewWidgets(QObject*);
44
 
 
45
 
        virtual MimeTypeUtils::Kind kind() const { return MimeTypeUtils::KIND_VIDEO; }
46
 
 
47
 
        virtual Document::Ptr document() const;
48
 
 
49
 
        virtual void setDocument(Document::Ptr);
 
41
    VideoViewAdapter();
 
42
    ~VideoViewAdapter();
 
43
 
 
44
    virtual MimeTypeUtils::Kind kind() const {
 
45
        return MimeTypeUtils::KIND_VIDEO;
 
46
    }
 
47
 
 
48
    virtual Document::Ptr document() const;
 
49
 
 
50
    virtual void setDocument(Document::Ptr);
50
51
 
51
52
Q_SIGNALS:
52
 
        void videoFinished();
 
53
    void videoFinished();
53
54
 
54
55
protected:
55
 
        bool eventFilter(QObject*, QEvent*);
 
56
    bool eventFilter(QObject*, QEvent*);
56
57
 
57
58
private Q_SLOTS:
58
 
        void slotPlayPauseClicked();
59
 
        void updatePlayPauseButton();
 
59
    void slotPlayPauseClicked();
 
60
    void updatePlayPauseButton();
60
61
 
61
62
private:
62
 
        friend struct VideoViewAdapterPrivate;
63
 
        VideoViewAdapterPrivate* const d;
 
63
    friend struct VideoViewAdapterPrivate;
 
64
    VideoViewAdapterPrivate* const d;
64
65
};
65
66
 
66
 
 
67
67
} // namespace
68
68
 
69
69
#endif /* VIDEOVIEWADAPTER_H */