void CMobileOpalDlg::OnMenuOptionsGeneral() { COptionsGeneral dlg; dlg.m_strUsername = GetOptionString(UserNameKey); dlg.m_strDisplayName = GetOptionString(DisplayNameKey); dlg.m_strStunServer = GetOptionString(STUNServerKey); if (dlg.DoModal() == IDOK) { SetOptionString(UserNameKey, dlg.m_strUsername); SetOptionString(DisplayNameKey, dlg.m_strDisplayName); SetOptionString(STUNServerKey, dlg.m_strStunServer); InitialiseOPAL(); } }
void CMobileOpalDlg::OnMenuOptionsGeneral() { COptionsGeneral dlg; dlg.m_strUsername = GetOptionString(UserNameKey); dlg.m_strDisplayName = GetOptionString(DisplayNameKey); dlg.m_strStunServer = GetOptionString(STUNServerKey); dlg.m_interfaceAddress = GetOptionString(InterfaceAddressKey, L"*"); dlg.m_AutoStartTxVideo = GetOptionInt(AutoStartTxVideoKey, true) != 0; if (dlg.DoModal() == IDOK) { SetOptionString(UserNameKey, dlg.m_strUsername); SetOptionString(DisplayNameKey, dlg.m_strDisplayName); SetOptionString(STUNServerKey, dlg.m_strStunServer); SetOptionString(InterfaceAddressKey, dlg.m_interfaceAddress); SetOptionInt(AutoStartTxVideoKey, dlg.m_AutoStartTxVideo); InitialiseOPAL(); } }