Make presentation selection drop down display presentations from backend
[kworship.git] / unipresent / common / UpPresentationNode.h
bloba35f08b686e01922875346536bc1163ac68603df
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 3 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, see <http://www.gnu.org/licenses/>. *
17 ***************************************************************************/
19 #ifndef _UpPresentationNode_h_
20 #define _UpPresentationNode_h_
22 /**
23 * @file UpPresentationNode.h
24 * @brief A presentations node for a presentation.
25 * @author James Hogan <james@albanarts.com>
28 #include "NodeBasedModel.h"
30 class UpPresentation;
32 /// A presentations node for a presentation.
33 class UpPresentationNode : public DefaultModelNode
35 public:
38 * Constructors + destructor.
41 /// Primary constructor.
42 UpPresentationNode(DefaultModelNode* parent, UpPresentation* item);
44 /// Destructor.
45 virtual ~UpPresentationNode();
48 * Accessors
51 UpPresentation* getItem();
54 * Main interface
57 virtual QVariant getData(int role, int column);
59 private:
62 * Variables
65 /// Playlist item.
66 UpPresentation* m_item;
69 #endif // _UpPresentationNode_h_