[sword-svn] r2664 - trunk/bindings/corba/orbitcpp

scribe at crosswire.org scribe at crosswire.org
Sat Oct 29 08:55:25 MST 2011


Author: scribe
Date: 2011-10-29 08:55:25 -0700 (Sat, 29 Oct 2011)
New Revision: 2664

Modified:
   trunk/bindings/corba/orbitcpp/swordorb-impl.cpp
   trunk/bindings/corba/orbitcpp/swordorb-impl.hpp
Log:
make ORBit code work again


Modified: trunk/bindings/corba/orbitcpp/swordorb-impl.cpp
===================================================================
--- trunk/bindings/corba/orbitcpp/swordorb-impl.cpp	2011-10-29 15:38:34 UTC (rev 2663)
+++ trunk/bindings/corba/orbitcpp/swordorb-impl.cpp	2011-10-29 15:55:25 UTC (rev 2664)
@@ -18,6 +18,7 @@
 #include "swordorb-impl.hpp"
 #include <iostream>
 #include <swmgr.h>
+#include <installmgr.h>
 #include <versekey.h>
 #include <treekeyidx.h>
 #include <swbuf.h>
@@ -414,4 +415,24 @@
 	return CORBA::string_dup(LocaleMgr::getSystemLocaleMgr()->translate(text, localeName));
 }
 
+swordorb::StringList *SWMgr_impl::getRepos() throw(CORBA::SystemException) {
+	swordorb::StringList *retVal = new swordorb::StringList;
+	int count = 0;
+	sword::InstallMgr *installMgr = new sword::InstallMgr();
+	for (InstallSourceMap::iterator it = installMgr->sources.begin(); it != installMgr->sources.end(); it++) {
+		count++;
+	}
+	retVal->length(count);
+	count = 0;
+	for (InstallSourceMap::iterator it = installMgr->sources.begin(); it != installMgr->sources.end(); it++) {
+		(*retVal)[count++] = CORBA::string_dup(assureValidUTF8(it->second->caption.c_str()));
+	}
+	delete installMgr;
+	return retVal;
 }
+
+// Don't call me yet
+swordorb::SWMgr_ptr SWMgr_impl::getShadowMgr (CORBA_char const *repoName) throw (CORBA::SystemException) {
+	return 0;
+}
+}

Modified: trunk/bindings/corba/orbitcpp/swordorb-impl.hpp
===================================================================
--- trunk/bindings/corba/orbitcpp/swordorb-impl.hpp	2011-10-29 15:38:34 UTC (rev 2663)
+++ trunk/bindings/corba/orbitcpp/swordorb-impl.hpp	2011-10-29 15:55:25 UTC (rev 2664)
@@ -94,6 +94,8 @@
 	StringList *getAvailableLocales() throw(CORBA::SystemException);
 	void setDefaultLocale(const char *name) throw(CORBA::SystemException);
 	char *translate(const char *text, const char *locale) throw(CORBA::SystemException);
+	StringList *getRepos() throw(CORBA::SystemException);
+	swordorb::SWMgr_ptr getShadowMgr (CORBA_char const *repoName) throw (CORBA::SystemException);
 
 };
 };




More information about the sword-cvs mailing list