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_PROBLEMSOLUTIONIGNORE_H
23 #define ZYPP_SOLVER_DETAIL_PROBLEMSOLUTIONIGNORE_H
24 #ifndef ZYPP_USE_RESOLVER_INTERNALS
25 #error Do not directly include this file!
30 #include "zypp/ProblemSolution.h"
31 #include "zypp/PoolItem.h"
33 /////////////////////////////////////////////////////////////////////////
36 ///////////////////////////////////////////////////////////////////////
39 /////////////////////////////////////////////////////////////////////
42 /////////////////////////////////////////////////////////////////////////
43 /// \class ProblemSolutionIgnore
44 /// \brief Class representing one possible solution to one problem found during resolving.
46 /// This problem solution ignores one or more items by setting their
47 /// dependencies to weak
48 /////////////////////////////////////////////////////////////////////////
49 class ProblemSolutionIgnore : public ProblemSolution
52 typedef std::list<PoolItem> PoolItemList;
54 ProblemSolutionIgnore( PoolItem item );
55 ProblemSolutionIgnore( PoolItemList itemList );
59 /////////////////////////////////////////////////////////////////////
61 ///////////////////////////////////////////////////////////////////////
63 /////////////////////////////////////////////////////////////////////////
64 #endif // ZYPP_USE_RESOLVER_INTERNALS
65 #endif // ZYPP_SOLVER_DETAIL_PROBLEMSOLUTIONIGNORE_H