Imported Upstream version 14.45.0
[platform/upstream/libzypp.git] / zypp / solver / detail / ProblemSolutionIgnore.h
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_PROBLEMSOLUTIONIGNORE_H
23 #define ZYPP_SOLVER_DETAIL_PROBLEMSOLUTIONIGNORE_H
24
25 #include "zypp/solver/detail/Types.h"
26 #include "zypp/ProblemSolution.h"
27
28 /////////////////////////////////////////////////////////////////////////
29 namespace zypp
30 { ///////////////////////////////////////////////////////////////////////
31   ///////////////////////////////////////////////////////////////////////
32   namespace solver
33   { /////////////////////////////////////////////////////////////////////
34     /////////////////////////////////////////////////////////////////////
35     namespace detail
36     { ///////////////////////////////////////////////////////////////////
37
38         /**
39          * Class representing one possible solution to one problem found during resolving
40          * This problem solution ignores one or more items by setting his dependencies
41          * to weak
42          **/
43         class ProblemSolutionIgnore : public ProblemSolution
44         {
45         public:
46
47             /**
48              * Constructor.
49              **/
50             ProblemSolutionIgnore( ResolverProblem_Ptr parent,
51                                    PoolItem item );
52             ProblemSolutionIgnore( ResolverProblem_Ptr parent,
53                                    PoolItemList itemList);          
54         };
55
56         
57
58       ///////////////////////////////////////////////////////////////////
59     };// namespace detail
60     /////////////////////////////////////////////////////////////////////
61     /////////////////////////////////////////////////////////////////////
62   };// namespace solver
63   ///////////////////////////////////////////////////////////////////////
64   ///////////////////////////////////////////////////////////////////////
65 };// namespace zypp
66 /////////////////////////////////////////////////////////////////////////
67
68 #endif // ZYPP_SOLVER_DETAIL_PROBLEMSOLUTIONIGNORE_H
69