From 3838b787d59aa81bf4083fa51a78c7f7fd504c07 Mon Sep 17 00:00:00 2001 From: druid23 Date: Wed, 18 Aug 2010 22:16:57 +0100 Subject: [PATCH] Tweaks to how status updates are handled in prepartion for UI changes. new file: vlcstatus.cpp new file: vlcstatus.h modified: playermainwindow.cpp modified: playermainwindow.h modified: playlistmainwindow.cpp modified: vlcRemote.pro --- vlcstatus.cpp | 18 ++++++++++++++++++ vlcstatus.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 vlcstatus.cpp create mode 100644 vlcstatus.h diff --git a/vlcstatus.cpp b/vlcstatus.cpp new file mode 100644 index 0000000..0857f0b --- /dev/null +++ b/vlcstatus.cpp @@ -0,0 +1,18 @@ +/* VLC-REMOTE for MAEMO 5 +* Copyright (C) 2010 Schutz Sacha , Dru Moore , Yann Nave +* 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 index 0000000..e97d322 --- /dev/null +++ b/vlcstatus.h @@ -0,0 +1,45 @@ +/* VLC-REMOTE for MAEMO 5 +* Copyright (C) 2010 Schutz Sacha , Dru Moore , Yann Nave +* 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 + +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 -- 1.7.9.5