author | alwin <alwin> | 2004-01-04 01:59:09 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-01-04 01:59:09 (UTC) |
commit | 16d8d88dc09477d871f92d283aa59c8206456a26 (patch) (unidiff) | |
tree | f9aa7a7d6861c81535810092eae8a1f93a9d2358 /noncore/net/mail/mailwrapper.h | |
parent | 6fd109ed595e4e28f49f5de0a26e9f9445e672f6 (diff) | |
download | opie-16d8d88dc09477d871f92d283aa59c8206456a26.zip opie-16d8d88dc09477d871f92d283aa59c8206456a26.tar.gz opie-16d8d88dc09477d871f92d283aa59c8206456a26.tar.bz2 |
moved to shared lib
Diffstat (limited to 'noncore/net/mail/mailwrapper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/mailwrapper.h | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/noncore/net/mail/mailwrapper.h b/noncore/net/mail/mailwrapper.h deleted file mode 100644 index a60777d..0000000 --- a/noncore/net/mail/mailwrapper.h +++ b/dev/null | |||
@@ -1,92 +0,0 @@ | |||
1 | #ifndef MAILWRAPPER_H | ||
2 | #define MAILWRAPPER_H | ||
3 | |||
4 | #include <qpe/applnk.h> | ||
5 | |||
6 | #include <qbitarray.h> | ||
7 | #include <qdatetime.h> | ||
8 | |||
9 | #include "settings.h" | ||
10 | |||
11 | class Attachment | ||
12 | { | ||
13 | public: | ||
14 | Attachment( DocLnk lnk ); | ||
15 | virtual ~Attachment(){} | ||
16 | const QString getFileName()const{ return doc.file(); } | ||
17 | const QString getName()const{ return doc.name(); } | ||
18 | const QString getMimeType()const{ return doc.type(); } | ||
19 | const QPixmap getPixmap()const{ return doc.pixmap(); } | ||
20 | const int getSize()const { return size; } | ||
21 | DocLnk getDocLnk() { return doc; } | ||
22 | |||
23 | protected: | ||
24 | DocLnk doc; | ||
25 | int size; | ||
26 | |||
27 | }; | ||
28 | |||
29 | class Mail | ||
30 | { | ||
31 | public: | ||
32 | Mail(); | ||
33 | /* Possible that this destructor must not be declared virtual | ||
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 | ||
36 | * speed will be a little bit better? | ||
37 | */ | ||
38 | virtual ~Mail(){} | ||
39 | void addAttachment( Attachment *att ) { attList.append( att ); } | ||
40 | const QList<Attachment>& getAttachments()const { return attList; } | ||
41 | void removeAttachment( Attachment *att ) { attList.remove( att ); } | ||
42 | const QString&getName()const { return name; } | ||
43 | void setName( QString s ) { name = s; } | ||
44 | const QString&getMail()const{ return mail; } | ||
45 | void setMail( const QString&s ) { mail = s; } | ||
46 | const QString&getTo()const{ return to; } | ||
47 | void setTo( const QString&s ) { to = s; } | ||
48 | const QString&getCC()const{ return cc; } | ||
49 | void setCC( const QString&s ) { cc = s; } | ||
50 | const QString&getBCC()const { return bcc; } | ||
51 | void setBCC( const QString&s ) { bcc = s; } | ||
52 | const QString&getMessage()const { return message; } | ||
53 | void setMessage( const QString&s ) { message = s; } | ||
54 | const QString&getSubject()const { return subject; } | ||
55 | void setSubject( const QString&s ) { subject = s; } | ||
56 | const QString&getReply()const{ return reply; } | ||
57 | void setReply( const QString&a ) { reply = a; } | ||
58 | |||
59 | private: | ||
60 | QList<Attachment> attList; | ||
61 | QString name, mail, to, cc, bcc, reply, subject, message; | ||
62 | }; | ||
63 | |||
64 | class Folder : public QObject | ||
65 | { | ||
66 | Q_OBJECT | ||
67 | |||
68 | public: | ||
69 | Folder( const QString&init_name,const QString&sep ); | ||
70 | const QString&getDisplayName()const { return nameDisplay; } | ||
71 | const QString&getName()const { return name; } | ||
72 | virtual bool may_select()const{return true;} | ||
73 | virtual bool no_inferior()const{return true;} | ||
74 | const QString&Separator()const; | ||
75 | |||
76 | protected: | ||
77 | QString nameDisplay, name, separator; | ||
78 | |||
79 | }; | ||
80 | |||
81 | class IMAPFolder : public Folder | ||
82 | { | ||
83 | public: | ||
84 | IMAPFolder(const QString&name, const QString&sep, bool select=true,bool noinf=false,const QString&prefix="" ); | ||
85 | virtual bool may_select()const{return m_MaySelect;} | ||
86 | virtual bool no_inferior()const{return m_NoInferior;} | ||
87 | private: | ||
88 | static QString decodeFolderName( const QString &name ); | ||
89 | bool m_MaySelect,m_NoInferior; | ||
90 | }; | ||
91 | |||
92 | #endif | ||