MCPcopy Create free account
hub / github.com/amule-project/amule / StartSession

Method StartSession

src/ChatWnd.cpp:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void CChatWnd::StartSession(CFriend* friend_client, bool setfocus)
72{
73
74 if ( !friend_client->GetName().IsEmpty() ) {
75 if (setfocus) {
76 theApp->amuledlg->SetActiveDialog(CamuleDlg::DT_CHAT_WND, this);
77 }
78 chatselector->StartSession(GUI_ID(friend_client->GetIP(), friend_client->GetPort()), friend_client->GetName(), true);
79 }
80
81 // Check to enable the window controls if needed
82 CheckNewButtonsState();
83}
84
85
86void CChatWnd::OnNMRclickChatTab(wxMouseEvent& evt)

Callers 2

OnItemActivatedMethod · 0.45
OnSendMessageMethod · 0.45

Calls 5

GetNameMethod · 0.80
SetActiveDialogMethod · 0.80
IsEmptyMethod · 0.45
GetIPMethod · 0.45
GetPortMethod · 0.45

Tested by

no test coverage detected