From: <> Date: Fri, 27 Mar 2009 18:33:55 +0000 (+0100) Subject: - Fix GCC compile issues. X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=8ae16f8446847df7b30f5c207cf764565c80667e;p=aniplayer-old.git - Fix GCC compile issues. --- diff --git a/lib/anidbudpclient/abstractcommand.h b/lib/anidbudpclient/abstractcommand.h index 7f7fa4b..6f28e0f 100644 --- a/lib/anidbudpclient/abstractcommand.h +++ b/lib/anidbudpclient/abstractcommand.h @@ -16,24 +16,7 @@ class ANIDBUDPCLIENTSHARED_EXPORT AbstractCommand : public QObject Q_ENUMS(ReplyCode); public: - enum ReplyCode; - AbstractCommand(QObject *parent = 0); - virtual ~AbstractCommand(); - - virtual Command rawCommand() const; - - virtual bool waitForResult() const; - - virtual void setRawReply(ReplyCode replyCode, const QString &reply, AniDBUdpClient *client); - virtual QString rawReply() const; - - virtual ReplyCode replyCode() const; - -signals: - void replyReady(bool success = false); - -public: enum ReplyCode { CLIENT_DESTROYED = -1, @@ -170,6 +153,21 @@ public: API_VIOLATION = 666, //a }; + AbstractCommand(QObject *parent = 0); + virtual ~AbstractCommand(); + + virtual Command rawCommand() const; + + virtual bool waitForResult() const; + + virtual void setRawReply(ReplyCode replyCode, const QString &reply, AniDBUdpClient *client); + virtual QString rawReply() const; + + virtual ReplyCode replyCode() const; + +signals: + void replyReady(bool success = false); + protected: QString m_rawReply; ReplyCode m_replyCode; diff --git a/src/videowindow.cpp b/src/videowindow.cpp index b71ffab..fa85c1e 100644 --- a/src/videowindow.cpp +++ b/src/videowindow.cpp @@ -451,6 +451,11 @@ void VideoWindow::updateSubtitles() foreach (const Phonon::SubtitleDescription &subtitle, subtitles) { qDebug() << subtitle; + if (subtitle.name() == "eng") + { +qDebug() << "yep!"; + mediaController->setCurrentSubtitle(subtitle); + } } }