summaryrefslogtreecommitdiffstats
path: root/lib/MiddleWare/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MiddleWare/test.cpp')
-rw-r--r--lib/MiddleWare/test.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/MiddleWare/test.cpp b/lib/MiddleWare/test.cpp
index 5a3519c..9e2498f 100644
--- a/lib/MiddleWare/test.cpp
+++ b/lib/MiddleWare/test.cpp
@@ -57,6 +57,9 @@ int main(int argc, char** argv)
int ii;
for ( ii = 0; ii < loaded_plugins.size(); ii++)
{
+ std::cout << "-------------------------------------------" << std::endl;
+ map_plugin_settings_t settings;
+ std::cout << "Enabled: " << loaded_plugins[ii]["Enabled"] << std::endl;
std::cout << "Type: " << loaded_plugins[ii]["Type"] << std::endl;
std::cout << "Name: " << loaded_plugins[ii]["Name"] << std::endl;
std::cout << "Version: " << loaded_plugins[ii]["Version"] << std::endl;
@@ -64,6 +67,17 @@ int main(int argc, char** argv)
std::cout << "Email: " << loaded_plugins[ii]["Email"] << std::endl;
std::cout << "WWW: " << loaded_plugins[ii]["WWW"] << std::endl;
std::cout << "GTKBuilder: " << loaded_plugins[ii]["GTKBuilder"] << std::endl;
+ if (loaded_plugins[ii]["Enabled"] == "yes")
+ {
+ std::cout << std::endl << "Settings: " << std::endl;
+ settings = middleWare.GetPluginSettings(loaded_plugins[ii]["Name"]);
+ map_plugin_settings_t::iterator it;
+ for (it = settings.begin(); it != settings.end(); it++)
+ {
+ std::cout << "\t" << it->first << ": " << it->second << std::endl;
+ }
+ }
+ std::cout << "-------------------------------------------" << std::endl;
}
/* Try to save it into DB */
map_crash_info_t crashInfo;