855 |
855 |
856 def isPluginLoaded(self, pluginName): |
856 def isPluginLoaded(self, pluginName): |
857 """ |
857 """ |
858 Public method to check, if a certain plugin is loaded. |
858 Public method to check, if a certain plugin is loaded. |
859 |
859 |
860 @param pluginName name of the plugin to check for (string or QString) |
860 @param pluginName name of the plugin to check for (string) |
861 @return flag indicating, if the plugin is loaded (boolean) |
861 @return flag indicating, if the plugin is loaded (boolean) |
862 """ |
862 """ |
863 return pluginName in self.__activeModules or \ |
863 return pluginName in self.__activeModules or \ |
864 pluginName in self.__inactiveModules or \ |
864 pluginName in self.__inactiveModules or \ |
865 pluginName in self.__onDemandActiveModules or \ |
865 pluginName in self.__onDemandActiveModules or \ |
867 |
867 |
868 def isPluginActive(self, pluginName): |
868 def isPluginActive(self, pluginName): |
869 """ |
869 """ |
870 Public method to check, if a certain plugin is active. |
870 Public method to check, if a certain plugin is active. |
871 |
871 |
872 @param pluginName name of the plugin to check for (string or QString) |
872 @param pluginName name of the plugin to check for (string) |
873 @return flag indicating, if the plugin is active (boolean) |
873 @return flag indicating, if the plugin is active (boolean) |
874 """ |
874 """ |
875 return pluginName in self.__activeModules or \ |
875 return pluginName in self.__activeModules or \ |
876 pluginName in self.__onDemandActiveModules |
876 pluginName in self.__onDemandActiveModules |
877 |
877 |