diff options
author | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-07-31 17:08:49 +0200 |
---|---|---|
committer | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-07-31 17:08:49 +0200 |
commit | de2c473ef6cb27a080bb0491f21d1280e2c971c5 (patch) | |
tree | 7189bf00de07ea69fe29ee0a1435e7b65316a8d4 /lib/MiddleWare/test.cpp | |
parent | 3f89291d3dbb6ebd28cf7aaa1cbde24b27810bfc (diff) | |
download | abrt-de2c473ef6cb27a080bb0491f21d1280e2c971c5.tar.gz abrt-de2c473ef6cb27a080bb0491f21d1280e2c971c5.tar.xz abrt-de2c473ef6cb27a080bb0491f21d1280e2c971c5.zip |
added new interface for geting plugins' settings (will be used in gui)
Diffstat (limited to 'lib/MiddleWare/test.cpp')
-rw-r--r-- | lib/MiddleWare/test.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/MiddleWare/test.cpp b/lib/MiddleWare/test.cpp index 5a3519cc..9e2498f5 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; |