emailuis/nmsettingui/src/nmmailboxsettingsmanager.cpp
changeset 20 ecc8def7944a
parent 18 578830873419
child 30 759dc5235cdb
equal deleted inserted replaced
18:578830873419 20:ecc8def7944a
   141             // We need to disconnect possible previous connections, because we only have
   141             // We need to disconnect possible previous connections, because we only have
   142             // one instance of every plugin. This way we can be sure that signal is send to
   142             // one instance of every plugin. This way we can be sure that signal is send to
   143             // correct object.
   143             // correct object.
   144             pluginInstance->disconnect(SIGNAL(mailboxListChanged(const NmId &, NmSettings::MailboxEventType)));
   144             pluginInstance->disconnect(SIGNAL(mailboxListChanged(const NmId &, NmSettings::MailboxEventType)));
   145             pluginInstance->disconnect(SIGNAL(mailboxPropertyChanged(const NmId &, QVariant, QVariant)));
   145             pluginInstance->disconnect(SIGNAL(mailboxPropertyChanged(const NmId &, QVariant, QVariant)));
       
   146             pluginInstance->disconnect(SIGNAL(goOnline(const NmId &)));
       
   147             pluginInstance->disconnect(SIGNAL(goOffline(const NmId &)));
       
   148             pluginInstance->disconnect(SIGNAL(aboutToClose()));
   146 
   149 
   147             connect(pluginInstance, SIGNAL(mailboxListChanged(const NmId &, NmSettings::MailboxEventType)),
   150             connect(pluginInstance, SIGNAL(mailboxListChanged(const NmId &, NmSettings::MailboxEventType)),
   148                 this, SIGNAL(mailboxListChanged(const NmId &, NmSettings::MailboxEventType)));
   151                 this, SIGNAL(mailboxListChanged(const NmId &, NmSettings::MailboxEventType)));
   149 
   152 
   150             connect(pluginInstance, SIGNAL(mailboxPropertyChanged(const NmId &, QVariant, QVariant)),
   153             connect(pluginInstance, SIGNAL(mailboxPropertyChanged(const NmId &, QVariant, QVariant)),
   151                 this, SIGNAL(mailboxPropertyChanged(const NmId &, QVariant, QVariant)));
   154                 this, SIGNAL(mailboxPropertyChanged(const NmId &, QVariant, QVariant)));
       
   155 
       
   156             connect(pluginInstance, SIGNAL(goOnline(const NmId &)),
       
   157                 this, SIGNAL(goOnline(const NmId &)));
       
   158 
       
   159             connect(pluginInstance, SIGNAL(goOffline(const NmId &)),
       
   160                 this, SIGNAL(goOffline(const NmId &)));
       
   161 
       
   162             connect(this, SIGNAL(aboutToClose()),
       
   163             	pluginInstance, SLOT(aboutToClose()));
   152 
   164 
   153             break;
   165             break;
   154         }
   166         }
   155     }
   167     }
   156     NMLOG(QString("NmMailboxSettingsManager::populateModel - OK"));
   168     NMLOG(QString("NmMailboxSettingsManager::populateModel - OK"));