You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kmyfirewall/kmyfirewall/kmfwidgets/kmfchecklistitem.cpp

59 lines
1.9 KiB

//
// C++ Implementation: kmfchecklistitem
//
// Description:
//
//
// Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2003
//
// Copyright: See COPYING file that comes with this distribution
//
//
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "kmfchecklistitem.h"
// TQt includes
// KDE includes
#include <kdebug.h>
// Project includes
#include "../core/netfilterobject.h"
#include "../core/kmfprotocol.h"
#include "../core/kmfprotocolusage.h"
namespace KMF {
KMFCheckListItem::KMFCheckListItem( TQListView *parent, TQListViewItem *after, const TQString& text, Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( parent, after, text, tt ) {
loadKMFProtocolUsage( obj );
}
KMFCheckListItem::KMFCheckListItem( TQListViewItem *parent, const TQString& text , Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( parent, text, tt ) {
loadKMFProtocolUsage( obj );
}
KMFCheckListItem::KMFCheckListItem( TQListViewItem *parent, TQListViewItem *after, const TQString& text, Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( parent, after, text, tt ) {
loadKMFProtocolUsage( obj );
}
KMFCheckListItem::~KMFCheckListItem() {}
void KMFCheckListItem::loadKMFProtocolUsage( KMFProtocolUsage* obj ) {
if ( KMFProtocolUsage *prot = dynamic_cast<KMFProtocolUsage*> ( obj ) ) {
m_protocolUsage = prot;
} else {
kdDebug() << "ERROR: Given NetfilterObject has wrong type" << endl;
}
}
}