void CManager::SetConfig( CString username, CString password, BOOL checkMultiPost, TIMELINE_INFO sFriendsTimeline, TIMELINE_INFO sPublicTimeline, TIMELINE_INFO sUserTimeline ) { bool needToReset = false; if ( m_username.Compare( username ) || m_password.Compare( password ) ) needToReset = true; m_service->m_username = m_username = username; m_service->m_password = m_password = password; if ( needToReset ) { // screen名 (再)設定 GetScreenName(); } m_simultaneousPost = checkMultiPost ? true : false; m_sFriendsTimeline = sFriendsTimeline; m_sPublicTimeline = sPublicTimeline; m_sUserTimeline = sUserTimeline; }
void CreateScreenDlg::accept() { const QString screenName = GetScreenName(); QString errorMsg(""); if (!screenName.isNull() && !screenName.isEmpty()) { if(!HierarchyTreeController::Instance()->GetActivePlatform()->IsAggregatorOrScreenNamePresent(screenName)) { QDialog::accept(); } else { errorMsg = "Please fill screen name field with unique value.\r\nThe same name with any of aggregators is forbidden."; } } else { errorMsg = ("Please fill screen name field with value. It can't be empty."); } if(!errorMsg.isEmpty()) { QMessageBox msgBox; msgBox.setText(errorMsg); msgBox.exec(); } }
const std::string ribi::Program::GetFilenameBase() const noexcept { std::string s = this->GetTypeName(); s[0] = std::toupper(s[0]); return s + GetScreenName(); }