Added playlist actions (insert, delete, move up, move down), with only insert working...
[kworship.git] / kworship / playlist / KwPlaylistNode.cpp
blob94eb4f2b0c21eb9a0eac9f8d5bb9c4b08d1d54a3
1 /***************************************************************************
2 * This file is part of KWorship. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
4 * *
5 * KWorship is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 2 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * KWorship is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with KWorship. If not, write to the Free Software Foundation, *
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ***************************************************************************/
20 /**
21 * @file KwPlaylistNode.cpp
22 * @brief A node on a playlist tree.
23 * @author James Hogan <james@albanarts.com>
26 #include "KwPlaylistNode.h"
28 #include <cassert>
31 * Constructors + destructor.
34 /// Primary constructor.
35 KwPlaylistNode::KwPlaylistNode(KwPlaylistNode* parent)
36 : DefaultModelNode(parent)
40 /// Destructor.
41 KwPlaylistNode::~KwPlaylistNode()
46 * Main interface
49 /// Get the flags for this node.
50 Qt::ItemFlags KwPlaylistNode::getFlags(Qt::ItemFlags& defaultFlags) const
52 return Qt::ItemIsDragEnabled | defaultFlags;
55 /// Activate the node using a display manager.
56 void KwPlaylistNode::activate(KwDisplayManager*)
60 KwPlaylistItem *KwPlaylistNode::playlistItem() const
62 return 0;