rem: int KMKernel::openComposer (QString to, QString cc, QString bcc, QString subject, int hidden, KURL messageFile ) { kdDebug() << "KMKernel::openComposer called" << endl;  KMMessage *msg = new KMMessage; msg->initHeader(); if (!cc.isEmpty()) msg->setCc(cc); if (!bcc.isEmpty()) msg->setBcc(bcc); if (!subject.isEmpty()) msg->setSubject(subject); if (!to.isEmpty()) msg->setTo(to);  if (!messageFile.isEmpty() && messageFile.isLocalFile()) msg->setBody( kFileToString( messageFile.path(), true, false ) );  KMComposeWin *cWin = new KMComposeWin(msg); if (hidden == 0) cWin->show(); return 1; }
add: int openComposer (const QString &to, const QString &cc, const QString &bcc, const QString &subject, const QString &body, int hidden, const KURL &messageFile, const KURL& attachURL) { return openComposer(to, cc, bcc, subject, body, hidden, messageFile, KURL::List(attachURL)); }
context: int KMKernel::openComposer (QString to, QString cc,                            QString bcc, QString subject, int hidden,			    KURL messageFile ){  kdDebug() << "KMKernel::openComposer called" << endl;  KMMessage *msg = new KMMessage;  msg->initHeader();  if (!cc.isEmpty()) msg->setCc(cc);  if (!bcc.isEmpty()) msg->setBcc(bcc);  if (!subject.isEmpty()) msg->setSubject(subject);  if (!to.isEmpty()) msg->setTo(to);  if (!messageFile.isEmpty() && messageFile.isLocalFile())    msg->setBody( kFileToString( messageFile.path(), true, false ) );  KMComposeWin *cWin = new KMComposeWin(msg);  if (hidden == 0)    cWin->show();  return 1;}