Source Code (Use browser search to find items of interest.)

Class Index

kppp'QLogList (./kdenetwork/kppp/logview/log.h:31)

class QLogList : public QLogInfoBase {
public:
  virtual int compareItems(Item, Item);
};


kppp'QLogList::compareItems() (./kdenetwork/kppp/logview/log.cpp:117)

int QLogList::compareItems(Item a, Item b) {
  LogInfo *la = (LogInfo *)a;
  LogInfo *lb = (LogInfo *)b;

  if(la->from() < lb->from())
    return -1;
  else if(la->from() > lb->from())
    return 1;
  else
    return 0;
}