]> 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 <aptx@rhea.(none)>
Fri, 27 Mar 2009 18:33:55 +0000 (19:33 +0100)
lib/anidbudpclient/abstractcommand.h
src/videowindow.cpp

index 7f7fa4b9c08a865edfe79c53cb46aef20dfecf7f..6f28e0fef0379026cf09a4ff7b8dbfda0b12c7fd 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 b71ffab1e4a46d4a1bfb494268ea0e1b996a6cbb..fa85c1e76e9b47bc3d56ebd49df87a0045db0293 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);
+               }
        }
 }