24 #include <sys/types.h>
25 #include "kmmsgbase.h"
29 class KMMsgInfo: public KMMsgBase
32 KMMsgInfo( KMFolder* parent, off_t off=0, short len=0);
36 void compat_fromOldIndexString( const TQCString& str, bool toUtf8);
40 virtual void init( const TQCString& subject, const TQCString& from,
41 const TQCString& to, time_t date,
42 KMMsgStatus status, const TQCString& xmark,
43 const TQCString& replyToId,
44 const TQCString& replyToAuxId,
45 const TQCString& msgId,
46 KMMsgEncryptionState encryptionState,
47 KMMsgSignatureState signatureState,
48 KMMsgMDNSentState mdnSentState,
49 const TQCString& prefCharset,
50 off_t folderOffset=0, size_t msgSize=0,
51 size_t msgSizeServer = 0, ulong UID = 0);
54 virtual void init( const TQCString& subject, const TQCString& from,
55 const TQCString& to, time_t date,
56 KMMsgStatus status, const TQCString& xmark,
57 const TQCString& replyToId,
58 const TQCString& replyToAuxId,
59 const TQCString& msgId,
60 const TQCString& fileName,
61 KMMsgEncryptionState encryptionState,
62 KMMsgSignatureState signatureState,
63 KMMsgMDNSentState mdnSentState,
64 const TQCString& prefCharset,
66 size_t msgSizeServer = 0, ulong UID = 0);
69 virtual TQString subject( void) const;
70 virtual TQString fromStrip( void) const;
71 virtual TQString from() const;
72 virtual TQString toStrip( void) const;
73 virtual TQString to() const;
74 virtual TQString xmark( void) const;
75 virtual TQString replyToIdMD5( void) const;
76 virtual TQString replyToAuxIdMD5() const;
77 virtual TQString strippedSubjectMD5() const;
78 virtual bool subjectIsPrefixed() const;
79 virtual TQString msgIdMD5( void) const;
80 virtual TQString fileName( void) const;
81 virtual KMMsgStatus status( void) const;
82 virtual KMMsgEncryptionState encryptionState() const;
83 virtual KMMsgSignatureState signatureState() const;
84 virtual KMMsgMDNSentState mdnSentState() const;
85 virtual off_t folderOffset( void) const;
86 virtual size_t msgSize( void) const;
87 virtual size_t msgSizeServer( void) const;
88 virtual time_t date( void) const;
89 virtual ulong UID( void) const;
90 void setMsgSize( size_t sz);
91 void setMsgSizeServer( size_t sz);
92 void setFolderOffset(off_t offs);
93 void setFileName( const TQString& file);
94 virtual void setStatus( const KMMsgStatus status, int idx = -1);
95 virtual void setDate(time_t aUnixTime);
96 virtual void setSubject( const TQString&);
97 virtual void setXMark( const TQString&);
98 virtual void setReplyToIdMD5( const TQString&);
99 virtual void setReplyToAuxIdMD5( const TQString& );
100 virtual void initStrippedSubjectMD5();
101 virtual void setMsgIdMD5( const TQString&);
102 virtual void setEncryptionState( const KMMsgEncryptionState, int idx = -1 );
103 virtual void setSignatureState( const KMMsgSignatureState, int idx = -1 );
104 virtual void setMDNSentState( const KMMsgMDNSentState, int idx = -1 );
105 virtual void setUID(ulong);
106 virtual void setFrom( const TQString &from );
107 virtual void setTo( const TQString &to );
110 virtual void setStatus( const char* s1, const char* s2=0) { KMMsgBase::setStatus(s1, s2); }
111 virtual void setDate( const char* s1) { KMMsgBase::setDate(s1); }
113 virtual bool dirty( void) const;
120 KMMsgInfo& operator=( const KMMsgInfo&);
121 KMMsgInfo( const KMMsgInfo&);
124 class KMMsgInfoPrivate;
125 KMMsgInfoPrivate *kd;
128 typedef KMMsgInfo* KMMsgInfoPtr;
|