summaryrefslogtreecommitdiff
path: root/utils/wpseditor/gui/src/qtrackstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/wpseditor/gui/src/qtrackstate.h')
-rw-r--r--utils/wpseditor/gui/src/qtrackstate.h75
1 files changed, 0 insertions, 75 deletions
diff --git a/utils/wpseditor/gui/src/qtrackstate.h b/utils/wpseditor/gui/src/qtrackstate.h
deleted file mode 100644
index ebe000dd25..0000000000
--- a/utils/wpseditor/gui/src/qtrackstate.h
+++ /dev/null
@@ -1,75 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2007 by Rostilav Checkan
10 * $Id$
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#ifndef __QTRACKSTATE_H__
23#define __QTRACKSTATE_H__
24
25#include "wpsstate.h"
26#include <QObject>
27
28class QTrackState : public QObject {
29 Q_OBJECT
30 Q_CLASSINFO ( "QTrackState", "Track State" );
31 Q_PROPERTY ( QString Title READ title WRITE setTitle DESIGNABLE true USER true )
32 Q_PROPERTY ( QString Artist READ artist WRITE setArtist DESIGNABLE true USER true )
33 Q_PROPERTY ( QString Album READ album WRITE setAlbum DESIGNABLE true USER true )
34 Q_PROPERTY ( int Length READ length WRITE setLength DESIGNABLE true USER true )
35 Q_CLASSINFO("Length", "readOnly=true;value=100");
36 Q_PROPERTY ( int Elapsed READ elapsed WRITE setElapsed DESIGNABLE true USER true )
37 Q_CLASSINFO("Elapsed", "minimum=0;maximum=100;value=50");
38
39 trackstate state;
40
41public:
42 QTrackState();
43
44public slots:
45 QString title() const {
46 return state.title;
47 }
48 void setTitle ( const QString& name );
49
50 QString artist() const {
51 return state.artist;
52 }
53 void setArtist ( const QString& name );
54
55 QString album() const {
56 return state.album;
57 }
58 void setAlbum ( const QString& name );
59
60 int length() const {
61 return state.length;
62 }
63 void setLength ( int l );
64
65 int elapsed() const {
66 return state.elapsed;
67 }
68 void setElapsed ( int l );
69
70signals:
71 void stateChanged ( trackstate state );
72
73};
74
75#endif // __QTRACKSTATE_H__