20 #include "printcapentry.h"
22 TQString Field::toString()
const
41 bool PrintcapEntry::writeEntry(TQTextStream& t)
45 if (aliases.count() > 0)
46 t <<
'|' << aliases.join(
"|");
48 for (TQMap<TQString,Field>::ConstIterator it=fields.begin(); it!=fields.end(); ++it)
50 t <<
'\\' << endl <<
" :";
55 t <<
'=' << (*it).value <<
':';
58 t <<
'#' << (*it).value <<
':';
69 if (!postcomment.isEmpty())
70 t << postcomment << endl;
75 void PrintcapEntry::addField(
const TQString& name, Field::Type type,
const TQString& value)