rem: void AlarmDaemon::registerApp(const QCString& appName, const QString& appTitle, const QCString& dcopObject, int notificationType, bool displayCalendarName) { kdDebug(5900) << "AlarmDaemon::registerApp(" << appName << ", " << appTitle << ", " <<  dcopObject << ", " << notificationType << ")" << endl; if (!appName.isEmpty()) { if (KStandardDirs::findExe(appName) == QString::null) kdError() << "AlarmDaemon::registerApp(): app not found\n"; else { ClientInfo c = getClientInfo(appName); if (c.isValid()) {   for (ADCalendarBase* cal = mCalendars.first();  cal;  cal = mCalendars.next()) { if (cal->appName() == appName) cal->setUnregistered( true ); } removeClientInfo(appName); } ClientInfo cinfo(appName, appTitle, dcopObject, notificationType, displayCalendarName); mClients.append(cinfo);  writeConfigClient(appName, cinfo);  enableAutoStart(true); notifyGui(CHANGE_CLIENT); setTimerStatus();  } } }
add: void    registerApp(const QCString& appName, const QString& appTitle, const QCString& dcopObject, int notificationType, bool displayCalendarName) { registerApp_(appName, appTitle, dcopObject, notificationType, displayCalendarName, false); }
context: void AlarmDaemon::registerApp(const QCString& appName, const QString& appTitle,                              const QCString& dcopObject, int notificationType,                              bool displayCalendarName){  kdDebug(5900) << "AlarmDaemon::registerApp(" << appName << ", " << appTitle << ", "                <<  dcopObject << ", " << notificationType << ")" << endl;  if (!appName.isEmpty())  {    if (KStandardDirs::findExe(appName) == QString::null)      kdError() << "AlarmDaemon::registerApp(): app not found\n";    else    {      ClientInfo c = getClientInfo(appName);      if (c.isValid())      {        // The application is already in the clients list.        // Mark all its calendar files as unregistered and remove it from the list.        for (ADCalendarBase* cal = mCalendars.first();  cal;  cal = mCalendars.next())        {          if (cal->appName() == appName)            cal->setUnregistered( true );        }        removeClientInfo(appName);      }      ClientInfo cinfo(appName, appTitle, dcopObject, notificationType, displayCalendarName);      mClients.append(cinfo);      writeConfigClient(appName, cinfo);      enableAutoStart(true);      notifyGui(CHANGE_CLIENT);      setTimerStatus();//      checkAlarms(appName);    }  }}