~vcs-imports/bibletime/trunk

« back to all changes in this revision

Viewing changes to bibletime/backend/cswordcommentarymoduleinfo.cpp

  • Committer: mgruner
  • Date: 2007-05-08 15:51:07 UTC
  • Revision ID: vcs-imports@canonical.com-20070508155107-0rj7jdmm5ivf8685
-imported source and data files to new svn module
-this is where KDE4-based development will take place

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*********
 
2
*
 
3
* This file is part of BibleTime's source code, http://www.bibletime.info/.
 
4
*
 
5
* Copyright 1999-2006 by the BibleTime developers.
 
6
* The BibleTime source code is licensed under the GNU General Public License version 2.0.
 
7
*
 
8
**********/
 
9
 
 
10
 
 
11
 
 
12
#include "cswordcommentarymoduleinfo.h"
 
13
 
 
14
#include <string>
 
15
 
 
16
CSwordCommentaryModuleInfo::CSwordCommentaryModuleInfo( sword::SWModule* module, CSwordBackend* const usedBackend)
 
17
: CSwordBibleModuleInfo(module, usedBackend) {}
 
18
 
 
19
CSwordCommentaryModuleInfo::~CSwordCommentaryModuleInfo() {}
 
20
 
 
21
/** No descriptions */
 
22
CSwordModuleInfo* CSwordCommentaryModuleInfo::clone() {
 
23
        return new CSwordCommentaryModuleInfo(*this);
 
24
}
 
25
 
 
26
/** Returns true if this module may be written by the write display windows. */
 
27
const bool CSwordCommentaryModuleInfo::isWritable() const {
 
28
        //  qWarning(module()->getConfigEntry("ModDrv"));
 
29
        //a module is only writable if it's a RawFiles module with writable returning true
 
30
 
 
31
        if ( (std::string(module()->getConfigEntry("ModDrv")) == std::string("RawFiles")) && module()->isWritable()) {
 
32
        return true;
 
33
        };
 
34
 
 
35
        return false;
 
36
}