Changeset 124
- Timestamp:
- 11/18/07 21:10:24 (1 year ago)
- Location:
- Mulberry/branches/win32-merge-121/Sources_Common
- Files:
-
- 66 modified
-
Application/Calendar/Calendar_View/Calendar_Store_View/CCalendarStoreViewCommon.cp (modified) (1 diff)
-
Application/Mailbox/CMailboxTableCommon.cp (modified) (1 diff)
-
Application/Preferences/CBlockOptionsMap.cp (modified) (3 diffs)
-
Application/Preferences/CCalendarAccount.cp (modified) (2 diffs)
-
Application/Preferences/CIdentity.cp (modified) (1 diff)
-
Application/Preferences/CMatchItem.cp (modified) (2 diffs)
-
Application/Preferences/COptionsMap.cp (modified) (2 diffs)
-
Application/Preferences/COptionsMap.h (modified) (1 diff)
-
Application/Preferences/CPreferenceValue.h (modified) (1 diff)
-
Application/Preferences/CPreferences.cp (modified) (2 diffs)
-
Application/Preferences/CTextMacros.cp (modified) (2 diffs)
-
Application/Preferences/CWindowStatesXtras.cp (modified) (1 diff)
-
Application/Server/CServerBrowseCommon.cp (modified) (3 diffs)
-
Application/Server/CServerTableCommon.cp (modified) (24 diffs)
-
Calendar_Store/Clients/CCalDAVCalendarClient.cpp (modified) (1 diff)
-
Calendar_Store/Clients/CLocalCalendarClient.cpp (modified) (7 diffs)
-
Calendar_Store/Clients/CWebDAVCalendarClient.cpp (modified) (2 diffs)
-
Formatting/CClickElement.cp (modified) (1 diff)
-
Formatting/CParserEnriched.cp (modified) (1 diff)
-
Formatting/CParserHTML.cp (modified) (4 diffs)
-
Formatting/CParserHTMLStack.h (modified) (6 diffs)
-
HTTP/HTTPClient/CHTTPAuthorizationDigest.cpp (modified) (4 diffs)
-
HTTP/HTTPClient/CHTTPRequestResponse.cpp (modified) (1 diff)
-
Mail/Address/CAdbkAddress.h (modified) (1 diff)
-
Mail/Address/CGroup.h (modified) (1 diff)
-
Mail/Attachments/CMIMESupport.cp (modified) (1 diff)
-
Mail/Charsets/CFontMapper.cp (modified) (1 diff)
-
Mail/Control/CConnectionManager.cp (modified) (2 diffs)
-
Mail/Control/CSMTPAccountManager.cp (modified) (1 diff)
-
Mail/Filters/CAFFilter.cp (modified) (1 diff)
-
Mail/Filters/CFullFileStream.cp (modified) (4 diffs)
-
Mail/Filters/CFullFileStream.h (modified) (1 diff)
-
Mail/Filters/CMIMEFilters.cp (modified) (1 diff)
-
Mail/Filters/filterbuf.cp (modified) (1 diff)
-
Mail/INET_Clients/CINETClient.cp (modified) (1 diff)
-
Mail/INET_Clients/IMAP/CIMAPClient.cp (modified) (2 diffs)
-
Mail/INET_Clients/LDAP/CLDAPClient.cp (modified) (5 diffs)
-
Mail/Local_Clients/CLocalAdbkClient.cp (modified) (1 diff)
-
Mail/Mailbox/CMbox.cp (modified) (2 diffs)
-
Mail/Message/CEnvelope.cp (modified) (1 diff)
-
Mail/Message/CEnvelope.h (modified) (2 diffs)
-
Mail/Message/CMessage.cp (modified) (2 diffs)
-
Mail/Network/CTCPStream.cp (modified) (2 diffs)
-
Mail/Protocols/CINETProtocol.cp (modified) (1 diff)
-
Mail/Protocols/CMboxProtocol.cp (modified) (3 diffs)
-
Mail/Search/CSearchEngine.cp (modified) (1 diff)
-
Mail/Search/CSearchItem.cp (modified) (2 diffs)
-
Mail/URLs/CURL.cp (modified) (1 diff)
-
Offline/CLocalCommon.cp (modified) (2 diffs)
-
Offline/Mail/CLocalClient.cp (modified) (5 diffs)
-
Offline/Mail/CLocalMessage.cp (modified) (1 diff)
-
Offline/Mail/CPOP3Client.cp (modified) (1 diff)
-
Plugins/SSL/CCertificateManager.cp (modified) (1 diff)
-
Plugins/SSL/CCertificateManagerCOM.h (modified) (1 diff)
-
Plugins/SSL/CCertificateStore.cp (modified) (2 diffs)
-
Plugins/SSL/CDLLFunctions.cp (modified) (1 diff)
-
Plugins/SSL/loadsslfunc.cp (modified) (1 diff)
-
Utilities/CStringUtils.h (modified) (1 diff)
-
Utilities/cdfstream.h (modified) (1 diff)
-
Utilities/cdmutex.h (modified) (2 diffs)
-
Utilities/cdsharedptr.h (modified) (1 diff)
-
Utilities/cdstring.cp (modified) (10 diffs)
-
Utilities/cdstring.h (modified) (4 diffs)
-
Utilities/diriterator.cp (modified) (1 diff)
-
i18n/Charsets/CCharsetManager.cp (modified) (1 diff)
-
os_dep.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Mulberry/branches/win32-merge-121/Sources_Common/Application/Calendar/Calendar_View/Calendar_Store_View/CCalendarStoreViewCommon.cp
r19 r124 39 39 void CCalendarStoreView::ListenTo_Message(long msg, void* param) 40 40 { 41 switch(msg) 42 { 43 default: 44 CTableView::ListenTo_Message(msg, param); 45 break; 46 } 41 CTableView::ListenTo_Message(msg, param); 47 42 } 48 43 -
Mulberry/branches/win32-merge-121/Sources_Common/Application/Mailbox/CMailboxTableCommon.cp
r19 r124 1064 1064 TableIndexT can_move_select = (ascending ? pin_select - visible_top : visible_bottom - pin_select); 1065 1065 TableIndexT can_move_unseen = (ascending ? pin_unseen - visible_top : visible_bottom - pin_unseen); 1066 TableIndexT can_move = ::min(can_move_select, can_move_unseen);1066 TableIndexT can_move = min(can_move_select, can_move_unseen); 1067 1067 1068 1068 // If no move allowed then exit -
Mulberry/branches/win32-merge-121/Sources_Common/Application/Preferences/CBlockOptionsMap.cp
r19 r124 52 52 // Partial compare 53 53 if ((::strncmp((*iter).first, mSection, len_comp) == 0) && 54 ((*iter).first[len_comp] == mSeparator[ 0UL]) &&55 (::strchr(((const char*) (*iter).first) + len_comp + 1, mSeparator[ 0UL]) == NULL) &&54 ((*iter).first[len_comp] == mSeparator[(cdstring::size_type)0]) && 55 (::strchr(((const char*) (*iter).first) + len_comp + 1, mSeparator[(cdstring::size_type)0]) == NULL) && 56 56 (num-- < 1)) 57 57 { … … 76 76 cdstring match = (*iter).first; 77 77 if ((::strncmp(match, mSection, len_comp) == 0) && 78 (match[len_comp] == mSeparator[ 0UL]) &&79 (::strchr(((const char*) match) + len_comp + 1, mSeparator[ 0UL]) != NULL))78 (match[len_comp] == mSeparator[(cdstring::size_type)0]) && 79 (::strchr(((const char*) match) + len_comp + 1, mSeparator[(cdstring::size_type)0]) != NULL)) 80 80 { 81 81 // Extract key 82 82 cdstring test_key = &match[len_comp + 1]; 83 *::strchr(test_key.c_str_mod(), mSeparator[ 0UL]) = 0;83 *::strchr(test_key.c_str_mod(), mSeparator[(cdstring::size_type)0]) = 0; 84 84 85 85 // Compare with last one … … 106 106 cdstring match = (*iter).first; 107 107 if (!::strncmp(match, mSection, len_comp) && 108 (match[len_comp] == mSeparator[ 0UL]))108 (match[len_comp] == mSeparator[(cdstring::size_type)0])) 109 109 { 110 110 // Add to found list -
Mulberry/branches/win32-merge-121/Sources_Common/Application/Preferences/CCalendarAccount.cp
r19 r124 51 51 CCalendarAccount::~CCalendarAccount() 52 52 { 53 switch(mServerType)54 {55 default:56 break;57 }58 53 } 59 54 … … 70 65 void CCalendarAccount::SetServerType(EINETServerType type) 71 66 { 72 // Delete existing73 switch(mServerType)74 {75 default:76 break;77 }78 79 67 // Add new 80 68 mServerType = type; -
Mulberry/branches/win32-merge-121/Sources_Common/Application/Preferences/CIdentity.cp
r54 r124 319 319 cdstring acct; 320 320 txt.get(acct, true); 321 if (acct[ 0UL] == ':')321 if (acct[(cdstring::size_type)0] == ':') 322 322 { 323 mSMTPAccount.first = &acct[ 1UL];323 mSMTPAccount.first = &acct[(cdstring::size_type)1]; 324 324 mSMTPAccount.second = false; 325 325 } -
Mulberry/branches/win32-merge-121/Sources_Common/Application/Preferences/CMatchItem.cp
r19 r124 68 68 { 69 69 // Count number of true items in selected range 70 return ::count(mBitsSet.begin() + eSelected_First, mBitsSet.begin() + eSelected_Last + 1, true); 70 bool val = true; 71 return ::count(mBitsSet.begin() + eSelected_First, mBitsSet.begin() + eSelected_Last + 1, val); 71 72 } 72 73 … … 74 75 { 75 76 // If nothing selected return 76 size_t bitsset = ::count(mBitsSet.begin(), mBitsSet.end(), true); 77 bool val = true; 78 size_t bitsset = ::count(mBitsSet.begin(), mBitsSet.end(), val); 77 79 bitsset += mSearchSet.size(); 78 80 if (!bitsset) -
Mulberry/branches/win32-merge-121/Sources_Common/Application/Preferences/COptionsMap.cp
r19 r124 127 127 128 128 // Look for new style s-expression 129 if ((all[ 0UL] == '(') &&129 if ((all[(cdstring::size_type)0] == '(') && 130 130 (all[all.length() - 1] == ')')) 131 131 { … … 354 354 value = 0; 355 355 else 356 value = str_value[ 0UL];356 value = str_value[(cdstring::size_type)0]; 357 357 } 358 358 return result; -
Mulberry/branches/win32-merge-121/Sources_Common/Application/Preferences/COptionsMap.h
r54 r124 221 221 { mSeparator = separator; } 222 222 virtual char GetSeparator(void) const 223 { return mSeparator[ 0UL]; }223 { return mSeparator[(cdstring::size_type)0]; } 224 224 225 225 protected: -
Mulberry/branches/win32-merge-121/Sources_Common/Application/Preferences/CPreferenceValue.h
r19 r124 43 43 44 44 bool IsDirty() const 45 { return ( mRights & ePrefsACL_Dirty!= 0); }45 { return ((mRights & ePrefsACL_Dirty) != 0); } 46 46 void SetDirty(bool dirty) 47 47 { mRights = (dirty ? (mRights | ePrefsACL_Dirty) : (mRights & ~ePrefsACL_Dirty)); } 48 48 49 49 bool IsReadOnly() const 50 { return ( mRights & ePrefsACL_ReadOnly!= 0); }50 { return ((mRights & ePrefsACL_ReadOnly) != 0); } 51 51 void SetReadOnly(bool read_only) 52 52 { mRights = (read_only ? (mRights | ePrefsACL_Dirty) : (mRights & ~ePrefsACL_Dirty)); } -
Mulberry/branches/win32-merge-121/Sources_Common/Application/Preferences/CPreferences.cp
r19 r124 524 524 { 525 525 if (!mRAutoCacheIncrement.mValue && (mRHiCache.mValue <= mRCacheIncrement.mValue)) 526 mRHiCache.mValue = 2* ::max(mRCacheIncrement.mValue, 20L);526 mRHiCache.mValue = 2*max(mRCacheIncrement.mValue, 20L); 527 527 else if (mRAutoCacheIncrement.mValue && (mRHiCache.mValue < 40L)) 528 528 mRHiCache.mValue = 40; … … 535 535 { 536 536 if (!mLAutoCacheIncrement.mValue && (mLHiCache.mValue <= mLCacheIncrement.mValue)) 537 mLHiCache.mValue = 2* ::max(mLCacheIncrement.mValue, 20L);537 mLHiCache.mValue = 2*max(mLCacheIncrement.mValue, 20L); 538 538 else if (mLAutoCacheIncrement.mValue && (mLHiCache.mValue < 40L)) 539 539 mLHiCache.mValue = 40; -
Mulberry/branches/win32-merge-121/Sources_Common/Application/Preferences/CTextMacros.cp
r19 r124 66 66 67 67 // Change an item if not duplicate 68 bool CTextMacros::C TextMacros::Change(const cdstring& oldname, const cdstring& newname, const cdstring& macro)68 bool CTextMacros::Change(const cdstring& oldname, const cdstring& newname, const cdstring& macro) 69 69 { 70 70 // Try to find the old name - fail if it does not exist … … 95 95 96 96 // Delete an item if not duplicate 97 bool CTextMacros:: CTextMacros::Delete(const cdstring& name)97 bool CTextMacros::Delete(const cdstring& name) 98 98 { 99 99 // Try to find it - fail if it does not exist -
Mulberry/branches/win32-merge-121/Sources_Common/Application/Preferences/CWindowStatesXtras.cp
r19 r124 1579 1579 1580 1580 mSort = cSortAddressLastName; 1581 mAddressSize = lround(0x10000000 * 0.5);1581 mAddressSize = (long)(0x10000000 * 0.5); 1582 1582 mGroupSize = 0; 1583 1583 mAddressShow = true; -
Mulberry/branches/win32-merge-121/Sources_Common/Application/Server/CServerBrowseCommon.cp
r19 r124 50 50 51 51 #include <typeinfo> 52 53 #if __dest_os == __win32_os54 // BUG in Metrowerks Compiler - need this specialization55 inline void allocator<CServerBrowse::SServerBrowseData>::deallocate(CServerBrowse::SServerBrowseData* p, size_t)56 {57 delete p;58 }59 #endif60 52 61 53 #pragma mark ____________________________Message Handling … … 1669 1661 1670 1662 // Adjust index to last remaining server 1671 index = ::min(index, (mShowFavourites ? CMailAccountManager::sMailAccountManager->FetchServerOffset() : 0) + 1);1663 index = min(index, (mShowFavourites ? CMailAccountManager::sMailAccountManager->FetchServerOffset() : 0) + 1); 1672 1664 1673 1665 // Remove this and all children … … 1819 1811 1820 1812 // Get its index (modified after delete) and remove its hierarchy 1821 index = ::min(index, FetchIndexOf(flatten));1813 index = min(index, FetchIndexOf(flatten)); 1822 1814 RemoveRows(1, index, false); 1823 1815 -
Mulberry/branches/win32-merge-121/Sources_Common/Application/Server/CServerTableCommon.cp
r62 r124 74 74 #include <string.h> 75 75 76 #if __dest_os == __win32_os77 // BUG in Metrowerks Compiler - need this specialization78 inline void allocator<CServerBrowse::SServerBrowseData>::deallocate(CServerBrowse::SServerBrowseData* p, size_t)79 {80 delete p;81 }82 #endif83 84 76 #pragma mark ____________________________Management 85 77 … … 240 232 // Add mailbox selection to list 241 233 CMboxList selected; 242 DoToSelection1((DoToSelection1PP) &CServer Browse::AddSelectionToList, &selected);234 DoToSelection1((DoToSelection1PP) &CServerTable::AddSelectionToList, &selected); 243 235 244 236 // Only do one if preview does not do substitute … … 357 349 // Add selection to list 358 350 CMboxList selected; 359 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddDSelectionToList, &selected))351 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddDSelectionToList, &selected)) 360 352 { 361 353 // New draft with identity tied to first selected mailbox … … 415 407 416 408 // Add selection to list 417 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddSelectedNodesToList, &selected))409 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddSelectedNodesToList, &selected)) 418 410 { 419 411 // Logon to all protocols … … 433 425 434 426 // Add selection to list 435 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddSelectedNodesToList, &selected))427 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddSelectedNodesToList, &selected)) 436 428 { 437 429 // Logoff to all protocols … … 635 627 636 628 // Remove selection from list 637 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddSelectedNodesToList, &selected))629 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddSelectedNodesToList, &selected)) 638 630 { 639 631 for(CServerNodeArray::reverse_iterator iter = selected.rbegin(); iter != selected.rend(); iter++) … … 665 657 666 658 // Remove selection from list 667 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddSelectedNodesToList, &selected))659 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddSelectedNodesToList, &selected)) 668 660 { 669 661 for(CServerNodeArray::reverse_iterator iter = selected.rbegin(); iter != selected.rend(); iter++) … … 687 679 688 680 // Add selection to list 689 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddSelectedNodesToList, &selected))681 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddSelectedNodesToList, &selected)) 690 682 { 691 683 for(CServerNodeArray::reverse_iterator iter = selected.rbegin(); iter != selected.rend(); iter++) … … 827 819 828 820 // Add selection to list 829 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddSelectedNodesToList, &selected))821 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddSelectedNodesToList, &selected)) 830 822 { 831 823 // Remove wds from account (do in reverse) … … 866 858 867 859 // Add selection to list 868 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddSelectedNodesToList, &selected))860 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddSelectedNodesToList, &selected)) 869 861 { 870 862 // Remove wds from account (do in reverse) … … 891 883 892 884 // Add selection to list 893 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddSelectedNodesToList, &selected))885 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddSelectedNodesToList, &selected)) 894 886 { 895 887 // Reset hierarchy for each node (avoid doing more than once per server) … … 966 958 { 967 959 // Add selection to list 968 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddDSelectionToList, &selected))960 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddDSelectionToList, &selected)) 969 961 { 970 962 // Check all mboxes first … … 1108 1100 try 1109 1101 { 1110 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddSelectionToList, &selected))1102 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddSelectionToList, &selected)) 1111 1103 { 1112 1104 // Check all mboxes … … 1244 1236 1245 1237 // Add named selection to list 1246 DoToSelection1((DoToSelection1PP) &CServer Browse::AddSelectionToList, &mboxes);1238 DoToSelection1((DoToSelection1PP) &CServerTable::AddSelectionToList, &mboxes); 1247 1239 1248 1240 // Check that each mailbox to be opened is on a logged in server … … 1442 1434 { 1443 1435 // Get all selected mailboxes 1444 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddSelectionToList, &selected))1436 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddSelectionToList, &selected)) 1445 1437 { 1446 1438 // Punt unseen in all mboxes … … 1501 1493 1502 1494 // Add selection to list 1503 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddSelectedNodesToList, &selected))1495 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddSelectedNodesToList, &selected)) 1504 1496 { 1505 1497 for(CServerNodeArray::reverse_iterator iter = selected.rbegin(); iter != selected.rend(); iter++) … … 1527 1519 // Get all selected mailboxes 1528 1520 CMboxList selected; 1529 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddDSelectionToList, &selected))1521 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddDSelectionToList, &selected)) 1530 1522 { 1531 1523 // Generate string for list of items being deleted … … 1601 1593 try 1602 1594 { 1603 if (DoToSelection1((DoToSelection1PP) &CServer Browse::AddDSelectionToList, &selected))1595 if (DoToSelection1((DoToSelection1PP) &CServerTable::AddDSelectionToList, &selected)) 1604 1596 { 1605 1597 //StValueChanger<bool> change(mListChanging, true); … … 1676 1668 { 1677 1669 // Get all selected mailboxes <