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,
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;
foreach (const Phonon::SubtitleDescription &subtitle, subtitles)
{
qDebug() << subtitle;
+ if (subtitle.name() == "eng")
+ {
+qDebug() << "yep!";
+ mediaController->setCurrentSubtitle(subtitle);
+ }
}
}