aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/virtuals/virtuals_repository.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-06-27 19:21:52 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-06-27 19:21:52 +0000
commit7e0e5a87926b77173ab057059394c463deac7b69 (patch)
treeff9cc1da484e72be33f9a8945cc13f61115a42e8 /paludis/repositories/virtuals/virtuals_repository.hh
parent1e5290d4a82c9c83314a6c81aaad7324e12b5321 (diff)
downloadpaludis-7e0e5a87926b77173ab057059394c463deac7b69.tar.gz
paludis-7e0e5a87926b77173ab057059394c463deac7b69.tar.xz
r3606@snowflake: ciaranm | 2007-06-27 20:17:54 +0100
Switch to Package IDs. Known to be broken: CRAN, Gems, QA / qualudis, gtkpaludis, contrarius, Ruby, Python, paludis --query / inquisitio output
Diffstat (limited to 'paludis/repositories/virtuals/virtuals_repository.hh')
-rw-r--r--paludis/repositories/virtuals/virtuals_repository.hh51
1 files changed, 25 insertions, 26 deletions
diff --git a/paludis/repositories/virtuals/virtuals_repository.hh b/paludis/repositories/virtuals/virtuals_repository.hh
index 786dc6608..9e9a6bca5 100644
--- a/paludis/repositories/virtuals/virtuals_repository.hh
+++ b/paludis/repositories/virtuals/virtuals_repository.hh
@@ -21,6 +21,7 @@
#define PALUDIS_GUARD_PALUDIS_REPOSITORIES_VIRTUALS_VIRTUALS_REPOSITORY_HH 1
#include <paludis/repository.hh>
+#include <paludis/util/tr1_memory.hh>
namespace paludis
{
@@ -32,41 +33,43 @@ namespace paludis
class PALUDIS_VISIBLE VirtualsRepository :
public Repository,
public RepositoryInstallableInterface,
- public RepositoryMaskInterface,
- private PrivateImplementationPattern<VirtualsRepository>
+ public RepositoryMakeVirtualsInterface,
+ private PrivateImplementationPattern<VirtualsRepository>,
+ public tr1::enable_shared_from_this<VirtualsRepository>
{
private:
void need_names() const;
- void need_entries() const;
+ void need_ids() const;
protected:
- virtual bool do_query_repository_masks(const QualifiedPackageName &,
- const VersionSpec &) const;
+ /* RepositoryInstallableInterface */
- virtual bool do_query_profile_masks(const QualifiedPackageName &,
- const VersionSpec &) const;
+ virtual void do_install(const tr1::shared_ptr<const PackageID> &, const InstallOptions &) const;
- virtual tr1::shared_ptr<const VersionMetadata> do_version_metadata(
- const QualifiedPackageName &,
- const VersionSpec &) const;
+ /* Repository */
- virtual bool do_has_version(const QualifiedPackageName &,
- const VersionSpec &) const;
-
- virtual tr1::shared_ptr<const VersionSpecCollection> do_version_specs(
- const QualifiedPackageName &) const;
+ virtual tr1::shared_ptr<const PackageIDSequence> do_package_ids(
+ const QualifiedPackageName &) const
+ PALUDIS_ATTRIBUTE((warn_unused_result));
virtual tr1::shared_ptr<const QualifiedPackageNameCollection> do_package_names(
- const CategoryNamePart &) const;
+ const CategoryNamePart &) const
+ PALUDIS_ATTRIBUTE((warn_unused_result));
+
+ virtual tr1::shared_ptr<const CategoryNamePartCollection> do_category_names() const
+ PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual tr1::shared_ptr<const CategoryNamePartCollection> do_category_names() const;
+ virtual bool do_has_package_named(const QualifiedPackageName &) const
+ PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual bool do_has_package_named(const QualifiedPackageName &) const;
+ virtual bool do_has_category_named(const CategoryNamePart &) const
+ PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual bool do_has_category_named(const CategoryNamePart &) const;
+ /* RepositoryMakeVirtualsInterface */
- virtual void do_install(const QualifiedPackageName &, const VersionSpec &,
- const InstallOptions &) const;
+ virtual const tr1::shared_ptr<const PackageID> make_virtual_package_id(
+ const QualifiedPackageName & virtual_name, const tr1::shared_ptr<const PackageID> & provider) const
+ PALUDIS_ATTRIBUTE((warn_unused_result));
public:
///\name Basic operations
@@ -87,11 +90,7 @@ namespace paludis
virtual void invalidate();
- virtual bool can_be_favourite_repository() const
- {
- return false;
- }
-
+ virtual bool can_be_favourite_repository() const;
};
}