equal
deleted
inserted
replaced
20 |
20 |
21 // INCLUDE FILES |
21 // INCLUDE FILES |
22 #include <e32std.h> |
22 #include <e32std.h> |
23 #include <e32uid.h> |
23 #include <e32uid.h> |
24 #include <sysutil.h> |
24 #include <sysutil.h> |
25 #include "../../bidi.h" |
25 #include "config.h" |
|
26 #include "..\..\bidi.h" |
26 |
27 |
27 // System includes |
28 // System includes |
28 #include <ecom/ecom.h> |
29 #include <ecom/ecom.h> |
29 |
30 |
30 |
31 |
396 // |
397 // |
397 PluginHandler::PluginHandler(TBool enablePlugins) |
398 PluginHandler::PluginHandler(TBool enablePlugins) |
398 : m_pluginInfoArray( KPluginGranularity ) |
399 : m_pluginInfoArray( KPluginGranularity ) |
399 ,m_enablePlugins(enablePlugins) |
400 ,m_enablePlugins(enablePlugins) |
400 ,m_asyncLoading(ETrue) |
401 ,m_asyncLoading(ETrue) |
|
402 ,m_pluginToActivate(NULL) |
|
403 ,m_activePlugin(NULL) |
401 { |
404 { |
402 } |
405 } |
403 |
406 |
404 |
407 |
405 // ----------------------------------------------------------------------------- |
408 // ----------------------------------------------------------------------------- |
438 // |
441 // |
439 PluginHandler::~PluginHandler() |
442 PluginHandler::~PluginHandler() |
440 { |
443 { |
441 m_pluginInfoArray.ResetAndDestroy(); |
444 m_pluginInfoArray.ResetAndDestroy(); |
442 m_pluginInfoArray.Close(); |
445 m_pluginInfoArray.Close(); |
|
446 m_pluginObjects.clear(); |
443 if (m_idle) { |
447 if (m_idle) { |
444 m_idle->Cancel(); |
448 m_idle->Cancel(); |
445 } |
449 } |
446 delete m_idle; |
450 delete m_idle; |
447 } |
451 } |
883 } |
887 } |
884 // We don't have a plugin to support this content |
888 // We don't have a plugin to support this content |
885 return isSupported; |
889 return isSupported; |
886 } |
890 } |
887 |
891 |
|
892 void PluginHandler::storePluginObject(PluginSkin* pluginObj) |
|
893 { |
|
894 m_pluginObjects.add(pluginObj); |
|
895 } |
|
896 void PluginHandler::removePluginObject(PluginSkin* pluginObj) |
|
897 { |
|
898 m_pluginObjects.remove(pluginObj); |
|
899 } |
888 // End of File |
900 // End of File |