summaryrefslogtreecommitdiff
path: root/src/frontend/mainindex/bookshelf/btindexmodule.h
blob: d8991cac0e7251781487826ec50e6eab621dc757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*********
*
* This file is part of BibleTime's source code, http://www.bibletime.info/.
*
* Copyright 1999-2008 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
*
**********/

#ifndef BTINDEXMODULE_H
#define BTINDEXMODULE_H

#include "btindexitem.h"

#include "util/ctoolclass.h"

class BTModuleTreeItem;
class CSwordModuleInfo;

class QAction;
class QMimeData;


class BTIndexModule : public BTIndexItem {
    public:
        BTIndexModule(BTModuleTreeItem* treeItem, QTreeWidgetItem* previous);

        ~BTIndexModule();

        virtual bool enableAction(QAction* action) const;
        virtual bool acceptDrop(const QMimeData* data);
        CSwordModuleInfo* moduleInfo() const;

    private:
        CSwordModuleInfo* m_moduleInfo;
};

#endif