[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Map of KDE developers input form ready - sort of...
From:       Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date:       2001-08-08 11:59:56
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 08 August 2001 11:49, Dirk Mueller wrote:
> On Mit, 08 Aug 2001, Marc Mutz wrote:
> > a Kmail composer comes up with an empty message, where it should
> > contain name=value pairs, each on one line, like:
>
> Thats correct. I have not the slightest idea on how to feed this data
> to kmail. can anybody enlighten me ? Does KMail support reading the
> stuff from a file ?
<snip>

OK, I had a look now:

What about
  virtual int openComposer (const QString &to, const QString &cc,
                            const QString &bcc, const QString &subject,
                            const QString &body, int hidden,
                            const QString &attachName,
                            const QCString &attachCte,
                            const QCString &attachData,
                            const QCString &attachType,
                            const QCString &attachSubType,
                            const QCString &attachParamAttr,
                            const QCString &attachCte,
                            const QCString &attachData,
                            const QCString &attachType,
                            const QCString &attachSubType,
                            const QCString &attachParamAttr,
                            const QString &attachParamValue,
                            const QCString &attachContDisp) = 0;
(from kmailIface.h)
and
    /**
      Set message body.
    */
    virtual void setBody (QString body) = 0;
    /**
      Add attachment.
 
      @param name Name of Attachment
      @param cte Content Transfer Encoding
      @param data Data to be attached
      @param type MIME content type
      @param subType MIME content sub type
      @param paramAttr Attribute name of parameter of content type
      @param paramValue Value of parameter of content type
      @param contDisp Content disposition
    */
    virtual void addAttachment(const QString &name,
                              const QCString &cte,
                              const QByteArray &data,
                              const QCString &type,
                              const QCString &subType,
                              const QCString &paramAttr,
                              const QString &paramValue,
                              const QCString &contDisp) = 0;
(from mailcomposerIface.h)?

So you would open a hidden composer, set the data and type/subtype and 
there you go.

Am I missing somthing?

Marc

- -- 
The intensity and complexity of life, attendant upon advancing 
civilization, have rendered necessary some retreat from the world, and 
man, under the refining influence of culture, has become more sensitive 
to publicity, so that solitude and privacy have become more essential 
to the individual; but modern enterprise and invention have, through 
invasions upon his privacy, subjected him to mental pain and distress, 
far greater than could be inflicted by mere bodily injury.
S.D. Warren/L.D. Brandeis: The Right to Privacy, Harvard Law Review 
vol.IV, no.5 (1890)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7cUXA3oWD+L2/6DgRAtB4AJ9+0816VMTXrO3T3dGv7m9xWBTJMgCcDx/l
XepMa4KKpgfvDixiacfrMG0=
=MJiR
-----END PGP SIGNATURE-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic