本文整理汇总了C++中Account::GetAllFolders方法的典型用法代码示例。如果您正苦于以下问题:C++ Account::GetAllFolders方法的具体用法?C++ Account::GetAllFolders怎么用?C++ Account::GetAllFolders使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Account
的用法示例。
在下文中一共展示了Account::GetAllFolders方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Init
OP_STATUS GroupsModel::Init(UINT16 account_id, BOOL read_only)
{
m_account_id = account_id;
m_read_only = read_only;
Account* account = MessageEngine::GetInstance()->GetAccountById(account_id);
if (account)
{
RETURN_IF_ERROR(MessageEngine::GetInstance()->AddAccountListener(this));
switch (account->GetIncomingProtocol())
{
case AccountTypes::NEWS:
m_folder_type = OpTypedObject::NEWSGROUP_TYPE;
break;
case AccountTypes::IMAP:
m_folder_type = OpTypedObject::IMAPFOLDER_TYPE;
break;
case AccountTypes::RSS:
m_folder_type = OpTypedObject::NEWSFEED_TYPE;
break;
case AccountTypes::IRC:
m_folder_type = OpTypedObject::CHATROOM_TYPE;
break;
}
account->GetAllFolders();
}
return OpStatus::OK;
}
示例2: Refresh
void GroupsModel::Refresh()
{
// Clear up internal state.
DeleteAll();
m_groups_hash_table.RemoveAll();
m_folder_loading_completed = FALSE;
// Tell the account to fetch all folders.
Account* account = MessageEngine::GetInstance()->GetAccountById(m_account_id);
OP_ASSERT(account != 0);
account->GetAllFolders();
}