Home | History | Annotate | Download | only in wpa_gui
      1 /****************************************************************************
      2 ** ui.h extension file, included from the uic-generated form implementation.
      3 **
      4 ** If you want to add, delete, or rename functions or slots, use
      5 ** Qt Designer to update this file, preserving your code.
      6 **
      7 ** You should not define a constructor or destructor in this file.
      8 ** Instead, write your code in functions called init() and destroy().
      9 ** These will automatically be called by the form's constructor and
     10 ** destructor.
     11 *****************************************************************************/
     12 
     13 void EventHistory::init()
     14 {
     15 }
     16 
     17 
     18 void EventHistory::destroy()
     19 {
     20 }
     21 
     22 
     23 void EventHistory::addEvents(WpaMsgList msgs)
     24 {
     25     WpaMsgList::iterator it;
     26     for (it = msgs.begin(); it != msgs.end(); it++) {
     27 	addEvent(*it);
     28     }
     29 }
     30 
     31 
     32 void EventHistory::addEvent(WpaMsg msg)
     33 {
     34     Q3ListViewItem *item;
     35     item = new Q3ListViewItem(eventListView,
     36 			     msg.getTimestamp().toString("yyyy-MM-dd hh:mm:ss.zzz"),
     37 			     msg.getMsg());
     38     if (item == NULL)
     39 	return;
     40     eventListView->setSelected(item, false);
     41 }
     42