--- a/qtmobility/examples/player/player.h Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/examples/player/player.h Mon May 03 13:18:40 2010 +0300
@@ -49,6 +49,10 @@
#include <qvideowidget.h>
#ifdef Q_OS_SYMBIAN
+#include <QtGui/QDialog>
+#include <QtGui/QLineEdit>
+#include <QtGui/QListWidget>
+#include <QtNetwork/QHttp>
#include "mediakeysobserver.h"
#endif
@@ -84,6 +88,8 @@
void positionChanged(qint64 progress);
void metaDataChanged();
+ void previousClicked();
+
void seek(int seconds);
void jump(const QModelIndex &index);
void playlistPositionChanged(int);
@@ -91,11 +97,20 @@
void statusChanged(QMediaPlayer::MediaStatus status);
void bufferingProgress(int progress);
+ void displayErrorMessage();
+
#ifdef Q_OS_SYMBIAN
void handleFullScreen(bool isFullscreen);
+ void handleAspectRatio(bool aspectRatio);
void handleStateChange(QMediaPlayer::State state);
void handleMediaKeyEvent(MediaKeysObserver::MediaKeys key);
void showPlayList();
+ void hideOrShowCoverArt();
+ void launchYoutubeDialog();
+ void youtubeHttpRequestFinished(int requestId, bool error);
+ void youtubeReadResponseHeader(const QHttpResponseHeader& responseHeader);
+ void searchYoutubeVideo();
+ void addYoutubeVideo();
#else
void showColorDialog();
#endif
@@ -103,6 +118,11 @@
private:
void setTrackInfo(const QString &info);
void setStatusInfo(const QString &info);
+ void handleCursor(QMediaPlayer::MediaStatus status);
+
+#ifdef Q_OS_SYMBIAN
+ void createMenus();
+#endif
QMediaPlayer *player;
QMediaPlaylist *playlist;
@@ -113,12 +133,17 @@
QAbstractItemView *playlistView;
QString trackInfo;
QString statusInfo;
-#ifdef Q_OS_SYMBIAN
+#ifdef Q_OS_SYMBIAN
MediaKeysObserver *mediaKeysObserver;
QDialog *playlistDialog;
+ QAction *toggleAspectRatio;
+ QAction *showYoutubeDialog;
+ QDialog *youtubeDialog;
+ QHttp http;
+ int httpGetId;
#else
QDialog *colorDialog;
-#endif
+#endif
};
#endif