Tweaks to how status updates are handled in prepartion for UI changes.
authordruid23 <usr@dru-id.co.uk>
Wed, 18 Aug 2010 21:16:57 +0000 (22:16 +0100)
committerdruid23 <usr@dru-id.co.uk>
Wed, 18 Aug 2010 21:16:57 +0000 (22:16 +0100)
new file:   vlcstatus.cpp
new file:   vlcstatus.h
modified:   playermainwindow.cpp
modified:   playermainwindow.h
modified:   playlistmainwindow.cpp
modified:   vlcRemote.pro

vlcstatus.cpp [new file with mode: 0644]
vlcstatus.h [new file with mode: 0644]

diff --git a/vlcstatus.cpp b/vlcstatus.cpp
new file mode 100644 (file)
index 0000000..0857f0b
--- /dev/null
@@ -0,0 +1,18 @@
+/*   VLC-REMOTE for MAEMO 5
+*   Copyright (C) 2010 Schutz Sacha <istdasklar@gmail.com>, Dru Moore <usr@dru-id.co.uk>, Yann Nave <yannux@onbebop.net>
+*   This program is free software; you can redistribute it and/or modify
+*   it under the terms of the GNU General Public License version 2,
+*   or (at your option) any later version, as published by the Free
+*   Software Foundation
+*
+*   This program is distributed in the hope that it will be useful,
+*   but WITHOUT ANY WARRANTY; without even the implied warranty of
+*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+*   GNU General Public License for more details
+*
+*   You should have received a copy of the GNU General Public
+*   License along with this program; if not, write to the
+*   Free Software Foundation, Inc.,
+*   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+*/
+#include "vlcstatus.h"
diff --git a/vlcstatus.h b/vlcstatus.h
new file mode 100644 (file)
index 0000000..e97d322
--- /dev/null
@@ -0,0 +1,45 @@
+/*   VLC-REMOTE for MAEMO 5
+*   Copyright (C) 2010 Schutz Sacha <istdasklar@gmail.com>, Dru Moore <usr@dru-id.co.uk>, Yann Nave <yannux@onbebop.net>
+*   This program is free software; you can redistribute it and/or modify
+*   it under the terms of the GNU General Public License version 2,
+*   or (at your option) any later version, as published by the Free
+*   Software Foundation
+*
+*   This program is distributed in the hope that it will be useful,
+*   but WITHOUT ANY WARRANTY; without even the implied warranty of
+*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+*   GNU General Public License for more details
+*
+*   You should have received a copy of the GNU General Public
+*   License along with this program; if not, write to the
+*   Free Software Foundation, Inc.,
+*   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+*/
+#ifndef VLCSTATUS_H
+#define VLCSTATUS_H
+#include <QString>
+
+enum VlcStatusState {
+    UNKNOWN,
+    STOP,
+    PLAYING,
+    PAUSED
+};
+
+struct VlcStatus {
+    bool random;
+    bool loop;
+    bool repeat;
+    bool hasart;
+    int volume;
+    int length;
+    int time;
+    int position;
+    VlcStatusState state;
+    QString title;
+    QString artist;
+    QString album;
+    QString nowplaying;
+};
+
+#endif // VLCSTATUS_H