merge with master
[platform/framework/web/wrt-plugins-common.git] / src / plugins-api-support / PluginRegistry.h
index d3e66b4..5db1ea4 100644 (file)
 #include "Plugin.h"
 #include <dpl/exception.h>
 
-namespace WrtPluginsApi
-{
-
+namespace WrtPluginsApi {
 typedef std::list<Plugin*> PluginsList;
 typedef std::shared_ptr<PluginsList> PluginsListPtr;
 typedef std::map< std::string, PluginsListPtr> PluginsSet;
 
 class PluginRegistry : public SignalsSupport
 {
-public:
+  public:
     DECLARE_EXCEPTION_TYPE(DPL::Exception, Base)
     DECLARE_EXCEPTION_TYPE(Base, PluginNotFound)
 
-    template <typename T, typename ...Args>
-    void Call(Args... args)
+    template <typename T, typename ... Args>
+    void Call(Args ... args)
     {
-        Invoke<T>(args...);
+        Invoke<T>(args ...);
     }
 
-    template <typename T, typename ...Args>
+    template <typename T, typename ... Args>
     void CallGroup(const typename CallbackSupport<T>::GroupType& type,
-                   Args... args)
+                   Args ... args)
     {
-        InvokeGroup<T>(type, args...);
+        InvokeGroup<T>(type, args ...);
     }
 
     void AddPlugin(const std::string& libraryName, Plugin& plugin);
@@ -66,7 +64,8 @@ public:
     void UnloadAll();
 
     ~PluginRegistry();
-private:
+
+  private:
     bool LoadFromFile(const std::string& libraryName);
 
     typedef void* Symbol;
@@ -76,7 +75,6 @@ private:
 };
 
 typedef std::shared_ptr<PluginRegistry> PluginRegistryPtr;
-
 }
 
 #endif