本文整理汇总了C++中ContactList::IsEmpty方法的典型用法代码示例。如果您正苦于以下问题:C++ ContactList::IsEmpty方法的具体用法?C++ ContactList::IsEmpty怎么用?C++ ContactList::IsEmpty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ContactList
的用法示例。
在下文中一共展示了ContactList::IsEmpty方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Sync
wxmailto_status Smtp::Sync()
{
/*************************/
if (TestDestroy())
return CleanupAndAbort();
/*************************/
wxmailto_status status;
OutgoingMessageList message_list;
if (ID_OK!=(status=wxGetApp().GetAppModuleManager()->GetMessageStore()->GetOutgoingMessages(message_list)))
return status;
if (message_list.IsEmpty())
return ID_OK;
/*************************/
if (TestDestroy())
return CleanupAndAbort();
/*************************/
if (ID_OK!=(status=InitializeAndConnectSocket()) ||
ID_OK!=(status=ReadInitialGreeting()))
{
return status;
}
/*************************/
if (TestDestroy())
return CleanupAndAbort();
/*************************/
wxString read_string, write_string;
wxString fqdn_idna_domain;
wxASSERT(true==IdnaGlue::ToASCII(GetAccount()->GetFQDN(), fqdn_idna_domain));
if (m_supported_ehlo_features.m_ehlo_supported)
{
if (ID_OK!=HandleEHLO(fqdn_idna_domain))
{
m_supported_ehlo_features.DisableEhloSupport();
return Sync(); //Call self, but without EHLO support
}
} else {
if (ID_OK!=(status=HandleHELO(fqdn_idna_domain)))
{
HandleQUIT();
return status;
}
}
/*************************/
if (TestDestroy())
return CleanupAndAbort();
/*************************/
OutgoingMessageList::iterator iter;
for (iter=message_list.begin(); iter!=message_list.end(); ++iter)
{
/*************************/
if (TestDestroy())
return CleanupAndAbort();
/*************************/
OutgoingMessage* message = *iter;
if (!message)
continue;
wxASSERT(message->HasTag(wxGetApp().GetAppModuleManager()->GetMessageStore()->GetOutboxTag()));
wxASSERT(NULL!=message->GetFrom());
ContactList recipients;
if (ID_OK!=(status=message->GetAllRecipients(recipients)) ||
(iter!=message_list.begin() && ID_OK!=(status=HandleRSET())) || //RSET for all but the first message
ID_OK!=(status=HandleMAIL(message->GetFrom())))
{
HandleQUIT();
return status;
}
if (recipients.IsEmpty())
continue;
ContactList::iterator iter;
for (iter=recipients.begin(); iter!=recipients.end(); ++iter)
{
if (*iter && ID_OK!=(status=HandleRCPT(*iter)))
{
HandleQUIT();
return status;
}
}
/*************************/
if (TestDestroy())
return CleanupAndAbort();
/*************************/
if (ID_OK!=(status=HandleDATA(message)))
{
//.........这里部分代码省略.........