00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: PMTypes.h 00014 00015 Author: Michael Andres <ma@suse.de> 00016 Maintainer: Michael Andres <ma@suse.de> 00017 00018 Purpose: 00019 00020 /-*/ 00021 #ifndef PMTypes_h 00022 #define PMTypes_h 00023 00024 #include <set> 00025 #include <map> 00026 #include <list> 00027 #include <vector> 00028 00029 #include <y2pm/PMError.h> 00030 #include <y2pm/PkgArch.h> 00031 #include <y2pm/PMLangCode.h> 00032 00033 00034 #include <y2pm/InstSrcPtr.h> 00035 00036 class Y2PM;; 00037 class InstTarget; 00038 class InstSrcManager; 00039 class PMPackageManager; 00040 class PMYouPatchManager; 00041 class PMSelectionManager; 00042 class PMLanguageManager; 00043 00044 namespace PM { 00045 00047 // Y2PM 00049 00050 typedef std::list<PkgArch> ArchSet; 00051 00053 // InstSrc / InstSrcManager 00055 00056 typedef unsigned NumericISrcID; 00057 00058 typedef constInstSrcPtr ISrcId; 00059 typedef std::list<ISrcId> ISrcIdList; 00060 00061 typedef std::vector<NumericISrcID> InstOrder; 00062 00063 struct SrcState 00064 { 00065 NumericISrcID _id; 00066 bool _autoenable; 00067 bool _autorefresh; 00068 00069 SrcState(); // impl. in InstSrcManager.cc 00070 explicit 00071 SrcState( ISrcId ); // impl. in InstSrcManager.cc 00072 }; 00073 typedef std::vector<SrcState> SrcStateVector; 00074 00075 00077 // Selectable 00079 00080 enum CandidateOrder { 00081 CO_DEFAULT, CO_AVS, CO_ASV 00082 }; 00083 00085 // 00087 00088 } // namespace PM 00089 00090 #endif // PMTypes_h
1.4.4