AudioFilter

- creates plugin with reverb filter
- adjusts HelloWorld and GreenScreen to fit audio/video handling from daemon
- some code cleanup

Change-Id: If4fda4dc67b9b3db14fc7395ebf3d510923b454b
GitLab: #3
diff --git a/SDK/Templates/genericMediaHandler.cpp b/SDK/Templates/genericMediaHandler.cpp
index f3bbb39..a55a964 100644
--- a/SDK/Templates/genericMediaHandler.cpp
+++ b/SDK/Templates/genericMediaHandler.cpp
@@ -1,8 +1,9 @@
 HEADER
 
 #include "GENERICMediaHandler.h"
-// Logger
+
 #include "pluglog.h"
+
 const char sep = separator();
 const std::string TAG = "GENERIC";
 
@@ -33,10 +34,12 @@
         && data.direction == preferredStreamDirection) {
         subject->attach(mVS.get()); // your image
         oss << "got my sent image attached" << std::endl;
+        attached_ = "1";
     } else if (data.type == StreamType::video && data.direction
                && data.direction == preferredStreamDirection) {
         subject->attach(mVS.get()); // the image you receive from others on the call
         oss << "got received image attached" << std::endl;
+        attached_ = "1";
     }
 
     Plog::log(Plog::LogPriority::INFO, TAG, oss.str());
@@ -45,7 +48,11 @@
 std::map<std::string, std::string>
 GENERICMediaHandler::getCallMediaHandlerDetails()
 {
-    return {{"name", NAME}, {"iconPath", datapath_ + sep + "icon.png"}, {"pluginId", id()}};
+    return {{"name", NAME},
+            {"iconPath", datapath_ + sep + "icon.png"},
+            {"pluginId", id()},
+            {"attached", attached_},
+            {"dataType", "1"}};
 }
 
 void
@@ -63,14 +70,15 @@
 
 bool
 GENERICMediaHandler::preferenceMapHasKey(const std::string& key)
-{----------------
-    if (key == "PREFERENCE2") { return true; }----------------
-    return false;
+{
+    ----------------if (key == "PREFERENCE2") { return true; }
+    ----------------return false;
 }
 
 void
 GENERICMediaHandler::detach()
 {
+    attached_ = "0";
     mVS->detach();
 }