Logo Search packages:      
Sourcecode: valknut version File versions  Download package

void DCOptions::SaveAutoResponses (  )  [private]

Definition at line 1868 of file dcoptions.cpp.

References DC_AutoResponseObject::m_bCaseSensitive, DC_AutoResponseObject::m_sResponse, and DC_AutoResponseObject::m_sTrigger.

Referenced by GetValues().

{
      CList<DC_AutoResponseObject> autoresponses;
      DC_AutoResponseObject * aro = 0;
      
      autoresponses.Clear();
      
      QListViewItemIterator it( listView_AUTO_RESPONSES );
      for ( ; it.current(); ++it)
      {
            aro = new DC_AutoResponseObject();
            aro->m_sTrigger = it.current()->text(0).ascii();
            if (it.current()->text(1) == tr("Yes"))
            {
                  aro->m_bCaseSensitive = TRUE;
            }
            else
            {
                  aro->m_bCaseSensitive = FALSE;
            }
            aro->m_sResponse = it.current()->text(2).ascii();
            
            autoresponses.Add(aro);
      }
      
      g_pConfig->SetAutoResponses( &autoresponses );
}


Generated by  Doxygen 1.6.0   Back to index