本文整理汇总了C++中Account::SaveSettings方法的典型用法代码示例。如果您正苦于以下问题:C++ Account::SaveSettings方法的具体用法?C++ Account::SaveSettings怎么用?C++ Account::SaveSettings使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Account
的用法示例。
在下文中一共展示了Account::SaveSettings方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: disk
AccountManager::~AccountManager()
{
Account* account = (Account*)(m_accountlist.First());
Account* next_account;
while (account)
{
next_account = (Account*)(account->Suc());
account->Out();
if (!m_m2_init_failed) //Only store accounts.ini if we know we didn't fail reading it!
{
account->SaveSettings(FALSE); // don't commit, it will happen below
}
OP_DELETE(account);
account = next_account;
}
if (!m_m2_init_failed && m_headerdisplay)
{
m_headerdisplay->SaveSettings();
}
OP_DELETE(m_headerdisplay);
if (!m_m2_init_failed) //Only store accounts.ini if we know we didn't fail reading it!
{
// write prefs file
OpStatus::Ignore(CommitPrefsFile(TRUE)); //We need to get this on disk (not much we can do if Commit fails)
}
if (m_prefs_file)
MessageEngine::GetInstance()->GetGlueFactory()->DeletePrefsFile(m_prefs_file); //If m_m2_init_failed, this will assert, even though everything is ok
}