+ /** \name Base product and registration.
+ *
+ * Static methods herein allow to retrieve the values without explicitly
+ * initializing the \ref Target. They take a targets root directory as
+ * argument. If an empty \ref Pathname is passed, an already existing
+ * Targets root is used, otherwise \c "/" is assumed.
+ */
+ //@{
+ /** This is \c register.target attribute of the installed base product.
+ * Used for registration and \ref Service refresh.
+ */
+ std::string targetDistribution() const;
+ /** \overload */
+ static std::string targetDistribution( const Pathname & root_r );
+
+ /** This is \c register.release attribute of the installed base product.
+ * Used for registration.
+ */
+ std::string targetDistributionRelease() const;
+ /** \overload */
+ static std::string targetDistributionRelease( const Pathname & root_r );
+
+ /** This is \c register.flavor attribute of the installed base product.
+ * Used for registration.
+ * \note don't mistake this for \ref distributionFlavor
+ */
+ std::string targetDistributionFlavor() const;
+ /** \overload */
+ static std::string targetDistributionFlavor( const Pathname & root_r );
+
+ struct DistributionLabel { std::string shortName; std::string summary; };
+ /** This is \c shortName and \c summary attribute of the installed base product.
+ * Used e.g. for the bootloader menu.
+ */
+ DistributionLabel distributionLabel() const;
+ /** \overload */
+ static DistributionLabel distributionLabel( const Pathname & root_r );
+
+ /** This is \c version attribute of the installed base product.
+ * For example http://download.opensue.org/update/11.0
+ * The 11.0 corresponds to the base product version.
+ */
+ std::string distributionVersion() const;
+ /** \overload */
+ static std::string distributionVersion( const Pathname & root_r );
+
+ /**
+ * This is \c flavor attribute of the installed base product
+ * but does not require the target to be loaded as it remembers
+ * the last used one. It can be empty is the target has never
+ * been loaded, as the value is not present in the system
+ * but computer from a package provides
+ * \note don't mistake this for \ref targetDistributionFlavor
+ */
+ std::string distributionFlavor() const;
+ /** \overload */
+ static std::string distributionFlavor( const Pathname & root_r );
+
+ /**
+ * anonymous unique id
+ *
+ * This id is generated once and stays in the
+ * saved in the target.
+ * It is unique and is used only for statistics.
+ *
+ */
+ std::string anonymousUniqueId() const;
+ /** \overload */
+ static std::string anonymousUniqueId( const Pathname & root_r );
+ //@}
+
+ public:
+ /** Ctor. If \c doRebuild_r is \c true, an already existing
+ * database is rebuilt (rpm --rebuilddb ).
+ */