QuarkManager::QuarkManager (ICoreProxy_ptr proxy, FavoritesManager *favMgr, ItemsFinder *finder, ItemImageProvider *prov, QObject *parent) : QObject (parent) , Proxy_ (proxy) , FavMgr_ (favMgr) , Finder_ (finder) , ImageProv_ (prov) , Model_ (new LaunchModel (this)) { if (Finder_->IsReady ()) init (); else connect (Finder_, SIGNAL (itemsListChanged ()), this, SLOT (init ())); connect (FavMgr_, SIGNAL (favoriteAdded (QString)), this, SLOT (addItem (QString))); connect (FavMgr_, SIGNAL (favoriteRemoved (QString)), this, SLOT (handleItemRemoved (QString)), Qt::QueuedConnection); }
//--------------------------------------------------------------------------------- void LLIMWellWindow::delIMRow(const LLUUID& sessionId) { //fix for EXT-3252 //without this line LLIMWellWindow receive onFocusLost //and hide itself. It was becaue somehow LLIMChicklet was in focus group for //LLIMWellWindow... //But I didn't find why this happen.. gFocusMgr.clearLastFocusForGroup(this); if (mMessageList->removeItemByValue(sessionId)) { handleItemRemoved(IT_INSTANT_MESSAGE); } else { llwarns << "Unable to remove IM Row from the list, sessionID: " << sessionId << llendl; } // remove all toasts that belong to this session from a screen if(mChannel) mChannel->removeToastsBySessionID(sessionId); // hide chiclet window if there are no items left if(isWindowEmpty()) { setVisible(FALSE); } else { setFocus(true); } }
void LLIMWellWindow::removeObjectRow(const LLUUID& notification_id) { if (mMessageList->removeItemByValue(notification_id)) { handleItemRemoved(IT_INSTANT_MESSAGE); } else { llwarns << "Unable to remove Object Row from the list, notificationID: " << notification_id << llendl; } reshapeWindow(); // hide chiclet window if there are no items left if(isWindowEmpty()) { setVisible(FALSE); } }
//--------------------------------------------------------------------------------- void LLSysWellWindow::removeItemByID(const LLUUID& id) { if(mMessageList->removeItemByValue(id)) { handleItemRemoved(IT_NOTIFICATION); reshapeWindow(); } else { llwarns << "Unable to remove notification from the list, ID: " << id << llendl; } // hide chiclet window if there are no items left if(isWindowEmpty()) { setVisible(FALSE); } }