b620fc34e053aa8498fa1854eecf7fe65d968421
[platform/upstream/libzypp.git] / zypp / solver / detail / ProblemSolutionCombi.cc
1
2 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
3 /* ProblemSolution.cc
4  *
5  * Easy-to use interface to the ZYPP dependency resolver
6  *
7  * Copyright (C) 2000-2002 Ximian, Inc.
8  * Copyright (C) 2005 SUSE Linux Products GmbH
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License,
12  * version 2, as published by the Free Software Foundation.
13  *
14  * This program is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22  * 02111-1307, USA.
23  */
24 #define ZYPP_USE_RESOLVER_INTERNALS
25
26 #include "zypp/solver/detail/ProblemSolutionCombi.h"
27
28 using namespace std;
29
30 /////////////////////////////////////////////////////////////////////////
31 namespace zypp
32 {
33   ///////////////////////////////////////////////////////////////////////
34   namespace solver
35   {
36     /////////////////////////////////////////////////////////////////////
37     namespace detail
38     {
39       ProblemSolutionCombi::ProblemSolutionCombi()
40       {}
41
42       void ProblemSolutionCombi::addSingleAction( Capability capability, TransactionKind action)
43       { addAction( new TransactionSolutionAction( capability, action ) ); }
44
45       void ProblemSolutionCombi::addSingleAction( PoolItem item, TransactionKind action )
46       { addAction( new TransactionSolutionAction( item, action ) ); }
47
48       void ProblemSolutionCombi::addSingleAction( SolverQueueItem_Ptr item, TransactionKind action )
49       { addAction( new TransactionSolutionAction( item, action ) ); }
50
51     } // namespace detail
52     /////////////////////////////////////////////////////////////////////
53   } // namespace solver
54   ///////////////////////////////////////////////////////////////////////
55 } // namespace zypp
56 /////////////////////////////////////////////////////////////////////////