Diffstat (limited to 'noncore/net/mail/libmailwrapper/mailwrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailwrapper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailwrapper.h b/noncore/net/mail/libmailwrapper/mailwrapper.h index caaa3a2..3a9f97b 100644 --- a/noncore/net/mail/libmailwrapper/mailwrapper.h +++ b/noncore/net/mail/libmailwrapper/mailwrapper.h | |||
@@ -34,52 +34,55 @@ public: | |||
34 | * 'cause it seems that it will never have some child classes. | 34 | * 'cause it seems that it will never have some child classes. |
35 | * in this case this object will not get a virtual table -> memory and | 35 | * in this case this object will not get a virtual table -> memory and |
36 | * speed will be a little bit better? | 36 | * speed will be a little bit better? |
37 | */ | 37 | */ |
38 | virtual ~Mail(){} | 38 | virtual ~Mail(){} |
39 | void addAttachment( Attachment *att ) { attList.append( att ); } | 39 | void addAttachment( Attachment *att ) { attList.append( att ); } |
40 | const QList<Attachment>& getAttachments()const { return attList; } | 40 | const QList<Attachment>& getAttachments()const { return attList; } |
41 | void removeAttachment( Attachment *att ) { attList.remove( att ); } | 41 | void removeAttachment( Attachment *att ) { attList.remove( att ); } |
42 | const QString&getName()const { return name; } | 42 | const QString&getName()const { return name; } |
43 | void setName( QString s ) { name = s; } | 43 | void setName( QString s ) { name = s; } |
44 | const QString&getMail()const{ return mail; } | 44 | const QString&getMail()const{ return mail; } |
45 | void setMail( const QString&s ) { mail = s; } | 45 | void setMail( const QString&s ) { mail = s; } |
46 | const QString&getTo()const{ return to; } | 46 | const QString&getTo()const{ return to; } |
47 | void setTo( const QString&s ) { to = s; } | 47 | void setTo( const QString&s ) { to = s; } |
48 | const QString&getCC()const{ return cc; } | 48 | const QString&getCC()const{ return cc; } |
49 | void setCC( const QString&s ) { cc = s; } | 49 | void setCC( const QString&s ) { cc = s; } |
50 | const QString&getBCC()const { return bcc; } | 50 | const QString&getBCC()const { return bcc; } |
51 | void setBCC( const QString&s ) { bcc = s; } | 51 | void setBCC( const QString&s ) { bcc = s; } |
52 | const QString&getMessage()const { return message; } | 52 | const QString&getMessage()const { return message; } |
53 | void setMessage( const QString&s ) { message = s; } | 53 | void setMessage( const QString&s ) { message = s; } |
54 | const QString&getSubject()const { return subject; } | 54 | const QString&getSubject()const { return subject; } |
55 | void setSubject( const QString&s ) { subject = s; } | 55 | void setSubject( const QString&s ) { subject = s; } |
56 | const QString&getReply()const{ return reply; } | 56 | const QString&getReply()const{ return reply; } |
57 | void setReply( const QString&a ) { reply = a; } | 57 | void setReply( const QString&a ) { reply = a; } |
58 | void setInreply(const QStringList&list){m_in_reply_to = list;} | ||
59 | const QStringList&Inreply()const{return m_in_reply_to;} | ||
58 | 60 | ||
59 | private: | 61 | private: |
60 | QList<Attachment> attList; | 62 | QList<Attachment> attList; |
61 | QString name, mail, to, cc, bcc, reply, subject, message; | 63 | QString name, mail, to, cc, bcc, reply, subject, message; |
64 | QStringList m_in_reply_to; | ||
62 | }; | 65 | }; |
63 | 66 | ||
64 | class Folder : public QObject | 67 | class Folder : public QObject |
65 | { | 68 | { |
66 | Q_OBJECT | 69 | Q_OBJECT |
67 | 70 | ||
68 | public: | 71 | public: |
69 | Folder( const QString&init_name,const QString&sep ); | 72 | Folder( const QString&init_name,const QString&sep ); |
70 | const QString&getDisplayName()const { return nameDisplay; } | 73 | const QString&getDisplayName()const { return nameDisplay; } |
71 | const QString&getName()const { return name; } | 74 | const QString&getName()const { return name; } |
72 | const QString&getPrefix()const{return prefix; } | 75 | const QString&getPrefix()const{return prefix; } |
73 | virtual bool may_select()const{return true;} | 76 | virtual bool may_select()const{return true;} |
74 | virtual bool no_inferior()const{return true;} | 77 | virtual bool no_inferior()const{return true;} |
75 | const QString&Separator()const; | 78 | const QString&Separator()const; |
76 | 79 | ||
77 | protected: | 80 | protected: |
78 | QString nameDisplay, name, separator,prefix; | 81 | QString nameDisplay, name, separator,prefix; |
79 | }; | 82 | }; |
80 | 83 | ||
81 | class MHFolder : public Folder | 84 | class MHFolder : public Folder |
82 | { | 85 | { |
83 | Q_OBJECT | 86 | Q_OBJECT |
84 | public: | 87 | public: |
85 | MHFolder(const QString&disp_name,const QString&mbox); | 88 | MHFolder(const QString&disp_name,const QString&mbox); |