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

Classes | Public Types | Public Slots | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Static Protected Member Functions | Static Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends

QMailStorePrivate Class Reference

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

List of all members.

Classes

class  Cache
struct  FolderInfo
class  IdCache
class  Key
struct  ReadAccess
class  ReadLock
class  Transaction
struct  WriteAccess

Public Types

enum  AttemptResult { Success = 0, Failure, DatabaseFailure }
typedef QList
< QMailMessageKey::Property
MessagePropertyList
typedef QMap
< QMailMessageKey::Property,
QString > 
MessagePropertyMap

Public Slots

void aboutToQuit ()
void flushNotifications ()
void ipcMessage (const QString &message, const QByteArray &data)
void processIpcMessageQueue ()

Public Member Functions

QMailAccount account (const QMailAccountId &id) const
QMailAccountConfiguration accountConfiguration (const QMailAccountId &id) const
quint64 accountStatusMask (const QString &name) const
bool addAccount (QMailAccount *account, QMailAccountConfiguration *config, QMailAccountIdList *addedAccountIds)
bool addFolder (QMailFolder *f, QMailFolderIdList *addedFolderIds, QMailAccountIdList *modifiedAccountIds)
bool addMessages (const QList< QMailMessageMetaData * > &m, QMailMessageIdList *addedMessageIds, QMailMessageIdList *updatedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds)
bool addMessages (const QList< QMailMessage * > &m, QMailMessageIdList *addedMessageIds, QMailMessageIdList *updatedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds)
bool asynchronousEmission () const
QString buildOrderClause (const Key &key) const
QString buildWhereClause (const Key &key, bool nested=false, bool firstClause=true) const
void clearContent ()
int countAccounts (const QMailAccountKey &key) const
int countFolders (const QMailFolderKey &key) const
int countMessages (const QMailMessageKey &key) const
void flushIpcNotifications ()
QMailFolder folder (const QMailFolderId &id) const
quint64 folderStatusMask (const QString &name) const
void initialize ()
virtual bool initStore ()
QMailStore::ErrorCode lastError () const
void lock ()
QMailMessage message (const QString &uid, const QMailAccountId &accountId) const
QMailMessage message (const QMailMessageId &id) const
QMap< QString, QString > messageCustomFields (const QMailMessageId &id)
QMailMessageMetaData messageMetaData (const QMailMessageId &id) const
QMailMessageMetaData messageMetaData (const QString &uid, const QMailAccountId &accountId) const
QMailMessageRemovalRecordList messageRemovalRecords (const QMailAccountId &parentAccountId, const QMailFolderId &parentFolderId) const
QMailMessageMetaDataList messagesMetaData (const QMailMessageKey &key, const QMailMessageKey::Properties &properties, QMailStore::ReturnOption option) const
quint64 messageStatusMask (const QString &name) const
void notifyAccountsChange (QMailStore::ChangeType changeType, const QMailAccountIdList &ids)
void notifyFoldersChange (QMailStore::ChangeType changeType, const QMailFolderIdList &ids)
void notifyMessageRemovalRecordsChange (QMailStore::ChangeType changeType, const QMailAccountIdList &ids)
void notifyMessagesChange (QMailStore::ChangeType changeType, const QMailMessageIdList &ids)
void notifyMessagesDataChange (const QMailMessageIdList &ids, const QMailMessageKey::Properties &properties, const QMailMessageMetaData &data)
void notifyMessagesDataChange (QMailStore::ChangeType changeType, const QMailMessageMetaDataList &data)
void notifyMessagesDataChange (const QMailMessageIdList &ids, quint64 status, bool set)
void notifyRetrievalInProgress (const QMailAccountIdList &ids)
void notifyTransmissionInProgress (const QMailAccountIdList &ids)
bool purgeMessageRemovalRecords (const QMailAccountId &accountId, const QStringList &serverUids)
 QMailStorePrivate (QMailStore *parent)
QMailAccountIdList queryAccounts (const QMailAccountKey &key, const QMailAccountSortKey &sortKey, uint limit, uint offset) const
QMailFolderIdList queryFolders (const QMailFolderKey &key, const QMailFolderSortKey &sortKey, uint limit, uint offset) const
QMailMessageIdList queryMessages (const QMailMessageKey &key, const QMailMessageSortKey &sortKey, uint limit, uint offset) const
bool registerAccountStatusFlag (const QString &name)
bool registerFolderStatusFlag (const QString &name)
bool registerMessageStatusFlag (const QString &name)
bool removeAccounts (const QMailAccountKey &key, QMailAccountIdList *deletedAccounts, QMailFolderIdList *deletedFolders, QMailMessageIdList *deletedMessages, QMailMessageIdList *updatedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds)
bool removeFolders (const QMailFolderKey &key, QMailStore::MessageRemovalOption option, QMailFolderIdList *deletedFolders, QMailMessageIdList *deletedMessages, QMailMessageIdList *updatedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds)
bool removeMessages (const QMailMessageKey &key, QMailStore::MessageRemovalOption option, QMailMessageIdList *deletedMessages, QMailMessageIdList *updatedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds)
void setLastError (QMailStore::ErrorCode code) const
bool setRetrievalInProgress (const QMailAccountIdList &ids)
bool setTransmissionInProgress (const QMailAccountIdList &ids)
int sizeOfMessages (const QMailMessageKey &key) const
void unlock ()
bool updateAccount (QMailAccount *account, QMailAccountConfiguration *config, QMailAccountIdList *updatedAccountIds)
bool updateAccountConfiguration (QMailAccountConfiguration *config, QMailAccountIdList *updatedAccountIds)
bool updateFolder (QMailFolder *f, QMailFolderIdList *updatedFolderIds, QMailAccountIdList *modifiedAccountIds)
bool updateMessages (const QList< QPair< QMailMessageMetaData *, QMailMessage * > > &m, QMailMessageIdList *updatedMessageIds, QMailMessageIdList *modifiedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds)
bool updateMessagesMetaData (const QMailMessageKey &key, const QMailMessageKey::Properties &properties, const QMailMessageMetaData &data, QMailMessageIdList *updatedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds)
bool updateMessagesMetaData (const QMailMessageKey &key, quint64 messageStatus, bool set, QMailMessageIdList *updatedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds)
QVariantList whereClauseValues (const Key &key) const

Static Public Member Functions

static QString accountAddedSig ()
static QString accountContentsModifiedSig ()
static QString accountRemovedSig ()
static QString accountUpdatedSig ()
static QString expandValueList (int valueCount)
static QString expandValueList (const QVariantList &valueList)
template<typename ValueType >
static ValueType extractValue (const QVariant &var, const ValueType &defaultValue=ValueType())
static QString folderAddedSig ()
static QString folderContentsModifiedSig ()
static QString folderRemovedSig ()
static QString folderUpdatedSig ()
static
QMailStore::InitializationState 
initializationState ()
static QString messageAddedSig ()
static QString messageContentsModifiedSig ()
static QString messageMetaDataAddedSig ()
static QString messageMetaDataUpdatedSig ()
static QString messagePropertyUpdatedSig ()
static QString messageRemovalRecordsAddedSig ()
static QString messageRemovalRecordsRemovedSig ()
static QString messageRemovedSig ()
static QString messageStatusUpdatedSig ()
static QString messageUpdatedSig ()
static QString retrievalInProgressSig ()
static QString temporaryTableName (const QMailMessageKey::ArgumentType &arg)
static QString transmissionInProgressSig ()

Static Public Attributes

static const int maxNotifySegmentSize = 0

Protected Types

typedef void(QMailStore::* AccountUpdateSignal )(const QMailAccountIdList &)
typedef QMap< QString,
AccountUpdateSignal > 
AccountUpdateSignalMap
typedef void(QMailStore::* FolderUpdateSignal )(const QMailFolderIdList &)
typedef QMap< QString,
FolderUpdateSignal > 
FolderUpdateSignalMap
typedef void(QMailStore::* MessageDataPreCacheSignal )(const QMailMessageMetaDataList &)
typedef QMap< QString,
MessageDataPreCacheSignal > 
MessageDataPreCacheSignalMap
typedef void(QMailStore::* MessageUpdateSignal )(const QMailMessageIdList &)
typedef QMap< QString,
MessageUpdateSignal > 
MessageUpdateSignalMap

Static Protected Member Functions

static AccountUpdateSignalMap initAccountUpdateSignals ()
static FolderUpdateSignalMap initFolderUpdateSignals ()
static MessageDataPreCacheSignalMap initMessageDataPreCacheSignals ()
static MessageUpdateSignalMap initMessageUpdateSignals ()

Static Protected Attributes

static
QMailStore::InitializationState 
initState = QMailStore::Uninitialized

Private Types

typedef QPair< QString, qint64 > TableInfo

Private Member Functions

AttemptResult addCustomFields (quint64 id, const QMap< QString, QString > &fields, const QString &tableName)
AttemptResult affectedByFolderIds (const QMailFolderIdList &folders, QMailFolderIdList *folderIds, QMailAccountIdList *accountIds) const
AttemptResult affectedByMessageIds (const QMailMessageIdList &messages, QMailFolderIdList *folderIds, QMailAccountIdList *accountIds) const
AttemptResult attemptAccount (const QMailAccountId &id, QMailAccount *result, ReadLock &)
AttemptResult attemptAccountConfiguration (const QMailAccountId &id, QMailAccountConfiguration *result, ReadLock &)
AttemptResult attemptAddAccount (QMailAccount *account, QMailAccountConfiguration *config, QMailAccountIdList *addedAccountIds, Transaction &t, bool commitOnSuccess)
AttemptResult attemptAddFolder (QMailFolder *folder, QMailFolderIdList *addedFolderIds, QMailAccountIdList *modifiedAccountIds, Transaction &t, bool commitOnSuccess)
AttemptResult attemptAddMessage (QMailMessage *message, const QString &identifier, const QStringList &references, QMailMessageIdList *addedMessageIds, QMailMessageIdList *updatedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds, Transaction &t, bool commitOnSuccess)
AttemptResult attemptAddMessage (QMailMessageMetaData *metaData, const QString &identifier, const QStringList &references, QMailMessageIdList *addedMessageIds, QMailMessageIdList *updatedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds, Transaction &t, bool commitOnSuccess)
AttemptResult attemptCountAccounts (const QMailAccountKey &key, int *result, ReadLock &)
AttemptResult attemptCountFolders (const QMailFolderKey &key, int *result, ReadLock &)
AttemptResult attemptCountMessages (const QMailMessageKey &key, int *result, ReadLock &)
AttemptResult attemptFolder (const QMailFolderId &id, QMailFolder *result, ReadLock &)
AttemptResult attemptFolderAccountIds (const QMailFolderKey &key, QMailAccountIdList *result, ReadLock &)
AttemptResult attemptFolderAncestorIds (const QMailFolderIdList &ids, QMailFolderIdList *result, ReadLock &)
AttemptResult attemptMessage (const QMailMessageId &id, QMailMessage *result, ReadLock &)
AttemptResult attemptMessage (const QString &uid, const QMailAccountId &accountId, QMailMessage *result, ReadLock &)
AttemptResult attemptMessageFolderIds (const QMailMessageKey &key, QMailFolderIdList *result, ReadLock &)
AttemptResult attemptMessageId (const QString &uid, const QMailAccountId &accountId, quint64 *result, ReadLock &)
AttemptResult attemptMessageMetaData (const QMailMessageId &id, QMailMessageMetaData *result, ReadLock &)
AttemptResult attemptMessageMetaData (const QString &uid, const QMailAccountId &accountId, QMailMessageMetaData *result, ReadLock &)
AttemptResult attemptMessageRemovalRecords (const QMailAccountId &accountId, const QMailFolderId &parentFolderId, QMailMessageRemovalRecordList *result, ReadLock &)
AttemptResult attemptMessagesMetaData (const QMailMessageKey &key, const QMailMessageKey::Properties &properties, QMailStore::ReturnOption option, QMailMessageMetaDataList *result, ReadLock &)
AttemptResult attemptPurgeMessageRemovalRecords (const QMailAccountId &accountId, const QStringList &serverUids, Transaction &t, bool commitOnSuccess)
AttemptResult attemptQueryAccounts (const QMailAccountKey &key, const QMailAccountSortKey &sortKey, uint limit, uint offset, QMailAccountIdList *ids, ReadLock &)
AttemptResult attemptQueryFolders (const QMailFolderKey &key, const QMailFolderSortKey &sortKey, uint limit, uint offset, QMailFolderIdList *ids, ReadLock &)
AttemptResult attemptQueryMessages (const QMailMessageKey &key, const QMailMessageSortKey &sortKey, uint limit, uint offset, QMailMessageIdList *ids, ReadLock &)
AttemptResult attemptRegisterStatusBit (const QString &name, const QString &context, int maximum, bool check, quint64 *number, Transaction &t, bool commitOnSuccess)
AttemptResult attemptRemoveAccounts (const QMailAccountKey &key, QMailAccountIdList *deletedAccounts, QMailFolderIdList *deletedFolders, QMailMessageIdList *deletedMessages, QMailMessageIdList *updatedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds, Transaction &t, bool commitOnSuccess)
AttemptResult attemptRemoveFolders (const QMailFolderKey &key, QMailStore::MessageRemovalOption option, QMailFolderIdList *deletedFolders, QMailMessageIdList *deletedMessages, QMailMessageIdList *updatedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds, Transaction &t, bool commitOnSuccess)
AttemptResult attemptRemoveMessages (const QMailMessageKey &key, QMailStore::MessageRemovalOption option, QMailMessageIdList *deletedMessages, QMailMessageIdList *updatedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds, Transaction &t, bool commitOnSuccess)
AttemptResult attemptSizeOfMessages (const QMailMessageKey &key, int *result, ReadLock &)
AttemptResult attemptStatusBit (const QString &name, const QString &context, int *result, ReadLock &)
AttemptResult attemptUpdateAccount (QMailAccount *account, QMailAccountConfiguration *config, QMailAccountIdList *updatedAccountIds, Transaction &t, bool commitOnSuccess)
AttemptResult attemptUpdateAccountConfiguration (QMailAccountConfiguration *config, QMailAccountIdList *updatedAccountIds, Transaction &t, bool commitOnSuccess)
AttemptResult attemptUpdateFolder (QMailFolder *folder, QMailFolderIdList *updatedFolderIds, QMailAccountIdList *modifiedAccountIds, Transaction &t, bool commitOnSuccess)
AttemptResult attemptUpdateMessage (QMailMessageMetaData *metaData, QMailMessage *mail, QMailMessageIdList *updatedMessageIds, QMailMessageIdList *modifiedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds, Transaction &t, bool commitOnSuccess)
AttemptResult attemptUpdateMessagesMetaData (const QMailMessageKey &key, const QMailMessageKey::Properties &props, const QMailMessageMetaData &data, QMailMessageIdList *updatedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds, Transaction &t, bool commitOnSuccess)
AttemptResult attemptUpdateMessagesStatus (const QMailMessageKey &key, quint64 status, bool set, QMailMessageIdList *updatedMessageIds, QMailFolderIdList *modifiedFolderIds, QMailAccountIdList *modifiedAccountIds, Transaction &t, bool commitOnSuccess)
QSqlQuery batchQuery (const QString &statement, const QVariantList &bindValues, const Key &key, const QString &descriptor)
QSqlQuery batchQuery (const QString &statement, const QVariantList &bindValues, const QList< Key > &keys, const QString &descriptor)
QSqlQuery batchQuery (const QString &statement, const QVariantList &bindValues, const QString &descriptor)
bool checkPreconditions (const QMailFolder &folder, bool update=false)
void clearQueryError (void)
bool commit (void)
bool createTable (const QString &name)
void createTemporaryTable (const QMailMessageKey::ArgumentType &arg, const QString &dataType) const
AttemptResult customFields (quint64 id, QMap< QString, QString > *fields, const QString &tableName)
QString databaseIdentifier () const
ProcessMutexdatabaseMutex (void) const
ProcessReadLockdatabaseReadLock (void) const
bool deleteAccounts (const QMailAccountKey &key, QMailAccountIdList &deletedAccountIds, QMailFolderIdList &deletedFolderIds, QMailMessageIdList &deletedMessageIds, QStringList &expiredMailfiles, QMailMessageIdList &updatedMessageIds, QMailFolderIdList &modifiedFolderIds, QMailAccountIdList &modifiedAccountIds)
bool deleteFolders (const QMailFolderKey &key, QMailStore::MessageRemovalOption option, QMailFolderIdList &deletedFolderIds, QMailMessageIdList &deletedMessageIds, QStringList &expiredMailfiles, QMailMessageIdList &updatedMessageIds, QMailFolderIdList &modifiedFolderIds, QMailAccountIdList &modifiedAccountIds)
bool deleteMessages (const QMailMessageKey &key, QMailStore::MessageRemovalOption option, QMailMessageIdList &deletedMessageIds, QStringList &expiredMailfiles, QMailMessageIdList &updatedMessageIds, QMailFolderIdList &modifiedFolders, QMailAccountIdList &modifiedAccounts)
void destroyTemporaryTables (void)
virtual void emitIpcNotification (const QMailMessageIdList &ids, const QMailMessageKey::Properties &properties, const QMailMessageMetaData &data)
virtual void emitIpcNotification (QMailStoreImplementation::AccountUpdateSignal signal, const QMailAccountIdList &ids)
virtual void emitIpcNotification (QMailStoreImplementation::FolderUpdateSignal signal, const QMailFolderIdList &ids)
virtual void emitIpcNotification (QMailStoreImplementation::MessageUpdateSignal signal, const QMailMessageIdList &ids)
virtual void emitIpcNotification (QMailStoreImplementation::MessageDataPreCacheSignal signal, const QMailMessageMetaDataList &data)
virtual void emitIpcNotification (const QMailMessageIdList &ids, quint64 status, bool set)
bool ensureVersionInfo ()
bool execute (QSqlQuery &q, bool batch=false)
bool executeFile (QFile &file)
QString expandProperties (const QMailMessageKey::Properties &p, bool update=false) const
QMailAccount extractAccount (const QSqlRecord &r)
QMailFolder extractFolder (const QSqlRecord &r)
QMailMessage extractMessage (const QSqlRecord &r, const QMap< QString, QString > &customFields, const QMailMessageKey::Properties &properties=allMessageProperties())
QMailMessageMetaData extractMessageMetaData (const QSqlRecord &r, QMailMessageKey::Properties recordProperties, const QMailMessageKey::Properties &properties=allMessageProperties())
QMailMessageMetaData extractMessageMetaData (const QSqlRecord &r, const QMap< QString, QString > &customFields, const QMailMessageKey::Properties &properties=allMessageProperties())
QMailMessageRemovalRecord extractMessageRemovalRecord (const QSqlRecord &r)
QMailFolderIdList folderAncestorIds (const QMailFolderIdList &ids, bool inTransaction, AttemptResult *result) const
AttemptResult identifyAncestors (const QMailMessageId &predecessorId, const QMailMessageIdList &childIds, QMailMessageIdList *ancestorIds)
bool idExists (const QMailFolderId &id, const QString &table=QString())
bool idExists (const QMailAccountId &id, const QString &table=QString())
bool idExists (const QMailMessageId &id, const QString &table=QString())
bool idValueExists (quint64 id, const QString &table)
qint64 incrementTableVersion (const QString &name, qint64 current)
bool messageExists (const QString &serveruid, const QMailAccountId &id)
AttemptResult messagePredecessor (QMailMessageMetaData *metaData, const QStringList &references, const QString &baseSubject, bool sameSubject, QStringList *missingReferences, bool *missingAncestor)
bool obsoleteContent (const QString &identifier)
bool performMaintenance ()
bool performMaintenanceTask (const QString &task, uint secondsFrequency, bool(QMailStorePrivate::*func)(void))
QSqlQuery performQuery (const QString &statement, bool batch, const QVariantList &bindValues, const QList< Key > &keys, const QPair< uint, uint > &constraint, const QString &descriptor)
void preloadHeaderCache (const QMailMessageId &id) const
QSqlQuery prepare (const QString &sql)
bool purgeMissingAncestors ()
bool purgeObsoleteFiles ()
 Q_DECLARE_PUBLIC (QMailStore)
int queryError (void) const
quint64 queryStatusMap (const QString &name, const QString &context, QMap< QString, quint64 > &map) const
AttemptResult registerSubject (const QString &baseSubject, quint64 messageId, const QMailMessageId &predecessorId, bool missingAncestor)
void removeExpiredData (const QMailMessageIdList &messageIds, const QStringList &mailfiles, const QMailFolderIdList &folderIds=QMailFolderIdList(), const QMailAccountIdList &accountIds=QMailAccountIdList())
template<typename AccessType , typename FunctionType >
bool repeatedly (FunctionType func, const QString &description, Transaction *t=0) const
AttemptResult resolveMissingMessages (const QString &identifier, const QMailMessageId &predecessorId, const QString &baseSubject, quint64 messageId, QMailMessageIdList *updatedMessageIds)
void rollback (void)
void setQueryError (const QSqlError &, const QString &description=QString(), const QString &statement=QString())
bool setTableVersion (const QString &name, qint64 version)
bool setupFolders (const QList< FolderInfo > &folderList)
bool setupTables (const QList< TableInfo > &tableList)
QSqlQuery simpleQuery (const QString &statement, const QVariantList &bindValues, const QString &descriptor)
QSqlQuery simpleQuery (const QString &statement, const QString &descriptor)
QSqlQuery simpleQuery (const QString &statement, const QVariantList &bindValues, const Key &key, const QString &descriptor)
QSqlQuery simpleQuery (const QString &statement, const Key &key, const QString &descriptor)
QSqlQuery simpleQuery (const QString &statement, const QVariantList &bindValues, const QList< Key > &keys, const QString &descriptor)
QSqlQuery simpleQuery (const QString &statement, const QVariantList &bindValues, const QList< Key > &keys, const QPair< uint, uint > &constraint, const QString &descriptor)
qint64 tableVersion (const QString &name) const
quint64 threadId (const QMailMessageId &id)
bool transaction (void)
AttemptResult updateCustomFields (quint64 id, const QMap< QString, QString > &fields, const QString &tableName)
AttemptResult updateLatestInConversation (quint64 threadId, QMailMessageIdList *messagesUpdated, quint64 *updatedTo=0)
AttemptResult updateLatestInConversation (const QSet< quint64 > &threadIds, QMailMessageIdList *messagesUpdated)
bool upgradeTableVersion (const QString &name, qint64 current, qint64 final)

Static Private Member Functions

static const
QMailMessageKey::Properties & 
allMessageProperties ()
static ProcessMutexcontentManagerMutex (void)
static const QString & defaultContentScheme ()
static void extractMessageMetaData (const QSqlRecord &r, QMailMessageKey::Properties recordProperties, const QMailMessageKey::Properties &properties, QMailMessageMetaData *metaData)
static QString messageFilePath (const QString &fileName)
static const MessagePropertyList & messagePropertyList ()
static const MessagePropertyMap & messagePropertyMap ()
static const QString & messagesBodyPath ()
static QVariantList messageValues (const QMailMessageKey::Properties &properties, const QMailMessageMetaData &data)
static QString parseSql (QTextStream &ts)
static const
QMailMessageKey::Properties & 
updatableMessageProperties ()
static void updateMessageValues (const QMailMessageKey::Properties &properties, const QVariantList &values, const QMap< QString, QString > &customFields, QMailMessageMetaData &metaData)

Private Attributes

IdCache< QMailAccount,
QMailAccountId
accountCache
QSqlDatabase database
QList< const
QMailMessageKey::ArgumentType * > 
expiredTableKeys
IdCache< QMailFolder,
QMailFolderId
folderCache
int globalLocks
bool inTransaction
int lastQueryError
QMailMessageIdList lastQueryMessageResult
IdCache< QMailMessageMetaData,
QMailMessageId
messageCache
ProcessMutexmutex
QMailStore *const q_ptr
ProcessReadLockreadLock
QList< QPair< const
QMailMessageKey::ArgumentType
*, QString > > 
requiredTableKeys
QList< const
QMailMessageKey::ArgumentType * > 
temporaryTableKeys
Cache< QMailMessageId, QPair
< QMailAccountId, QString > > 
uidCache

Static Private Attributes

static const int accountCacheSize = 10
static ProcessMutexcontentMutex = 0
static const int folderCacheSize = 100
static const int lookAhead = 5
static const int messageCacheSize = 100
static const int uidCacheSize = 500

Friends

class ReadLock
class Transaction

Detailed Description

Definition at line 71 of file qmailstore_p.h.


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

Generated by  Doxygen 1.6.0   Back to index