]> Some of my projects - aniplayer-old.git/commitdiff
- Fix GCC compile issues.
author <> <>
Fri, 27 Mar 2009 18:33:55 +0000 (19:33 +0100)
committeraptx <redacted>
Fri, 27 Mar 2009 18:33:55 +0000 (19:33 +0100)
lib/anidbudpclient/abstractcommand.h
src/videowindow.cpp

index 7f7fa4b..6f28e0f 100644 (file)
@@ -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;
index b71ffab..fa85c1e 100644 (file)
@@ -451,6 +451,11 @@ void VideoWindow::updateSubtitles()
        foreach (const Phonon::SubtitleDescription &subtitle, subtitles)
        {
                qDebug() << subtitle;
+               if (subtitle.name() == "eng")
+               {
+qDebug() << "yep!";
+                       mediaController->setCurrentSubtitle(subtitle);
+               }
        }
 }