libzypp  13.10.6
ProblemSolutionCombi.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* Resolver_problems.cc
3  *
4  * Copyright (C) 2000-2002 Ximian, Inc.
5  * Copyright (C) 2005 SUSE Linux Products GmbH
6  *
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.
10  *
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.
15  *
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
19  * 02111-1307, USA.
20  */
21 
22 #ifndef ZYPP_SOLVER_DETAIL_PROBLEMSOLUTIONINSTALL_H
23 #define ZYPP_SOLVER_DETAIL_PROBLEMSOLUTIONINSTALL_H
24 
25 #include <string>
26 #include "zypp/ProblemSolution.h"
29 
31 namespace zypp
32 {
33  namespace solver
35  {
36  namespace detail
38  {
39 
47  {
48  protected:
49  int actNumber; // number of actions
50  public:
51 
55  ProblemSolutionCombi( ResolverProblem_Ptr parent );
59  void addSingleAction( PoolItem item, const TransactionKind action);
60 
64  void addSingleAction( Capability capability, const TransactionKind action);
65 
69  void addSingleAction( SolverQueueItem_Ptr item, const TransactionKind action);
70 
74  int actionCount() { return actNumber;}
75 
79  void addDescription( const std::string description);
80 
84  void addFrontDescription( const std::string & description );
85  };
86 
88  };// namespace detail
91  };// namespace solver
94 };// namespace zypp
96 
97 #endif // ZYPP_SOLVER_DETAIL_PROBLEMSOLUTIONAINSTALL_H
98 
std::string description() const
Return a one-line text description of this solution.
void addFrontDescription(const std::string &description)
Set description text (prepend)
ProblemSolutionCombi(ResolverProblem_Ptr parent)
Constructor.
void addSingleAction(PoolItem item, const TransactionKind action)
Add a single action of an item.
Class representing one possible solution to one problem found during resolving This problem solution ...
void addDescription(const std::string description)
Set description text (append)
TransactionKind
A problem solution action that performs a transaction (installs, removes, keep ...) one resolvable (package, patch, pattern, product).
A sat capability.
Definition: Capability.h:59
int actionCount()
returns the number of actions
Reference to a PoolItem connecting ResObject and ResStatus.
Definition: PoolItem.h:50
Class representing one possible solution to one problem found during resolving.