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.
 
 
 

44 lines
1.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=NULL);
virtual ~KMMsgInfo();
/** Initialize from index string and set dirty flag to FALSE. */
virtual void fromIndexString(const QString str);
/** Initialize with given values and set dirty flag to FALSE. */
virtual void init(const QString subject, const QString from, time_t date,
KMMsgStatus status, unsigned long folderOffset=0,
unsigned long msgSize=0);
/** Inherited methods (see KMMsgBase for description): */
virtual const QString subject(void) const;
virtual const QString from(void) const;
virtual void setSubject(const QString);
virtual void setFrom(const QString);
/** Copy operators. */
KMMsgInfo& operator=(const KMMessage&);
KMMsgInfo& operator=(const KMMsgInfo&);
protected:
QString mSubject, mFrom;
};
typedef KMMsgInfo* KMMsgInfoPtr;
#endif /*kmmsginfo_h*/