_name = "New playlist";
}
+Playlist::Playlist(const Playlist &playlist) {
+ _name = playlist.name();
+ _tracks = playlist.tracks();
+}
+
+Playlist& Playlist::operator =(const Playlist &playlist) {
+ _name = playlist.name();
+ _tracks = playlist.tracks();
+ return *this;
+}
+
QString Playlist::name() const {
return _name;
}
-QList<Track> Playlist::tracks() const {
+const QList<Track> &Playlist::tracks() const {
return _tracks;
}