author | alwin <alwin> | 2003-12-27 18:23:23 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-27 18:23:23 (UTC) |
commit | 7812187f6732eef351e501d993aa664b7e351cbb (patch) (unidiff) | |
tree | fe2ed5fc0d8c67983956ecf543a54d2e6355a627 /noncore/net/mail/mailwrapper.h | |
parent | 583f9d5f33fa055fe8ee612f344d06faae1ef330 (diff) | |
download | opie-7812187f6732eef351e501d993aa664b7e351cbb.zip opie-7812187f6732eef351e501d993aa664b7e351cbb.tar.gz opie-7812187f6732eef351e501d993aa664b7e351cbb.tar.bz2 |
folder handling for imap mostly impelemented, context menus for
imap-mail-folders implemented.
Diffstat (limited to 'noncore/net/mail/mailwrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/mailwrapper.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/noncore/net/mail/mailwrapper.h b/noncore/net/mail/mailwrapper.h index 8fd886f..a60777d 100644 --- a/noncore/net/mail/mailwrapper.h +++ b/noncore/net/mail/mailwrapper.h | |||
@@ -48,44 +48,45 @@ public: | |||
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 | 58 | ||
59 | private: | 59 | private: |
60 | QList<Attachment> attList; | 60 | QList<Attachment> attList; |
61 | QString name, mail, to, cc, bcc, reply, subject, message; | 61 | QString name, mail, to, cc, bcc, reply, subject, message; |
62 | }; | 62 | }; |
63 | 63 | ||
64 | class Folder : public QObject | 64 | class Folder : public QObject |
65 | { | 65 | { |
66 | Q_OBJECT | 66 | Q_OBJECT |
67 | 67 | ||
68 | public: | 68 | public: |
69 | Folder( const QString&init_name,const QString&sep ); | 69 | Folder( const QString&init_name,const QString&sep ); |
70 | const QString&getDisplayName()const { return nameDisplay; } | 70 | const QString&getDisplayName()const { return nameDisplay; } |
71 | const QString&getName()const { return name; } | 71 | const QString&getName()const { return name; } |
72 | virtual bool may_select()const{return true;}; | 72 | virtual bool may_select()const{return true;} |
73 | virtual bool no_inferior()const{return true;} | ||
73 | const QString&Separator()const; | 74 | const QString&Separator()const; |
74 | 75 | ||
75 | protected: | 76 | protected: |
76 | QString nameDisplay, name, separator; | 77 | QString nameDisplay, name, separator; |
77 | 78 | ||
78 | }; | 79 | }; |
79 | 80 | ||
80 | class IMAPFolder : public Folder | 81 | class IMAPFolder : public Folder |
81 | { | 82 | { |
82 | public: | 83 | public: |
83 | IMAPFolder(const QString&name, const QString&sep, bool select=true,const QString&prefix="" ); | 84 | IMAPFolder(const QString&name, const QString&sep, bool select=true,bool noinf=false,const QString&prefix="" ); |
84 | virtual bool may_select()const{return m_MaySelect;} | 85 | virtual bool may_select()const{return m_MaySelect;} |
86 | virtual bool no_inferior()const{return m_NoInferior;} | ||
85 | private: | 87 | private: |
86 | static QString decodeFolderName( const QString &name ); | 88 | static QString decodeFolderName( const QString &name ); |
87 | bool m_MaySelect; | 89 | bool m_MaySelect,m_NoInferior; |
88 | |||
89 | }; | 90 | }; |
90 | 91 | ||
91 | #endif | 92 | #endif |