lmcCore::lmcCore(void) { pMessaging = new lmcMessaging(); connect(pMessaging, SIGNAL(messageReceived(MessageType, QString*, XmlMessage*)), this, SLOT(receiveMessage(MessageType, QString*, XmlMessage*))); connect(pMessaging, SIGNAL(connectionStateChanged()), this, SLOT(connectionStateChanged())); pMainWindow = new lmcMainWindow(); connect(pMainWindow, SIGNAL(appExiting()), this, SLOT(exitApp())); connect(pMainWindow, SIGNAL(chatStarting(QString*)), this, SLOT(startChat(QString*))); connect(pMainWindow, SIGNAL(chatRoomStarting(QString*)), this, SLOT(startChatRoom(QString*))); connect(pMainWindow, SIGNAL(messageSent(MessageType, QString*, XmlMessage*)), this, SLOT(sendMessage(MessageType, QString*, XmlMessage*))); connect(pMainWindow, SIGNAL(showTransfers()), this, SLOT(showTransfers())); connect(pMainWindow, SIGNAL(showHistory()), this, SLOT(showHistory())); connect(pMainWindow, SIGNAL(showSettings()), this, SLOT(showSettings())); connect(pMainWindow, SIGNAL(showHelp(QRect*)), this, SLOT(showHelp(QRect*))); connect(pMainWindow, SIGNAL(showUpdate(QRect*)), this, SLOT(showUpdate(QRect*))); connect(pMainWindow, SIGNAL(showAbout()), this, SLOT(showAbout())); connect(pMainWindow, SIGNAL(showBroadcast()), this, SLOT(showBroadcast())); connect(pMainWindow, SIGNAL(showPublicChat()), this, SLOT(showPublicChat())); connect(pMainWindow, SIGNAL(groupUpdated(GroupOp, QVariant, QVariant)), this, SLOT(updateGroup(GroupOp, QVariant, QVariant))); pPublicChatWindow = new lmcChatRoomWindow(); connect(pPublicChatWindow, SIGNAL(messageSent(MessageType, QString*, XmlMessage*)), this, SLOT(sendMessage(MessageType, QString*, XmlMessage*))); connect(pPublicChatWindow, SIGNAL(chatStarting(QString*)), this, SLOT(startChat(QString*))); chatWindows.clear(); chatRoomWindows.clear(); pTransferWindow = NULL; pHistoryWindow = NULL; pSettingsDialog = NULL; pUserInfoWindow = NULL; pHelpWindow = NULL; pUpdateWindow = NULL; pUserSelectDialog = NULL; pAboutDialog = NULL; pBroadcastWindow = NULL; pTimer = NULL; }
bool SSIManager::updateGroup( const Oscar::SSI& group ) { Oscar::SSI oldGroup = findGroup( group.name() ); if ( oldGroup.isValid() ) { removeID( oldGroup ); d->SSIList.remove( oldGroup ); } if ( d->SSIList.findIndex( group ) != -1 ) { kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "New group is already in list." << endl; return false; } kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Updating group '" << group.name() << "' in SSI list" << endl; d->SSIList.append( group ); addID( group ); emit groupUpdated( group ); return true; }
void GroupManager::groupDataUpdated() { Group group(sender()); if (!group.isNull()) emit groupUpdated(group); }
void GroupEventListener::groupAdded(const Group &group) { connect(group, SIGNAL(updated()), this, SLOT(groupUpdated())); }