15 #include "dataformfield.h"
16 #include "dataformreported.h"
17 #include "dataformitem.h"
24 : m_instructions( instructions ), m_type( type ), m_title( title )
29 : m_type( type ), m_title( title )
34 : m_type( FormTypeInvalid )
40 : m_type( FormTypeInvalid )
65 Tag::TagList::const_iterator it = l.begin();
66 for( ; it != l.end(); ++it )
68 if( (*it)->name() ==
"title" )
69 m_title = (*it)->cdata();
70 else if( (*it)->name() ==
"instructions" )
71 m_instructions.push_back( (*it)->cdata() );
72 else if( (*it)->name() ==
"field" )
75 m_fields.push_back( f );
77 else if( (*it)->name() ==
"reported" )
80 m_fields.push_back( r );
82 else if( (*it)->name() ==
"item" )
85 m_fields.push_back( i );
99 if( !m_title.empty() )
100 new Tag( x,
"title", m_title );
102 StringList::const_iterator it_i = m_instructions.begin();
103 for( ; it_i != m_instructions.end(); ++it_i )
104 new Tag( x,
"instructions", (*it_i) );
106 FieldList::const_iterator it = m_fields.begin();
107 for( ; it != m_fields.end(); ++it )