Stop of plugins added.
authorMichael Schuldt <Michael.Schuldt@bmw-carit.de>
Mon, 24 Jan 2011 12:26:38 +0000 (13:26 +0100)
committerMichael Schuldt <Michael.Schuldt@bmw-carit.de>
Mon, 24 Jan 2011 12:26:38 +0000 (13:26 +0100)
LayerManagerService/include/Layermanager.h
LayerManagerService/src/Layermanager.cpp
LayerManagerService/src/main.cpp

index 619e521..b5e1d7e 100644 (file)
@@ -47,6 +47,7 @@ public:
        void RemoveRenderer(IRenderer* renderer);
        void addCommunicator(BaseCommunicator* communicator);
        bool startManagement( int width,int height,const char* displayName );
+       bool stopManagement();
 
 private:
        Layermanager();
index f2ac8c1..43da74d 100644 (file)
@@ -176,3 +176,26 @@ bool Layermanager::startManagement(int width,int height,const char* displayName)
 
        return result;
 }
+
+bool Layermanager::stopManagement(){
+       bool result = false;
+
+               for( std::list<IRenderer*>::iterator list_iter = compositingControllers.begin();
+                        list_iter != compositingControllers.end(); list_iter++)
+               {
+                       if ( NULL != *list_iter)
+                       {
+                               (*list_iter)->stop();
+                       }
+               }
+                       for(std::list<BaseCommunicator*>::iterator list_iter = communicationControllers.begin();
+                                       list_iter != communicationControllers.end(); list_iter++)
+                       {
+                               if (NULL != *list_iter )
+                               {
+                                       (*list_iter)->stop();
+                               }
+                       }
+
+               return true;
+}
index 834a963..13862be 100644 (file)
@@ -182,6 +182,7 @@ int main(int argc, char **argv)
        }
        LOG_INFO("Main", "Exiting Application.");
        // cleanup
+       manager->stopManagement();
        delete renderer;
        delete comm;
        delete manager;