00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: NCPopupDeps.h 00014 00015 Author: Gabriele Strattner <gs@suse.de> 00016 Maintainer: Michael Andres <ma@suse.de> 00017 00018 /-*/ 00019 #ifndef NCPopupPkgDeps_h 00020 #define NCPopupPkgDeps_h 00021 00022 #include <iosfwd> 00023 00024 #include <vector> 00025 #include <string> 00026 00027 #include "NCPopupDeps.h" 00028 #include "NCLabel.h" 00029 #include "y2pm/PkgDep.h" 00030 00031 #include <Y2PM.h> 00032 #include <y2pm/RpmDb.h> 00033 #include <y2pm/PMManager.h> 00034 00035 00037 // 00038 // CLASS NAME : NCPopupPkgDeps 00039 // 00040 // DESCRIPTION : 00041 // 00042 class NCPopupPkgDeps : public NCPopupDeps { 00043 00044 private: 00045 00046 NCPopupPkgDeps & operator=( const NCPopupPkgDeps & ); 00047 NCPopupPkgDeps ( const NCPopupPkgDeps & ); 00048 00049 // method to solve the dependencies 00050 bool solveInstall( PkgDep::ResultList & goodList, PkgDep::ErrorResultList & badList ); 00051 00052 string getLabelRequire(); 00053 string getLabelRequBy1(); 00054 string getLabelRequBy2(); 00055 string getLabelConflict(); 00056 string getLabelContinueRequ(); 00057 00058 string getHeadline(); 00059 00060 protected: 00061 00062 void setDepsTableType(); 00063 00064 public: 00065 00066 NCPopupPkgDeps( const wpos at, PackageSelector * pkger ); 00067 virtual ~NCPopupPkgDeps(); 00068 00069 }; 00070 00072 00073 00074 #endif // NCPopupPkgDeps_h