From 47eb7d3f8201dae55f4880e9eaf342ada3c457a0 Mon Sep 17 00:00:00 2001 From: Jan Kupec Date: Fri, 27 Oct 2006 11:58:38 +0000 Subject: [PATCH] FillTable moved to zypper-search.h --- src/zmart-misc.cc | 1 - src/zmart-misc.h | 27 --------------------------- 2 files changed, 28 deletions(-) diff --git a/src/zmart-misc.cc b/src/zmart-misc.cc index ff57c87..7aa200a 100644 --- a/src/zmart-misc.cc +++ b/src/zmart-misc.cc @@ -3,7 +3,6 @@ #include #include "zmart.h" #include "zmart-misc.h" -#include "zypper-tabulator.h" #include #include diff --git a/src/zmart-misc.h b/src/zmart-misc.h index 5d571eb..be23c8b 100644 --- a/src/zmart-misc.h +++ b/src/zmart-misc.h @@ -56,31 +56,4 @@ struct ProvideProcess bool operator()( const zypp::PoolItem& provider ); }; - -/** - * Functor for filling search output table. - */ -struct FillTable -{ - FillTable( Table & table ) : _table( &table ) { - TableHeader header; - header << "S" << "Catalog" << "Bundle" << "Name" << "Version" << "Arch"; - *_table << header; - } - - void operator()(const zypp::PoolItem & pool_item) const { - TableRow row; - row << (pool_item.status().isInstalled() ? "i" : "") - << pool_item.resolvable()->source().alias() - << "" // TODO what about rug's Bundle? - << pool_item.resolvable()->name() - << pool_item.resolvable()->edition().asString() - << pool_item.resolvable()->arch().asString(); - - *_table << row; - } - - Table * _table; // != NULL asserted by ctor -}; - #endif -- 2.7.4