1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* Resolver_problems.cc
4 * Copyright (C) 2000-2002 Ximian, Inc.
5 * Copyright (C) 2005 SUSE Linux Products GmbH
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License,
9 * version 2, as published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22 #ifndef ZYPP_SOLVER_DETAIL_PROBLEMSOLUTIONINSTALL_H
23 #define ZYPP_SOLVER_DETAIL_PROBLEMSOLUTIONINSTALL_H
26 #include "zypp/ProblemSolution.h"
27 #include "zypp/solver/detail/Types.h"
28 #include "zypp/solver/detail/SolverQueueItem.h"
30 /////////////////////////////////////////////////////////////////////////
32 { ///////////////////////////////////////////////////////////////////////
33 ///////////////////////////////////////////////////////////////////////
35 { /////////////////////////////////////////////////////////////////////
36 /////////////////////////////////////////////////////////////////////
38 { ///////////////////////////////////////////////////////////////////
41 * Class representing one possible solution to one problem found during resolving
42 * This problem solution is a combination of different actions.
43 * e.G. install, delete, keep different resolvables.
46 class ProblemSolutionCombi : public ProblemSolution
49 int actNumber; // number of actions
55 ProblemSolutionCombi( ResolverProblem_Ptr parent );
57 * Add a single action of an item
59 void addSingleAction( PoolItem item, const TransactionKind action);
62 * Add a single action of a capability
64 void addSingleAction( Capability capability, const TransactionKind action);
67 * Add a single action of a SolverQueueItem
69 void addSingleAction( SolverQueueItem_Ptr item, const TransactionKind action);
72 * returns the number of actions
74 int actionCount() { return actNumber;}
77 * Set description text (append)
79 void addDescription( const std::string description);
82 * Set description text (prepend)
84 void addFrontDescription( const std::string & description );
87 ///////////////////////////////////////////////////////////////////
89 /////////////////////////////////////////////////////////////////////
90 /////////////////////////////////////////////////////////////////////
92 ///////////////////////////////////////////////////////////////////////
93 ///////////////////////////////////////////////////////////////////////
95 /////////////////////////////////////////////////////////////////////////
97 #endif // ZYPP_SOLVER_DETAIL_PROBLEMSOLUTIONAINSTALL_H