1
/****************************************************************************
2
* Copyright (C) 2012-2014 by Savoir-Faire Linux *
3
* Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> *
5
* This library is free software; you can redistribute it and/or *
6
* modify it under the terms of the GNU Lesser General Public *
7
* License as published by the Free Software Foundation; either *
8
* version 2.1 of the License, or (at your option) any later version. *
10
* This library 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 GNU *
13
* Lesser General Public License for more details. *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17
***************************************************************************/
18
#ifndef CATEGORIZEDCOMPOSITENODE_H
19
#define CATEGORIZEDCOMPOSITENODE_H
22
#include <QtCore/QModelIndex>
25
class LIB_EXPORT CategorizedCompositeNode {
34
explicit CategorizedCompositeNode(CategorizedCompositeNode::Type _type);
35
virtual ~CategorizedCompositeNode();
36
CategorizedCompositeNode::Type type() const;
37
virtual QObject* getSelf() const = 0;
39
void setDropState(const char state);
41
void setHoverState(const int state);
42
CategorizedCompositeNode* parentNode() const;
43
void setParentNode(CategorizedCompositeNode* node);
45
CategorizedCompositeNode::Type m_type;
48
CategorizedCompositeNode* m_pParent;