Example #1
0
InterfaceTree::~InterfaceTree() {
#ifdef HAVE_LIBPCAP
    if (stat_cache_) {
      capture_stat_stop(stat_cache_);
      stat_cache_ = NULL;
    }
#endif // HAVE_LIBPCAP
}
Example #2
0
void InterfaceTree::hideEvent(QHideEvent *evt) {
    Q_UNUSED(evt);

    if (stat_timer_) stat_timer_->stop();
    if (stat_cache_) {
        capture_stat_stop(stat_cache_);
        stat_cache_ = NULL;
    }
}
Example #3
0
void InterfaceTree::hideEvent(QHideEvent *) {
#ifdef HAVE_LIBPCAP
    if (stat_timer_) stat_timer_->stop();
    if (stat_cache_) {
        capture_stat_stop(stat_cache_);
        stat_cache_ = NULL;
    }
#endif // HAVE_LIBPCAP
}
void CaptureInterfacesDialog::on_tbInterfaces_hideEvent(QHideEvent *evt)
{
    Q_UNUSED(evt);
    if (stat_timer_) stat_timer_->stop();
    if (stat_cache_) {
        capture_stat_stop(stat_cache_);
        stat_cache_ = NULL;
    }
}
Example #5
0
InterfaceTree::~InterfaceTree() {
    QTreeWidgetItemIterator iter(this);

    if (stat_cache_) {
      capture_stat_stop(stat_cache_);
      stat_cache_ = NULL;
    }

    while (*iter) {
        QList<int> *points;
        QVariant v;

        v = (*iter)->data(1, Qt::UserRole);
        points = v.value<QList<int> *>();
        delete(points);
    }
}
Example #6
0
InterfaceTree::~InterfaceTree() {
#ifdef HAVE_LIBPCAP
    QTreeWidgetItemIterator iter(this);

    if (stat_cache_) {
      capture_stat_stop(stat_cache_);
      stat_cache_ = NULL;
    }

    while (*iter) {
        QList<int> *points;

        points = (*iter)->data(1, Qt::UserRole).value<QList<int> *>();
        delete(points);
        ++iter;
    }
#endif // HAVE_LIBPCAP
}