Lines Matching refs:uid
147 uint32 uid; in Init() member
160 uint32 uid = B_BENDIAN_TO_HOST_INT32(entries[i].uid); in Init() local
163 fFlagsMap.insert(std::make_pair(uid, flags)); in Init()
199 IMAPFolder::GetMessageEntryRef(uint32 uid, entry_ref& ref) in GetMessageEntryRef() argument
202 return _GetMessageEntryRef(uid, ref); in GetMessageEntryRef()
207 IMAPFolder::GetMessageUID(const entry_ref& ref, uint32& uid) const in GetMessageUID()
214 uid = _ReadUniqueID(node); in GetMessageUID()
215 if (uid == 0) in GetMessageUID()
223 IMAPFolder::MessageFlags(uint32 uid) in MessageFlags() argument
226 UIDToFlagsMap::const_iterator found = fFlagsMap.find(uid); in MessageFlags()
238 IMAPFolder::SyncMessageFlags(uint32 uid, uint32 mailboxFlags) in SyncMessageFlags() argument
240 if (uid > LastUID()) in SyncMessageFlags()
247 status_t status = GetMessageEntryRef(uid, ref); in SyncMessageFlags()
253 fProtocol.UpdateMessageFlags(*this, uid, IMAP::kDeleted); in SyncMessageFlags()
260 fPendingFlagsMap.insert(std::make_pair(uid, mailboxFlags)); in SyncMessageFlags()
267 fSynchronizedUIDsSet.insert(uid); in SyncMessageFlags()
269 uint32 previousFlags = MessageFlags(uid); in SyncMessageFlags()
291 fFlagsMap[uid] = nextFlags; in SyncMessageFlags()
295 fProtocol.UpdateMessageFlags(*this, uid, nextFlags); in SyncMessageFlags()
318 uint32 uid = iterator->first; in MessageEntriesFetched() local
319 if (fSynchronizedUIDsSet.find(uid) == fSynchronizedUIDsSet.end()) in MessageEntriesFetched()
320 deleteUIDs.insert(uid); in MessageEntriesFetched()
367 uint32 uid, uint32 flags) in MessageStored() argument
370 _WriteUniqueID(file, uid); in MessageStored()
380 fRefMap.insert(std::make_pair(uid, ref)); in MessageStored()
382 if (uid > fLastUID) { in MessageStored()
384 fLastUID = uid; in MessageStored()
387 status_t status = _WriteUInt32(directory, kLastUIDAttribute, uid); in MessageStored()
437 IMAPFolder::StoreBody(uint32 uid, BDataIO& stream, size_t& length, in StoreBody() argument
440 status_t status = GetMessageEntryRef(uid, ref); in StoreBody()
459 IMAPFolder::BodyStored(entry_ref& ref, BFile& file, uint32 uid) in BodyStored() argument
465 _NotifyStoredBody(ref, uid, B_OK); in BodyStored()
470 IMAPFolder::StoringBodyFailed(const entry_ref& ref, uint32 uid, status_t error) in StoringBodyFailed() argument
472 _NotifyStoredBody(ref, uid, error); in StoringBodyFailed()
477 IMAPFolder::DeleteMessage(uint32 uid) in DeleteMessage() argument
481 _DeleteLocalMessage(uid); in DeleteMessage()
538 uint32 uid = _ReadUniqueID(node); in _ReadFolderState() local
545 fRefMap.insert(std::make_pair(uid, ref)); in _ReadFolderState()
546 fFlagsMap.insert(std::make_pair(uid, flags)); in _ReadFolderState()
583 IMAPFolder::_Token(uint32 uid) const in _Token()
588 token.uid = uid; in _Token()
595 IMAPFolder::_NotifyStoredBody(const entry_ref& ref, uint32 uid, status_t status) in _NotifyStoredBody() argument
598 MessengerMap::iterator found = fPendingBodies.find(uid); in _NotifyStoredBody()
612 IMAPFolder::_GetMessageEntryRef(uint32 uid, entry_ref& ref) const in _GetMessageEntryRef() argument
614 UIDToRefMap::const_iterator found = fRefMap.find(uid); in _GetMessageEntryRef()
624 IMAPFolder::_DeleteLocalMessage(uint32 uid) in _DeleteLocalMessage() argument
627 status_t status = GetMessageEntryRef(uid, ref); in _DeleteLocalMessage()
631 fRefMap.erase(uid); in _DeleteLocalMessage()
632 fFlagsMap.erase(uid); in _DeleteLocalMessage()
714 IMAPFolder::_WriteUniqueID(BNode& node, uint32 uid) const in _WriteUniqueID()
718 string << uid; in _WriteUniqueID()