Fixed empty label in library after start
[someplayer] / src / track.h
index 7539f21..cd9c307 100644 (file)
@@ -1,3 +1,22 @@
+/*
+ * SomePlayer - An alternate music player for Maemo 5
+ * Copyright (C) 2010 Nikolay (somebody) Tischenko <niktischenko@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * 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 TRACK_H
 #define TRACK_H
 
@@ -17,13 +36,13 @@ namespace SomePlayer {
                public:
                        Track();
                        Track(const Track &track);
-                       Track(int id, TrackMetadata metadata, QString source);
+                       Track(TrackMetadata metadata, QString source);
                        Track(QString source);
                        ~Track();
                        Track &operator=(const Track &track);
                        TrackMetadata metadata() const; //read-write
+                       void setMetadata(TrackMetadata meta);
                        QString source() const;
-                       int id() const;
                        void setSource (QString source);
                        int count() const; //count of plays
                        void setCount(int count); //for restoring from database and counting from player
@@ -33,7 +52,6 @@ namespace SomePlayer {
                        TrackMetadata _metadata;
                        QString _source;
                        int _count;
-                       int _id;
                        TagResolver *_resolver;
                private slots:
                        void decoded(Track);