rem: ResourceItem( KListView *parent, KABC::Resource *resource ) : QCheckListItem( parent, "", CheckBox ), mResource( resource ), mChecked( false ) { setOn( resource->isActive() ); mChecked = resource->isActive(); }
add: ResourceItem::ResourceItem( KCal::ResourceCalendar *resource, const QString& sub, const QString& label, ResourceView *view, ResourceItem* parent )  : QCheckListItem( parent, label, CheckBox ), mResource( resource ), mView( view ), mBlockStateChange( false ), mIsSubresource( true ), mSubItemsCreated( false ) { mResourceColor = QColor(); mResourceIdentifier = sub; setText( 0, label ); setGuiState(); }
context:     ResourceItem( KListView *parent, KABC::Resource *resource )      : QCheckListItem( parent, "", CheckBox ),        mResource( resource ), mChecked( false )    {      setOn( resource->isActive() );      mChecked = resource->isActive();    }