Logo Search packages:      
Sourcecode: akonadi version File versions  Download package

void AgentManager::cleanup (  ) 

Called by the crash handler and dtor to terminate the child processes.

Definition at line 88 of file agentmanager.cpp.

References mAgentInstances, and Akonadi::ProcessControl::setCrashPolicy().

Referenced by ~AgentManager().

{
  foreach ( const AgentInstanceInfo &info, mAgentInstances ) {
    info.controller->setCrashPolicy( ProcessControl::StopOnCrash );
    if ( info.agentControlInterface && info.agentControlInterface->isValid() )
      info.agentControlInterface->quit();
  }

  mAgentInstances.clear();

  mStorageController->setCrashPolicy( ProcessControl::StopOnCrash );
  org::freedesktop::Akonadi::Server *serverIface =
    new org::freedesktop::Akonadi::Server( "org.freedesktop.Akonadi", "/Server",
                                           QDBusConnection::sessionBus(), this );
  serverIface->quit();

  delete mStorageController;
  mStorageController = 0;
}


Generated by  Doxygen 1.6.0   Back to index