00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef PALUDIS_GUARD_PALUDIS_HANDLED_INFORMATION_HH
00021 #define PALUDIS_GUARD_PALUDIS_HANDLED_INFORMATION_HH 1
00022
00023 #include <paludis/handled_information-fwd.hh>
00024 #include <paludis/util/simple_visitor.hh>
00025 #include <paludis/util/attributes.hh>
00026 #include <paludis/util/private_implementation_pattern.hh>
00027 #include <paludis/util/type_list.hh>
00028 #include <paludis/dep_spec-fwd.hh>
00029 #include <paludis/package_id-fwd.hh>
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 namespace paludis
00043 {
00044
00045
00046
00047
00048
00049
00050
00051 class PALUDIS_VISIBLE DepListEntryHandled :
00052 public virtual DeclareAbstractAcceptMethods<DepListEntryHandled, MakeTypeList<
00053 DepListEntryHandledSuccess,
00054 DepListEntryHandledFetchSuccess,
00055 DepListEntryHandledFetchFailed,
00056 DepListEntryHandledSkippedUnsatisfied,
00057 DepListEntryHandledSkippedDependent,
00058 DepListEntryHandledFailed,
00059 DepListEntryUnhandled,
00060 DepListEntryNoHandlingRequired>::Type>
00061 {
00062 public:
00063 virtual ~DepListEntryHandled() = 0;
00064 };
00065
00066
00067
00068
00069
00070
00071
00072
00073 class PALUDIS_VISIBLE DepListEntryUnhandled :
00074 public DepListEntryHandled,
00075 public ImplementAcceptMethods<DepListEntryHandled, DepListEntryUnhandled>
00076 {
00077 };
00078
00079
00080
00081
00082
00083
00084
00085
00086 class PALUDIS_VISIBLE DepListEntryNoHandlingRequired :
00087 public DepListEntryHandled,
00088 public ImplementAcceptMethods<DepListEntryHandled, DepListEntryNoHandlingRequired>
00089 {
00090 };
00091
00092
00093
00094
00095
00096
00097
00098
00099 class PALUDIS_VISIBLE DepListEntryHandledSuccess :
00100 public DepListEntryHandled,
00101 public ImplementAcceptMethods<DepListEntryHandled, DepListEntryHandledSuccess>
00102 {
00103 };
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113 class PALUDIS_VISIBLE DepListEntryHandledFetchSuccess :
00114 public DepListEntryHandled,
00115 public ImplementAcceptMethods<DepListEntryHandled, DepListEntryHandledFetchSuccess>
00116 {
00117 };
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127 class PALUDIS_VISIBLE DepListEntryHandledSkippedUnsatisfied :
00128 public DepListEntryHandled,
00129 public ImplementAcceptMethods<DepListEntryHandled, DepListEntryHandledSkippedUnsatisfied>,
00130 private PrivateImplementationPattern<DepListEntryHandledSkippedUnsatisfied>
00131 {
00132 public:
00133
00134
00135
00136 DepListEntryHandledSkippedUnsatisfied(const PackageDepSpec &);
00137 ~DepListEntryHandledSkippedUnsatisfied();
00138
00139
00140
00141
00142
00143
00144
00145 const PackageDepSpec spec() const PALUDIS_ATTRIBUTE((warn_unused_result));
00146 };
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156 class PALUDIS_VISIBLE DepListEntryHandledSkippedDependent :
00157 public DepListEntryHandled,
00158 public ImplementAcceptMethods<DepListEntryHandled, DepListEntryHandledSkippedDependent>,
00159 private PrivateImplementationPattern<DepListEntryHandledSkippedDependent>
00160 {
00161 public:
00162
00163
00164
00165 DepListEntryHandledSkippedDependent(const std::tr1::shared_ptr<const PackageID> &);
00166 ~DepListEntryHandledSkippedDependent();
00167
00168
00169
00170
00171
00172
00173
00174 const std::tr1::shared_ptr<const PackageID> id() const PALUDIS_ATTRIBUTE((warn_unused_result));
00175 };
00176
00177
00178
00179
00180
00181
00182
00183
00184 class PALUDIS_VISIBLE DepListEntryHandledFailed :
00185 public DepListEntryHandled,
00186 public ImplementAcceptMethods<DepListEntryHandled, DepListEntryHandledFailed>
00187 {
00188 };
00189
00190
00191
00192
00193
00194
00195
00196
00197 class PALUDIS_VISIBLE DepListEntryHandledFetchFailed :
00198 public DepListEntryHandled,
00199 public ImplementAcceptMethods<DepListEntryHandled, DepListEntryHandledFetchFailed>
00200 {
00201 };
00202 }
00203
00204 #endif