[sword-svn] r2680 - in trunk: include src/mgr
scribe at crosswire.org
scribe at crosswire.org
Tue Feb 21 01:08:39 MST 2012
Author: scribe
Date: 2012-02-21 01:08:39 -0700 (Tue, 21 Feb 2012)
New Revision: 2680
Modified:
trunk/include/swmgr.h
trunk/src/mgr/swmgr.cpp
Log:
Added long overdue constants for module types
Modified: trunk/include/swmgr.h
===================================================================
--- trunk/include/swmgr.h 2012-02-18 14:57:52 UTC (rev 2679)
+++ trunk/include/swmgr.h 2012-02-21 08:08:39 UTC (rev 2680)
@@ -87,8 +87,6 @@
* @version $Id$
*/
class SWDLLEXPORT SWMgr {
-
-
private:
bool mgrModeMultiMod;
bool augmentHome;
@@ -159,6 +157,14 @@
public:
+ // constants which represent module types used in SWModule::getType
+ static const char *MODTYPE_BIBLES;
+ static const char *MODTYPE_COMMENTARIES;
+ static const char *MODTYPE_LEXDICTS;
+ static const char *MODTYPE_GENBOOKS;
+ static const char *MODTYPE_DAILYDEVOS;
+
+
static bool isICU;
static const char *globalConfPath;
static SWBuf getHomeDir();
Modified: trunk/src/mgr/swmgr.cpp
===================================================================
--- trunk/src/mgr/swmgr.cpp 2012-02-18 14:57:52 UTC (rev 2679)
+++ trunk/src/mgr/swmgr.cpp 2012-02-21 08:08:39 UTC (rev 2680)
@@ -111,6 +111,12 @@
const char *SWMgr::globalConfPath = "/etc/sword.conf:/usr/local/etc/sword.conf";
#endif
+const char *SWMgr::MODTYPE_BIBLES = "Biblical Texts";
+const char *SWMgr::MODTYPE_COMMENTARIES = "Commentaries";
+const char *SWMgr::MODTYPE_LEXDICTS = "Lexicons / Dictionaries";
+const char *SWMgr::MODTYPE_GENBOOKS = "Generic Books";
+const char *SWMgr::MODTYPE_DAILYDEVOS = "Daily Devotional";
+
void SWMgr::init() {
SWOptionFilter *tmpFilter = 0;
configPath = 0;
More information about the sword-cvs
mailing list