Diffstat (limited to 'noncore/unsupported/mail2/libmail/mailfactory.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/libmail/mailfactory.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/unsupported/mail2/libmail/mailfactory.h b/noncore/unsupported/mail2/libmail/mailfactory.h index 8f67447..c938c27 100644 --- a/noncore/unsupported/mail2/libmail/mailfactory.h +++ b/noncore/unsupported/mail2/libmail/mailfactory.h @@ -1,73 +1,73 @@ #ifndef MAILFACTORY_H #define MAILFACTORY_H #include <qobject.h> #include <qpe/applnk.h> #include "configfile.h" class Attachment { public: void setFileName(QString fileName) { _fileName = fileName; } void setNewName(QString newName) { _newName = newName; } void setDescription(QString description) { _description = description; } - void setDocLnk(DocLnk *docLnk) { _docLnk = docLnk; } + void setDocLnk(DocLnk docLnk) { _docLnk = docLnk; } QString fileName() { return _fileName; } QString newName() { return _newName; } QString description() { return _description; } - DocLnk *docLnk() { return _docLnk; } + DocLnk docLnk() { return _docLnk; } protected: QString _fileName, _newName, _description; - DocLnk *_docLnk; + DocLnk _docLnk; }; class SendMail { public: SendMail() { _needsMime = false; } void setAccount(Account account) { _account = account; } void setFrom(QString from) { _from = from; } void setReplyTo(QString replyTo) { _replyTo = replyTo; } void setTo(QString to) { _to = to; } void setCc(QString cc) { _cc = cc; } void setBcc(QString bcc) { _bcc = bcc; } void setSubject(QString subject) { _subject = subject; } void setPriority(QString priority) { _priority = priority; } void setMessage(QString message) { _message = message; } void setInReplyTo(QString inReplyTo) { _inReplyTo = inReplyTo; } void setNeedsMime(bool needsMime) { _needsMime = needsMime; } //void setEncrypt(bool encrypt) { _encrypt = encrypt; } //void setSign(bool sign) { _sign = sign; } //void setGpgReceivers(QValueList<GpgKey> receivers) { _receivers = receivers; } //void setGpgPassphrase(QString passphrase) { _passphrase = passphrase; } void setAttachments(QValueList<Attachment> attachments) { _attachments = attachments; } void addAttachment(Attachment attachment) { _attachments.append(attachment); } Account account() { return _account; } QString from() { return _from; } QString replyTo() { return _replyTo; } QString to() { return _to; } QString cc() { return _cc; } QString bcc() { return _bcc; } QString subject() { return _subject; } QString priority() { return _priority; } QString message() { return _message; } QString inReplyTo() { return _inReplyTo; } bool needsMime() { return _needsMime; } //bool encrypt() { return _encrypt; } //bool sign() { return _sign; } //QValueList<GpgKey> gpgReceivers() { return _receivers; } //QString gpgPassphrase() { return _passphrase; } |