Changeset View
Changeset View
Standalone View
Standalone View
lib/slideshow.h
Show All 37 Lines | |||||
38 | class GWENVIEWLIB_EXPORT SlideShow : public QObject | 38 | class GWENVIEWLIB_EXPORT SlideShow : public QObject | ||
39 | { | 39 | { | ||
40 | Q_OBJECT | 40 | Q_OBJECT | ||
41 | public: | 41 | public: | ||
42 | SlideShow(QObject* parent); | 42 | SlideShow(QObject* parent); | ||
43 | virtual ~SlideShow(); | 43 | virtual ~SlideShow(); | ||
44 | 44 | | |||
45 | void start(const QList<QUrl>& urls); | 45 | void start(const QList<QUrl>& urls); | ||
46 | void stop(); | 46 | void pause(); | ||
47 | 47 | | |||
48 | QAction* loopAction() const; | 48 | QAction* loopAction() const; | ||
49 | QAction* randomAction() const; | 49 | QAction* randomAction() const; | ||
50 | 50 | | |||
51 | /** @return true if the slideshow is running */ | 51 | /** @return true if the slideshow is running */ | ||
52 | bool isRunning() const; | 52 | bool isRunning() const; | ||
53 | 53 | | |||
54 | /** | 54 | /** | ||
Show All 12 Lines | 63 | public Q_SLOTS: | |||
67 | /** | 67 | /** | ||
68 | * Resume slideshow and go to next url. | 68 | * Resume slideshow and go to next url. | ||
69 | */ | 69 | */ | ||
70 | void resumeAndGoToNextUrl(); | 70 | void resumeAndGoToNextUrl(); | ||
71 | 71 | | |||
72 | Q_SIGNALS: | 72 | Q_SIGNALS: | ||
73 | void goToUrl(const QUrl&); | 73 | void goToUrl(const QUrl&); | ||
74 | /** | 74 | /** | ||
75 | * Slideshow has been started or stopped | 75 | * Slideshow has been started or paused | ||
76 | */ | 76 | */ | ||
77 | void stateChanged(bool running); | 77 | void stateChanged(bool running); | ||
78 | /** | 78 | /** | ||
79 | * Emitted when interval has been changed | 79 | * Emitted when interval has been changed | ||
80 | * @param interval interval in seconds | 80 | * @param interval interval in seconds | ||
81 | */ | 81 | */ | ||
82 | void intervalChanged(int interval); | 82 | void intervalChanged(int interval); | ||
83 | 83 | | |||
Show All 12 Lines |