libzypp  10.5.0
ProblemSolutionCombi.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
00002 /* Resolver_problems.cc
00003  *
00004  * Copyright (C) 2000-2002 Ximian, Inc.
00005  * Copyright (C) 2005 SUSE Linux Products GmbH
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License,
00009  * version 2, as published by the Free Software Foundation.
00010  *
00011  * This program is distributed in the hope that it will be useful, but
00012  * WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00019  * 02111-1307, USA.
00020  */
00021 
00022 #ifndef ZYPP_SOLVER_DETAIL_PROBLEMSOLUTIONINSTALL_H
00023 #define ZYPP_SOLVER_DETAIL_PROBLEMSOLUTIONINSTALL_H
00024 
00025 #include <string>
00026 #include "zypp/ProblemSolution.h"
00027 #include "zypp/solver/detail/Types.h"
00028 #include "zypp/solver/detail/SolverQueueItem.h"
00029 
00031 namespace zypp
00032 { 
00033 
00034   namespace solver
00035   { 
00036 
00037     namespace detail
00038     { 
00039 
00046         class ProblemSolutionCombi : public ProblemSolution
00047         {
00048         protected:
00049             int actNumber; // number of actions
00050         public:
00051 
00055             ProblemSolutionCombi( ResolverProblem_Ptr parent );
00059             void addSingleAction( PoolItem item, const TransactionKind action);
00060 
00064             void addSingleAction( Capability capability, const TransactionKind action);
00065 
00069             void addSingleAction( SolverQueueItem_Ptr item, const TransactionKind action);
00070 
00074             int actionCount() { return actNumber;}
00075 
00079             void addDescription( const std::string description);
00080 
00084             void addFrontDescription( const std::string & description );
00085         };
00086 
00088     };// namespace detail
00091   };// namespace solver
00094 };// namespace zypp
00096 
00097 #endif // ZYPP_SOLVER_DETAIL_PROBLEMSOLUTIONAINSTALL_H
00098