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

void DCOptions::SaveUserChatCommands (  )  [private]

Definition at line 1847 of file dcoptions.cpp.

References DC_UserChatCommand::m_sCommand, and DC_UserChatCommand::m_sName.

Referenced by GetValues().

{
      CList<DC_UserChatCommand> commands;
      DC_UserChatCommand * ucc;
      
      commands.Clear();
      
      QListViewItemIterator it( listView_CHAT_COMMANDS );
      
      for( ; it.current(); ++it )
      {
            ucc = new DC_UserChatCommand();
            ucc->m_sName    = it.current()->text(0).ascii();
            ucc->m_sCommand = it.current()->text(1).ascii();
            
            commands.Add(ucc);
      }
      
      g_pConfig->SetUserChatCommands( &commands );
}


Generated by  Doxygen 1.6.0   Back to index