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

« back to all changes in this revision

Viewing changes to lib/slideshow.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 2007 Aurélien Gâteau <agateau@kde.org>
31
31
 
32
32
class QAction;
33
33
 
34
 
namespace Gwenview {
 
34
namespace Gwenview
 
35
{
35
36
 
36
37
struct SlideShowPrivate;
37
 
class GWENVIEWLIB_EXPORT SlideShow : public QObject {
38
 
        Q_OBJECT
 
38
class GWENVIEWLIB_EXPORT SlideShow : public QObject
 
39
{
 
40
    Q_OBJECT
39
41
public:
40
 
        SlideShow(QObject* parent);
41
 
        virtual ~SlideShow();
42
 
 
43
 
        void start(const QList<KUrl>& urls);
44
 
        void stop();
45
 
 
46
 
        QAction* loopAction() const;
47
 
        QAction* randomAction() const;
48
 
 
49
 
        /** @return true if the slideshow is running */
50
 
        bool isRunning() const;
51
 
 
52
 
        void setCurrentUrl(const KUrl& url);
 
42
    SlideShow(QObject* parent);
 
43
    virtual ~SlideShow();
 
44
 
 
45
    void start(const QList<KUrl>& urls);
 
46
    void stop();
 
47
 
 
48
    QAction* loopAction() const;
 
49
    QAction* randomAction() const;
 
50
 
 
51
    /** @return true if the slideshow is running */
 
52
    bool isRunning() const;
 
53
 
 
54
    void setCurrentUrl(const KUrl& url);
53
55
 
54
56
public Q_SLOTS:
55
 
        void setInterval(int);
 
57
    void setInterval(int);
56
58
 
57
 
        /**
58
 
         * Resume slideshow and go to next url.
59
 
         */
60
 
        void resumeAndGoToNextUrl();
 
59
    /**
 
60
     * Resume slideshow and go to next url.
 
61
     */
 
62
    void resumeAndGoToNextUrl();
61
63
 
62
64
Q_SIGNALS:
63
 
        void goToUrl( const KUrl& );
64
 
        /**
65
 
         * Slideshow has been started or stopped
66
 
         */
67
 
        void stateChanged(bool running);
 
65
    void goToUrl(const KUrl&);
 
66
    /**
 
67
     * Slideshow has been started or stopped
 
68
     */
 
69
    void stateChanged(bool running);
68
70
 
69
71
private Q_SLOTS:
70
 
        void goToNextUrl();
71
 
        void updateConfig();
72
 
        void slotRandomActionToggled(bool on);
 
72
    void goToNextUrl();
 
73
    void updateConfig();
 
74
    void slotRandomActionToggled(bool on);
73
75
 
74
76
private:
75
 
        SlideShowPrivate* const d;
 
77
    SlideShowPrivate* const d;
76
78
};
77
79
 
78
80
} // namespace