You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

69 lines
2.1 KiB

/* Message info describing a messages in a folder
*
* Author: Stefan Taferner <taferner@alpin.or.at>
*/
#ifndef kmmsginfo_h
#define kmmsginfo_h
#include "kmmsgbase.h"
class KMMessage;
#define KMMsgInfoInherited KMMsgBase
class KMMsgInfo: public KMMsgBase
{
public:
KMMsgInfo(KMFolder* parent, long off=0, short len=0);
virtual ~KMMsgInfo();
/* left for old style index files */
void compat_fromOldIndexString(const QCString& str, bool toUtf8);
/** Initialize with given values and set dirty flag to FALSE. */
virtual void init(const QString& subject, const QString& from,
const QString& to, time_t date,
KMMsgStatus status, const QString& xmark,
const QString& replyToId, const QString& msgId,
unsigned long folderOffset=0, unsigned long msgSize=0);
/** Inherited methods (see KMMsgBase for description): */
virtual QString subject(void) const;
virtual QString fromStrip(void) const;
virtual QString toStrip(void) const;
virtual QString xmark(void) const;
virtual QString replyToIdMD5(void) const;
virtual QString msgIdMD5(void) const;
virtual KMMsgStatus status(void) const;
virtual unsigned long folderOffset(void) const;
virtual unsigned long msgSize(void) const;
virtual time_t date(void) const;
void setMsgSize(unsigned long sz);
void setFolderOffset(unsigned long offs);
virtual void setStatus(const KMMsgStatus status);
virtual void setDate(time_t aUnixTime);
virtual void setSubject(const QString&);
virtual void setXMark(const QString&);
virtual void setReplyToIdMD5(const QString&);
virtual void setMsgIdMD5(const QString&);
//Grr.. c++!
virtual void setStatus(const char* s1, const char* s2=0) { return KMMsgBase::setStatus(s1, s2); }
virtual void setDate(const char* s1) { return KMMsgBase::setDate(s1); }
virtual bool dirty(void) const;
/** Copy operators. */
KMMsgInfo& operator=(const KMMessage&);
KMMsgInfo& operator=(const KMMsgInfo&);
private:
KMMsgStatus mStatus;
class KMMsgInfoPrivate;
KMMsgInfoPrivate *kd;
};
typedef KMMsgInfo* KMMsgInfoPtr;
#endif /*kmmsginfo_h*/