Logo Search packages:      
Sourcecode: kmess version File versions

void MimeMessage::setField ( const QString &  field,
const QString &  value 
)

Sets the field in the message, or adds it if it doesn't exist.

Definition at line 165 of file mimemessage.cpp.

{
  int index= fields_.findIndex(field);
  if(-1 == index)
  {
    addField(field, value);
  }
  else
  {
    values_[index]= value;
  }
}


Generated by  Doxygen 1.6.0   Back to index