2156
2156
return m_dccPanel;
2159
void ViewContainer::addDccChat(const QString& myNick,const QString& nick,const QStringList& arguments,bool listen)
2159
void ViewContainer::addDccChat(DCC::Chat* chat)
2161
if (!listen) // Someone else initiated dcc chat
2161
if (!chat->selfOpened()) // Someone else initiated dcc chat
2163
2163
Application* konv_app=static_cast<Application*>(KApplication::kApplication());
2164
konv_app->notificationHandler()->dccChat(m_frontView, nick);
2169
DCC::Chat* dccChatPanel=listen
2170
? new DCC::Chat(m_tabWidget, listen, m_frontServer, myNick, nick )
2171
: new DCC::Chat(m_tabWidget, listen, m_frontServer, myNick, nick, arguments[1], arguments[2].toInt() );
2173
connect(dccChatPanel, SIGNAL(updateTabNotification(ChatWindow*,const Konversation::TabNotifyType&)), this, SLOT(setViewNotification(ChatWindow*,const Konversation::TabNotifyType&)));
2175
// This needs to be here as addView will change m_frontServer if focus new tabs is enabled.
2176
addView(dccChatPanel, dccChatPanel->getName());
2164
konv_app->notificationHandler()->dccChat(m_frontView, chat->partnerNick());
2167
DCC::ChatContainer *chatcontainer = new DCC::ChatContainer(m_tabWidget,chat);
2168
connect(chatcontainer, SIGNAL(updateTabNotification(ChatWindow*,const Konversation::TabNotifyType&)),
2169
this, SLOT(setViewNotification(ChatWindow*,const Konversation::TabNotifyType&)));
2171
addView(chatcontainer, chatcontainer->getName());
2180
2174
StatusPanel* ViewContainer::addStatusView(Server* server)