summaryrefslogtreecommitdiff
path: root/utils/wpseditor/gui/src/qtrackstate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/wpseditor/gui/src/qtrackstate.cpp')
-rw-r--r--utils/wpseditor/gui/src/qtrackstate.cpp62
1 files changed, 0 insertions, 62 deletions
diff --git a/utils/wpseditor/gui/src/qtrackstate.cpp b/utils/wpseditor/gui/src/qtrackstate.cpp
deleted file mode 100644
index 85398971b0..0000000000
--- a/utils/wpseditor/gui/src/qtrackstate.cpp
+++ /dev/null
@@ -1,62 +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#include "qtrackstate.h"
23#include <stdlib.h>
24
25//
26QTrackState::QTrackState( )
27 : QObject() {
28 memset(&state,0,sizeof(state));
29 state.title = (char*)"title";
30 state.artist = (char*)"artist";
31 state.album = (char*)"album";
32 state.length = 100;
33 state.elapsed = 50;
34}
35
36void QTrackState::setTitle(const QString& name) {
37 state.title = new char[name.length()];
38 strcpy(state.title,name.toAscii());
39 emit stateChanged(state);
40}
41
42void QTrackState::setArtist(const QString& name) {
43 state.artist = new char[name.length()];
44 strcpy(state.artist,name.toAscii());
45 emit stateChanged(state);
46}
47
48void QTrackState::setAlbum(const QString& name) {
49 state.album = new char[name.length()];
50 strcpy(state.album,name.toAscii());
51 emit stateChanged(state);
52}
53
54void QTrackState::setLength(int le) {
55 state.length = le;
56 emit stateChanged(state);
57}
58
59void QTrackState::setElapsed(int le) {
60 state.elapsed = le;
61 emit stateChanged(state);
62}