#ifndef __MEDIAVIEW_H__
#define __MEDIAVIEW_H__
-#include <QtGui>
-#if QT_VERSION >= 0x050000
#include <QtWidgets>
-#endif
#include <QtNetwork>
#ifdef APP_PHONON
#include <phonon/mediaobject.h>
class SnapshotSettings;
#endif
-namespace The {
-QHash<QString, QAction*>* globalActions();
-}
-
class MediaView : public View {
Q_OBJECT
#ifdef APP_PHONON
void setMediaObject(Phonon::MediaObject *mediaObject);
#endif
- const QList<VideoSource*> & getHistory() { return history; }
+ const QVector<VideoSource*> & getHistory() { return history; }
int getHistoryIndex();
PlaylistModel* getPlaylistModel() { return playlistModel; }
const QString &getCurrentVideoId();
void openInBrowser();
void shareViaTwitter();
void shareViaFacebook();
- void shareViaBuffer();
void shareViaEmail();
void removeSelected();
void moveUpSelected();
void moveDownSelected();
- bool isPlaylistVisible();
- void setPlaylistVisible(bool visible=true);
+ bool isSidebarVisible();
+ void setSidebarVisibility(bool visible);
+ SidebarWidget *getSidebar() { return sidebar; }
+ void removeSidebar();
+ void restoreSidebar();
void saveSplitterState();
void downloadVideo();
#ifdef APP_SNAPSHOT
void goForward();
void toggleSubscription();
void adjustWindowSize();
- void maybeAdjustWindowSize();
private slots:
// list/model
void itemActivated(const QModelIndex &index);
void selectionChanged (const QItemSelection & selected, const QItemSelection & deselected);
void activeRowChanged(int);
- void selectVideos(QList<Video*> videos);
+ void selectVideos(const QVector<Video*> &videos);
void gotStreamUrl(QUrl streamUrl);
void handleError(const QString &message);
// phonon
void stateChanged(Phonon::State newState, Phonon::State oldState);
#endif
void aboutToFinish();
-#ifdef APP_ACTIVATION
- void demoMessage();
- void updateContinueButton(int);
-#endif
void startPlaying();
void downloadStatusChanged();
void playbackFinished();
#endif
DownloadItem *downloadItem;
- QList<VideoSource*> history;
- QList<QAction*> currentVideoActions;
+ QVector<VideoSource*> history;
+ QVector<QAction*> currentVideoActions;
qint64 currentVideoSize;