コード例 #1
0
void AccountModifyDlg::updateBlockedContacts(const PrivacyList& l)
{
	privacyInitialized = true;
	privacyModel.setList(l);
	lb_customPrivacy->setVisible(!l.onlyBlockItems());
	setPrivacyTabEnabled(true);
}
コード例 #2
0
void AccountModifyDlg::updatePrivacyTab()
{
	if (tab_main->currentWidget() == tab_privacy) {
		if (pa && pa->loggedIn()) {
			if (!privacyInitialized) {
				lb_privacyStatus->setText(tr("Retrieving blocked contact list ..."));
				setPrivacyTabEnabled(false);
				pa->privacyManager()->getDefaultList();
			}
			//else {
			//	setPrivacyTabEnabled(true);
			//}
		}
		else {
			lb_privacyStatus->setText(tr("You are not connected."));
			privacyInitialized = false;
			setPrivacyTabEnabled(false);
		}
	}
}
コード例 #3
0
void AccountModifyDlg::getDefaultList_error()
{
	privacyInitialized = true;
	lb_privacyStatus->setText(tr("Your server does not support blocking."));
	setPrivacyTabEnabled(false);
}