PageRenderTime 51ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/Message/MailMessageStore.h

http://github.com/kennytm/iphone-private-frameworks
C Header | 157 lines | 138 code | 5 blank | 14 comment | 0 complexity | a6e97079ac1716c7313d2a86aca9f8c3 MD5 | raw file
  1. /**
  2. * This header is generated by class-dump-z 0.2-1.
  3. * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
  4. *
  5. * Source: /System/Library/PrivateFrameworks/Message.framework/Message
  6. */
  7. #import "Message-Structs.h"
  8. #import <MIME/MessageStore.h>
  9. #import "MailMessageStore.h"
  10. @class ActivityMonitor, NSMutableArray, NSTimer, MailAccount, MailboxUid;
  11. @interface MailMessageStore : MessageStore {
  12. struct {
  13. unsigned isReadOnly : 1;
  14. unsigned hasUnsavedChangesToMessageData : 1;
  15. unsigned haveOpenLockFile : 1;
  16. unsigned rebuildingTOC : 1;
  17. unsigned compacting : 1;
  18. unsigned cancelInvalidation : 1;
  19. unsigned forceInvalidation : 1;
  20. unsigned isWritingChangesToDisk : 1;
  21. unsigned isTryingToClose : 1;
  22. unsigned compactOnClose : 1;
  23. unsigned reserved : 22;
  24. } _flags;
  25. MailboxUid* _mailboxUid;
  26. MailAccount* _account;
  27. NSMutableArray* _allMessages;
  28. unsigned _allMessagesSize;
  29. unsigned _deletedMessagesSize;
  30. unsigned _deletedMessageCount;
  31. unsigned _unreadMessageCount;
  32. unsigned _lastFetchCount;
  33. unsigned _generationNumber;
  34. int _state;
  35. NSTimer* _timer;
  36. double timeOfLastAutosaveOperation;
  37. ActivityMonitor* _openMonitor;
  38. }
  39. +(BOOL)createEmptyStoreIfNeededForPath:(id)path;
  40. +(BOOL)createEmptyStoreForPath:(id)path;
  41. +(BOOL)storeAtPathIsWritable:(id)pathIsWritable;
  42. +(BOOL)cheapStoreAtPathIsEmpty:(id)pathIsEmpty;
  43. // inherited: +(Class)classForMimePart;
  44. +(int)copyMessages:(id)messages toMailbox:(id)mailbox markAsRead:(BOOL)read deleteOriginals:(BOOL)originals isDeletion:(BOOL)deletion unsuccessfulOnes:(id)ones;
  45. -(id)initWithMailboxUid:(id)mailboxUid readOnly:(BOOL)only;
  46. // inherited: -(void)dealloc;
  47. -(void)openAsynchronously;
  48. -(void)openSynchronously;
  49. -(void)didOpen;
  50. -(void)cancelOpen;
  51. -(void)writeUpdatedMessageDataToDisk;
  52. -(MailAccount*)account;
  53. -(MailboxUid*)mailboxUid;
  54. -(BOOL)isOpened;
  55. -(id)storePathRelativeToAccount;
  56. -(NSString*)displayName;
  57. -(const char*)displayNameForLogging;
  58. -(BOOL)isReadOnly;
  59. // inherited: -(id)description;
  60. -(BOOL)isTrash;
  61. -(BOOL)isDrafts;
  62. -(void)messageFlagsDidChange:(id)messageFlags flags:(id)flags;
  63. -(void)structureDidChange;
  64. -(void)messagesWereAdded:(id)added;
  65. -(void)messagesWereCompacted:(id)compacted;
  66. -(void)updateUserInfoToLatestValues;
  67. -(unsigned)totalMessageSize;
  68. -(void)deletedCount:(unsigned*)count andSize:(unsigned*)size;
  69. -(unsigned)totalCount;
  70. -(unsigned)nonDeletedCount;
  71. -(unsigned)serverMessageCount;
  72. -(unsigned)serverUnreadOnlyOnServerCount;
  73. -(unsigned)serverUnreadCount;
  74. -(BOOL)hasMoreMessages:(unsigned)messages;
  75. -(void)purgeMessagesBeyond:(unsigned)beyond;
  76. -(unsigned)unreadCount;
  77. -(BOOL)hasMessageForAccount:(id)account;
  78. -(unsigned)indexOfMessage:(id)message;
  79. -(NSArray*)copyOfAllMessages; // array of LibraryMessages
  80. -(id)copyOfMessagesInRange:(NSRange)range;
  81. -(id)mutableCopyOfAllMessages;
  82. -(id)copyOfAllMessagesWithOptions:(unsigned)options;
  83. -(id)copyOfAllMessagesForBodyLoadingFromRowID:(unsigned)rowID limit:(unsigned)limit;
  84. -(id)copyMessagesMatchingText:(id)text;
  85. -(id)copyMessagesMatchingText:(id)text options:(unsigned)options;
  86. -(id)copyMessagesMatchingCriterion:(id)criterion options:(unsigned)options;
  87. -(BOOL)canFetchSearchResults;
  88. -(int)fetchMessagesMatchingCriterion:(id)criterion limit:(unsigned)limit;
  89. -(id)_defaultRouterDestination;
  90. -(id)finishRoutingMessages:(id)messages routed:(id)routed;
  91. -(BOOL)canRebuild;
  92. -(void)rebuildTableOfContentsAsynchronously;
  93. -(BOOL)canCompact;
  94. -(void)doCompact;
  95. -(void)deleteMessagesOlderThanNumberOfDays:(int)days compact:(BOOL)compact;
  96. -(void)deleteMessages:(id)messages moveToTrash:(BOOL)trash;
  97. -(void)undeleteMessages:(id)messages;
  98. -(void)messagesWereDeleted:(id)deleted;
  99. -(BOOL)allowsAppend;
  100. -(int)appendMessages:(id)messages unsuccessfulOnes:(id)ones newMessageIDs:(id)ids newMessages:(id)messages4 flagsToSet:(id)set;
  101. -(int)appendMessages:(id)messages unsuccessfulOnes:(id)ones newMessageIDs:(id)ids newMessages:(id)messages4;
  102. -(int)appendMessages:(id)messages unsuccessfulOnes:(id)ones newMessageIDs:(id)ids;
  103. -(int)appendMessages:(id)messages unsuccessfulOnes:(id)ones;
  104. -(id)messageWithValue:(id)value forHeader:(id)header options:(unsigned)options;
  105. -(id)messageForMessageID:(id)messageID;
  106. -(id)messageForRemoteID:(id)remoteID;
  107. // inherited: -(id)headerDataForMessage:(id)message downloadIfNecessary:(BOOL)necessary;
  108. -(BOOL)hasCachedDataForMimePart:(id)mimePart;
  109. -(id)setFlagsFromDictionary:(id)dictionary forMessages:(id)messages;
  110. -(id)setFlagsFromDictionary:(id)dictionary forMessage:(id)message;
  111. -(void)setFlag:(id)flag state:(BOOL)state forMessages:(id)messages;
  112. -(id)willSetFlagsFromDictionary:(id)dictionary forMessages:(id)messages;
  113. -(void)setFlagsCancelled:(id)cancelled forMessages:(id)messages;
  114. -(void)startSynchronization;
  115. // inherited: -(void)setNumberOfAttachments:(unsigned)attachments isSigned:(BOOL)aSigned isEncrypted:(BOOL)encrypted forMessage:(id)message;
  116. -(id)status;
  117. -(int)fetchSynchronously;
  118. -(int)fetchNewMessagesAndSynchronizeOldMessages:(BOOL)messages;
  119. -(int)fetchMessagesReceivedBetween:(id)between and:(id)anAnd synchronize:(BOOL)synchronize;
  120. -(int)fetchNumMessages:(unsigned)messages preservingUID:(id)uid beforeUID:(unsigned)uid3 synchronize:(BOOL)synchronize compact:(BOOL)compact;
  121. -(int)fetchNumMessages:(unsigned)messages beforeUID:(unsigned)uid synchronize:(BOOL)synchronize;
  122. -(int)fetchMobileSynchronously:(unsigned)synchronously preservingUID:(id)uid compact:(BOOL)compact;
  123. -(int)fetchMobileSynchronously:(unsigned)synchronously;
  124. -(void)syncOlderMessages;
  125. -(BOOL)setPreferredEncoding:(unsigned long)encoding forMessage:(id)message;
  126. -(void)setData:(id)data forMimePart:(id)mimePart isComplete:(BOOL)complete;
  127. -(void)close;
  128. // inherited: -(void)_flushAllMessageData;
  129. -(void)setLibrary:(id)library;
  130. -(BOOL)shouldDownloadBodyDataForMessage:(id)message;
  131. -(id)loadMeetingExternalIDForMessage:(id)message;
  132. -(id)loadMeetingDataForMessage:(id)message;
  133. -(BOOL)shouldSetSummaryForMessage:(id)message;
  134. -(BOOL)canDeleteMessage:(id)message;
  135. @end
  136. @interface MailMessageStore (MessageFrameworkOnly)
  137. +(void)_autosaveMessageStore:(void*)store;
  138. // inherited: +(Class)headersClass;
  139. -(void)_cancelAutosave;
  140. -(void)_setNeedsAutosave;
  141. -(id)_fetchHeaderDataForMessage:(id)message downloadIfNecessary:(BOOL)necessary;
  142. -(void)_rebuildTableOfContentsSynchronously;
  143. -(void)updateBodyFlagsForMessage:(id)message body:(id)body;
  144. // inherited: -(id)_setOrGetBody:(id)body forMessage:(id)message updateFlags:(BOOL)flags;
  145. -(void)_setFlagsForMessages:(id)messages mask:(unsigned long)mask;
  146. -(void)_setFlagsAndColorForMessages:(id)messages;
  147. -(void)updateMessages:(id)messages updateColor:(BOOL)color updateNumberOfAttachments:(BOOL)attachments;
  148. -(void)messagesWereAdded:(id)added forIncrementalLoading:(BOOL)incrementalLoading;
  149. -(BOOL)_updateFlagForMessage:(id)message key:(id)key value:(BOOL)value;
  150. -(BOOL)_shouldChangeComponentMessageFlags;
  151. -(BOOL)_shouldChangeComponentMessageFlagsForMessage:(id)message;
  152. @end