Logo Search packages:      
Sourcecode: qmf version File versions  Download package

Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Types | Private Attributes

ImapSynchronizeAllStrategy Class Reference

Inheritance diagram for ImapSynchronizeAllStrategy:
Inheritance graph
[legend]
Collaboration diagram for ImapSynchronizeAllStrategy:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Options { RetrieveMail = (1 << 0), ImportChanges = (1 << 1), ExportChanges = (1 << 2) }

Public Member Functions

void clearError ()
virtual void clearSelection ()
virtual void dataFetched (ImapStrategyContextBase *context, QMailMessage &message, const QString &uid, const QString &section)
virtual void dataFlushed (ImapStrategyContextBase *context, QMailMessage &message, const QString &uid, const QString &section)
virtual void downloadSize (ImapStrategyContextBase *, const QString &uid, int length)
bool error ()
virtual void folderCreated (ImapStrategyContextBase *context, const QString &folder)
virtual void folderDeleted (ImapStrategyContextBase *context, const QMailFolder &folder)
virtual void folderRenamed (ImapStrategyContextBase *context, const QMailFolder &folder, const QString &newName)
virtual void initialAction (ImapStrategyContextBase *context)
virtual void mailboxListed (ImapStrategyContextBase *context, QMailFolder &folder, const QString &flags)
virtual void messageCopied (ImapStrategyContextBase *context, const QString &copiedUid, const QString &createdUid)
virtual void messageCreated (ImapStrategyContextBase *context, const QMailMessageId &id, const QString &uid)
virtual void messageFetched (ImapStrategyContextBase *context, QMailMessage &message)
virtual void messageFlushed (ImapStrategyContextBase *context, QMailMessage &message)
virtual void messageStored (ImapStrategyContextBase *context, const QString &uid)
virtual void newConnection (ImapStrategyContextBase *context)
virtual void nonexistentUid (ImapStrategyContextBase *context, const QString &uid)
virtual void prepareCompletionList (ImapStrategyContextBase *context, const QMailMessage &message, QMailMessageIdList &completionList, QList< QPair< QMailMessagePart::Location, uint > > &completionSectionList)
virtual void selectedFoldersAppend (const QMailFolderIdList &ids)
virtual void selectedMailsAppend (const QMailMessageIdList &ids)
virtual void selectedSectionsAppend (const QMailMessagePart::Location &, int=-1)
virtual void selectedSectionsAppend (const QMailMessagePart::Location &location)
virtual void selectFolder (ImapStrategyContextBase *context, const QMailFolder &folder)
virtual void setBase (const QMailFolderId &folderId)
virtual void setDescending (bool descending)
virtual void setOperation (ImapStrategyContextBase *context, QMailRetrievalAction::RetrievalSpecification spec)
void setOptions (Options options)
virtual void setQuickList (bool quickList)
virtual void transition (ImapStrategyContextBase *, const ImapCommand, const OperationStatus)
virtual void urlAuthorized (ImapStrategyContextBase *context, const QString &url)

Protected Types

enum  { DefaultBatchSize = 50 }
enum  { MaxPipeliningDepth = 4 }
enum  FolderStatus {
  NoInferiors = (1 << 0), NoSelect = (1 << 1), Marked = (1 << 2), Unmarked = (1 << 3),
  HasChildren = (1 << 4), HasNoChildren = (1 << 5)
}
typedef QMultiMap< QString,
QPair< QPair< uint, uint >
, uint > > 
RetrievalMap
enum  TransferState {
  Init, List, Search, Preview,
  Complete, Copy
}

Protected Member Functions

virtual void checkUidValidity (ImapStrategyContextBase *context)
virtual void fetchNextMailPreview (ImapStrategyContextBase *context)
virtual void folderListCompleted (ImapStrategyContextBase *context)
virtual void folderListFolderAction (ImapStrategyContextBase *context)
virtual void folderPreviewCompleted (ImapStrategyContextBase *context)
virtual void handleClose (ImapStrategyContextBase *context)
virtual void handleCreate (ImapStrategyContextBase *context)
virtual void handleDelete (ImapStrategyContextBase *context)
virtual void handleExpunge (ImapStrategyContextBase *context)
virtual void handleList (ImapStrategyContextBase *context)
virtual void handleLogin (ImapStrategyContextBase *context)
virtual void handleRename (ImapStrategyContextBase *context)
virtual void handleSearch (ImapStrategyContextBase *context)
virtual void handleSelect (ImapStrategyContextBase *context)
virtual void handleUidFetch (ImapStrategyContextBase *context)
virtual void handleUidSearch (ImapStrategyContextBase *context)
virtual void handleUidStore (ImapStrategyContextBase *context)
virtual void itemFetched (ImapStrategyContextBase *context, const QString &uid)
virtual void messageListCompleted (ImapStrategyContextBase *context)
virtual void messageListFolderAction (ImapStrategyContextBase *context)
virtual bool messageListFolderActionRequired ()
virtual void messageListMessageAction (ImapStrategyContextBase *context)
virtual void metaDataAnalysis (ImapStrategyContextBase *context, const QMailMessagePartContainer &partContainer, const QList< QMailMessagePartContainer::Location > &attachmentLocations, QList< QPair< QMailMessagePart::Location, uint > > &sectionList, QList< QPair< QMailMessagePart::Location, uint > > &completionSectionList, uint &bytesLeft, bool &foundBody)
virtual bool nextFolder ()
virtual void previewDiscoveredMessages (ImapStrategyContextBase *context)
virtual void processFolder (ImapStrategyContextBase *context)
virtual void processNextFolder (ImapStrategyContextBase *context)
virtual void processUidSearchResults (ImapStrategyContextBase *context)
void removeDeletedMailboxes (ImapStrategyContextBase *context)
virtual void resetMessageListTraversal ()
virtual void searchInconclusive (ImapStrategyContextBase *context)
virtual bool selectNextMessageSequence (ImapStrategyContextBase *context, int maximum=DefaultBatchSize, bool folderActionPermitted=true)
virtual bool selectNextPreviewFolder (ImapStrategyContextBase *context)
virtual void setCurrentMailbox (const QMailFolderId &id)
virtual bool setNextDeleted (ImapStrategyContextBase *context)
virtual bool setNextImportant (ImapStrategyContextBase *context)
virtual bool setNextNotImportant (ImapStrategyContextBase *context)
virtual bool setNextNotSeen (ImapStrategyContextBase *context)
virtual bool setNextSeen (ImapStrategyContextBase *context)
virtual bool synchronizationEnabled (const QMailFolder &folder) const
void updateUndiscoveredCount (ImapStrategyContextBase *context)

Protected Attributes

QSet< QString > _ancestorPaths
QStringList _ancestorSearchPaths
QString _baseFolder
QMailFolderId _baseId
QMailMessageIdList _completionList
QList< QPair
< QMailMessagePart::Location,
uint > > 
_completionSectionList
QMailFolder _currentMailbox
QString _currentModSeq
bool _descending
bool _error
bool _expungeRequired
QMap< QString, bool > _folder
SelectionMap::Iterator _folderItr
QMap< QMailFolderId, FolderStatus > _folderStatus
uint _headerLimit
QStringList _importantUids
int _listSize
QMailFolderIdList _mailboxIds
QMailFolderIdList _mailboxList
QStringList _mailboxPaths
int _messageCount
int _messageCountIncremental
QStringList _messageUids
QMailMessagePart::Location _msgSection
QStringList _newUids
int _outstandingFetches
int _outstandingPreviews
int _processable
int _processed
uint _progressRetrievalSize
bool _quickList
QStringList _readUids
QStringList _removedUids
RetrievalMap _retrievalSize
QMailRetrievalAction::RetrievalSpecification _retrievalSpec
QList< QPair< QMailFolderId,
QStringList > > 
_retrieveUids
int _sectionEnd
int _sectionStart
FolderSelections::ConstIterator _selectionItr
SelectionMap _selectionMap
QStringList _storedImportantUids
QStringList _storedReadUids
QStringList _storedRemovedUids
QStringList _storedUnimportantUids
QStringList _storedUnreadUids
uint _totalRetrievalSize
TransferState _transferState
QStringList _unimportantUids
QStringList _unreadUids

Static Protected Attributes

static const int batchSize = 1000

Private Types

enum  SearchState {
  All, Seen, Unseen, Flagged,
  Inconclusive
}

Private Attributes

QStringList _flaggedUids
Options _options
SearchState _searchState
QStringList _seenUids
QStringList _unseenUids

Detailed Description

Definition at line 542 of file imapstrategy.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index