aboutsummaryrefslogtreecommitdiff
path: root/mainwindow.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-14 01:35:25 +0200
committerJavier <dev.git@javispedro.com>2015-06-14 01:35:25 +0200
commit59feffc5a253fec33b310f7a0105c8ef42b9019b (patch)
tree855c7c86b4413d813d2a6c40d167eb78ee3250d3 /mainwindow.h
parent72a71a2003028fc97d74cebecebb1541d66ded86 (diff)
downloadscribiu-59feffc5a253fec33b310f7a0105c8ef42b9019b.tar.gz
scribiu-59feffc5a253fec33b310f7a0105c8ef42b9019b.zip
paperreplay working
Diffstat (limited to 'mainwindow.h')
-rw-r--r--mainwindow.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/mainwindow.h b/mainwindow.h
index 4072ffa..7a8fab4 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -2,6 +2,8 @@
#define MAINWINDOW_H
#include <QtGui/QMainWindow>
+#include <phonon/MediaObject>
+#include <phonon/AudioOutput>
#include "notebookmodel.h"
#include "smartpenmanager.h"
@@ -24,11 +26,18 @@ public slots:
private slots:
void handleNotebookSelected(const QModelIndex &index);
void handleCurPageChanged();
+ void handlePaperReplayRequested(const QString &file, qint64 time);
+ void handlePaperReplayPlay();
+ void handlePaperReplayPause();
+ void handleMediaStateChange(Phonon::State state);
private:
Ui::MainWindow *ui;
NotebookModel *_notebooks;
SmartpenManager *_manager;
+ Phonon::MediaObject *_media;
+ Phonon::AudioOutput *_mediaOutput;
+ qint64 _pendingSeek;
QString _curPenName;
QString _curNotebookName;