kmail
KMMsgBase Class Reference
Inheritance diagram for KMMsgBase:

Detailed Description
Definition at line 136 of file kmmsgbase.h.
Public Types | |
enum | MsgPartType { MsgNoPart = 0, MsgFromPart = 1, MsgSubjectPart = 2, MsgToPart = 3, MsgReplyToIdMD5Part = 4, MsgIdMD5Part = 5, MsgXMarkPart = 6, MsgOffsetPart = 7, MsgLegacyStatusPart = 8, MsgSizePart = 9, MsgDatePart = 10, MsgFilePart = 11, MsgCryptoStatePart = 12, MsgMDNSentPart = 13, MsgReplyToAuxIdMD5Part = 14, MsgStrippedSubjectMD5Part = 15, MsgStatusPart = 16, MsgSizeServerPart = 17, MsgUIDPart = 18 } |
Public Member Functions | |
KMMsgBase (KMFolder *p=0) | |
virtual | ~KMMsgBase () |
KMFolderIndex * | storage () const |
KMFolder * | parent () const |
void | setParent (KMFolder *p) |
QString | statusToSortRank () |
virtual bool | isMessage (void) const |
virtual bool | isUnread (void) const |
virtual bool | isNew (void) const |
virtual bool | isOfUnknownStatus (void) const |
virtual bool | isOld (void) const |
virtual bool | isRead (void) const |
virtual bool | isDeleted (void) const |
virtual bool | isReplied (void) const |
virtual bool | isForwarded (void) const |
virtual bool | isQueued (void) const |
virtual bool | isTodo (void) const |
virtual bool | isSent (void) const |
virtual bool | isImportant (void) const |
virtual bool | isWatched (void) const |
virtual bool | isIgnored (void) const |
virtual bool | isSpam (void) const |
virtual bool | isHam (void) const |
virtual KMMsgStatus | status (void) const =0 |
virtual void | setStatus (const KMMsgStatus status, int idx=-1) |
virtual void | toggleStatus (const KMMsgStatus status, int idx=-1) |
virtual void | setStatus (const char *statusField, const char *xstatusField=0) |
virtual KMMsgEncryptionState | encryptionState () const =0 |
virtual KMMsgSignatureState | signatureState () const =0 |
virtual KMMsgMDNSentState | mdnSentState () const =0 |
virtual void | setMDNSentState (KMMsgMDNSentState status, int idx=-1) |
virtual void | setEncryptionState (const KMMsgEncryptionState, int idx=-1) |
virtual void | setSignatureState (const KMMsgSignatureState, int idx=-1) |
virtual void | setEncryptionStateChar (QChar status, int idx=-1) |
virtual void | setSignatureStateChar (QChar status, int idx=-1) |
virtual QString | subject (void) const =0 |
virtual QString | fromStrip (void) const =0 |
virtual QString | toStrip (void) const =0 |
virtual QString | replyToIdMD5 (void) const =0 |
virtual QString | msgIdMD5 (void) const =0 |
virtual QString | replyToAuxIdMD5 () const =0 |
virtual QString | strippedSubjectMD5 () const =0 |
virtual bool | subjectIsPrefixed () const =0 |
virtual time_t | date (void) const =0 |
virtual QString | dateStr (void) const |
virtual QString | xmark (void) const =0 |
virtual void | setDate (const QCString &aStrDate) |
virtual void | setDate (time_t aUnixTime)=0 |
virtual bool | dirty (void) const |
void | setDirty (bool b) |
virtual void | setSubject (const QString &)=0 |
virtual void | setXMark (const QString &)=0 |
virtual void | initStrippedSubjectMD5 ()=0 |
const uchar * | asIndexString (int &len) const |
virtual off_t | folderOffset (void) const =0 |
virtual void | setFolderOffset (off_t offs)=0 |
virtual QString | fileName (void) const =0 |
virtual void | setFileName (const QString &filename)=0 |
virtual size_t | msgSize (void) const =0 |
virtual void | setMsgSize (size_t sz)=0 |
virtual size_t | msgSizeServer (void) const =0 |
virtual void | setMsgSizeServer (size_t sz)=0 |
virtual ulong | UID (void) const =0 |
virtual void | setUID (ulong uid)=0 |
virtual void | setIndexOffset (off_t off) |
virtual off_t | indexOffset () const |
virtual void | setIndexLength (short len) |
virtual short | indexLength () const |
void | assign (const KMMsgBase *other) |
KMMsgBase & | operator= (const KMMsgBase &other) |
KMMsgBase (const KMMsgBase &other) | |
virtual unsigned long | getMsgSerNum () const |
virtual bool | enableUndo () |
virtual void | setEnableUndo (bool enable) |
virtual KMMsgAttachmentState | attachmentState () const |
QString | cleanSubject (const QStringList &prefixRegExps, bool replace, const QString &newPrefix) const |
QString | cleanSubject () const |
QString | forwardSubject () const |
QString | replySubject () const |
off_t | getLongPart (MsgPartType) const |
QString | getStringPart (MsgPartType) const |
bool | syncIndexString () const |
Static Public Member Functions | |
static QCString | statusToStr (const KMMsgStatus status) |
static QString | skipKeyword (const QString &str, QChar sepChar=':', bool *keywordFound=0) |
static const QTextCodec * | codecForName (const QCString &_str) |
static QCString | toUsAscii (const QString &_str, bool *ok=0) |
static QStringList | supportedEncodings (bool usAscii) |
static QCString | encodeRFC2047Quoted (const QCString &aStr, bool base64) |
static QString | decodeRFC2047String (const QCString &aStr) |
static QCString | encodeRFC2047String (const QString &aStr, const QCString &charset) |
static QCString | encodeRFC2231String (const QString &aStr, const QCString &charset) |
static QString | decodeRFC2231String (const QCString &aStr) |
static QString | base64EncodedMD5 (const QString &aStr, bool utf8=false) |
static QString | base64EncodedMD5 (const QCString &aStr) |
static QString | base64EncodedMD5 (const char *aStr, int len=-1) |
static QCString | autoDetectCharset (const QCString &encoding, const QStringList &encodingList, const QString &text) |
static QString | replacePrefixes (const QString &str, const QStringList &prefixRegExps, bool replace, const QString &newPrefix) |
static QString | stripOffPrefixes (const QString &str) |
static void | readConfig () |
Protected Attributes | |
KMFolder * | mParent |
off_t | mIndexOffset |
short | mIndexLength |
bool | mDirty |
bool | mEnableUndo |
KMMsgStatus | mStatus |
KMLegacyMsgStatus | mLegacyStatus |
Constructor & Destructor Documentation
|
Copy constructor that simply calls assign().
Definition at line 113 of file kmmsgbase.cpp. |
Member Function Documentation
|
Return contents as index string. This string is of indexStringLength() size Definition at line 1265 of file kmmsgbase.cpp. |
|
Copy all values from other to this object.
Definition at line 96 of file kmmsgbase.cpp. |
|
Return if the message has at least one attachment.
Definition at line 1022 of file kmmsgbase.cpp. |
|
Find out preferred charset for 'text'.
First Definition at line 963 of file kmmsgbase.cpp. |
|
Calculate the base64 encoded md5sum (sans the trailing equal signs).
If Definition at line 941 of file kmmsgbase.cpp. |
|
Return this mails subject, with all "forward" and "reply" prefixes removed.
Definition at line 1401 of file kmmsgbase.cpp. |
|
Check for prefixes
If none is found, Definition at line 1408 of file kmmsgbase.cpp. |
|
Return a QTextCodec for the specified charset. This function is a bit more tolerant, than QTextCodec::codecForName Definition at line 566 of file kmmsgbase.cpp. |
|
This function handles both encodings described in RFC2047: Base64 ("=?iso-8859-1?b?...?=") and quoted-printable.
Definition at line 649 of file kmmsgbase.cpp. |
|
Decode given string as described in RFC2231.
Definition at line 911 of file kmmsgbase.cpp. |
|
Returns TRUE if changed since last folder-sync.
Reimplemented in KMMsgInfo. Definition at line 268 of file kmmsgbase.h. |
|
If undo for this message should be enabled.
Definition at line 377 of file kmmsgbase.h. |
|
Helper function for encodeRFC2047String.
Definition at line 745 of file kmmsgbase.cpp. |
|
Encode given string as described in RFC2047: using quoted-printable.
Definition at line 755 of file kmmsgbase.cpp. |
|
Encode given string as described in RFC2231 (parameters in MIME headers).
Definition at line 848 of file kmmsgbase.cpp. |
|
Encryption status of the message.
|
|
Get/set msg filename.
|
|
Get/set offset in mail folder.
|
|
Return this mails subject, formatted for "forward" mails.
Definition at line 1417 of file kmmsgbase.cpp. |
|
access to long msgparts
Definition at line 1133 of file kmmsgbase.cpp. |
|
Returns the message serial number for the message.
Definition at line 1006 of file kmmsgbase.cpp. |
|
access to string msgparts
Definition at line 1064 of file kmmsgbase.cpp. |
|
Calculate strippedSubject.
|
|
Returns TRUE if status is deleted.
Definition at line 391 of file kmmsgbase.cpp. |
|
Returns TRUE if status is forwarded.
Definition at line 405 of file kmmsgbase.cpp. |
|
Returns TRUE if status is not spam.
Definition at line 461 of file kmmsgbase.cpp. |
|
Returns TRUE if status is ignored.
Definition at line 447 of file kmmsgbase.cpp. |
|
Returns TRUE if status is important.
Definition at line 433 of file kmmsgbase.cpp. |
|
Returns TRUE if object is a real message (not KMMsgInfo or KMMsgBase).
Reimplemented in KMMessage. Definition at line 119 of file kmmsgbase.cpp. |
|
Returns TRUE if status is new.
Definition at line 363 of file kmmsgbase.cpp. |
|
Returns TRUE if status is unknown.
Definition at line 370 of file kmmsgbase.cpp. |
|
Returns TRUE if status is old.
Definition at line 377 of file kmmsgbase.cpp. |
|
Returns TRUE if status is queued.
Definition at line 412 of file kmmsgbase.cpp. |
|
Returns TRUE if status is read.
Definition at line 384 of file kmmsgbase.cpp. |
|
Returns TRUE if status is replied.
Definition at line 398 of file kmmsgbase.cpp. |
|
Returns TRUE if status is sent.
Definition at line 426 of file kmmsgbase.cpp. |
|
Returns TRUE if status is spam.
Definition at line 454 of file kmmsgbase.cpp. |
|
Returns TRUE if status is todo flaged.
Definition at line 419 of file kmmsgbase.cpp. |
|
Returns TRUE if status unread. Note that new messages are not unread. Definition at line 356 of file kmmsgbase.cpp. |
|
Returns TRUE if status is watched.
Definition at line 440 of file kmmsgbase.cpp. |
|
"MDN send" status of the message.
|
|
Get/set size of message including the whole header in bytes.
|
|
Get/set size of message on server.
|
|
Assignment operator that simply calls assign().
Definition at line 105 of file kmmsgbase.cpp. |
|
Return owning folder.
Definition at line 146 of file kmmsgbase.h. |
|
Reads config settings from group "Composer" and sets all internal variables (e.g. indent-prefix, etc.) Reimplemented in KMMessage. Definition at line 1345 of file kmmsgbase.cpp. |
|
Check for prefixes
If none is found, Definition at line 1368 of file kmmsgbase.cpp. |
|
Return this mails subject, formatted for "reply" mails.
Definition at line 1422 of file kmmsgbase.cpp. |
|
Set date.
Reimplemented in KMMessage. Definition at line 523 of file kmmsgbase.cpp. |
|
Change dirty flag.
Definition at line 271 of file kmmsgbase.h. |
|
Set encryption status of the message and mark dirty.
Optional optimization: Reimplemented in KMMessage, and KMMsgInfo. Definition at line 300 of file kmmsgbase.cpp. |
|
Set encryption status of the message and mark dirty.
Optional optimization: Definition at line 308 of file kmmsgbase.cpp. |
|
size in index file
Definition at line 308 of file kmmsgbase.h. |
|
offset into index file
Definition at line 304 of file kmmsgbase.h. |
|
Set "MDN sent" status of the message.
Reimplemented in KMMessage, and KMMsgInfo. Definition at line 333 of file kmmsgbase.cpp. |
|
Set owning folder.
Definition at line 149 of file kmmsgbase.h. |
|
Set signature status of the message and mark dirty.
Optional optimization: Reimplemented in KMMessage, and KMMsgInfo. Definition at line 325 of file kmmsgbase.cpp. |
|
Set signature status of the message and mark dirty.
Optional optimization: Definition at line 339 of file kmmsgbase.cpp. |
|
Set status and mark dirty.
Optional optimization: Reimplemented in KMMessage, and KMMsgInfo. Definition at line 153 of file kmmsgbase.cpp. |
|
Set subject/from/date and xmark.
|
|
Signature status of the message.
|
|
Skip leading keyword if keyword has given character at it's end (e.g. ':' or ',') and skip the then following blanks (if any) too. If keywordFound is specified it will be TRUE if a keyword was skipped and FALSE otherwise. Definition at line 538 of file kmmsgbase.cpp. |
|
Status of the message.
|
|
Convert the given message status to a string.
Definition at line 493 of file kmmsgbase.cpp. |
|
Convert the given message status to a string.
Definition at line 468 of file kmmsgbase.cpp. |
|
Return owning storage.
Definition at line 86 of file kmmsgbase.cpp. |
|
Returns
Definition at line 1360 of file kmmsgbase.cpp. |
|
Important header fields of the message that are also kept in the index.
|
|
Return a list of the supported encodings.
Definition at line 593 of file kmmsgbase.cpp. |
|
sync'ing just one KMMsgBase
Definition at line 1325 of file kmmsgbase.cpp. |
|
Convert all non-ascii characters to question marks If ok is non-null, *ok will be set to true if all characters where ascii, *ok will be set to false otherwise.
Definition at line 576 of file kmmsgbase.cpp. |
|
Get/set UID for IMAP.
|
The documentation for this class was generated from the following files: