summaryrefslogtreecommitdiff
path: root/swig/Repository.i
diff options
context:
space:
mode:
Diffstat (limited to 'swig/Repository.i')
-rw-r--r--swig/Repository.i59
1 files changed, 53 insertions, 6 deletions
diff --git a/swig/Repository.i b/swig/Repository.i
index 58b7bba..27e8d88 100644
--- a/swig/Repository.i
+++ b/swig/Repository.i
@@ -1,15 +1,62 @@
-class Repository : private base::SafeBool<Repository>
-{
-public:
+ class Repository : private base::SafeBool<Repository>
+ {
+ public:
+ typedef repo::RepositoryImpl Impl;
+ typedef repo::RepositoryImpl_Ptr Impl_Ptr;
+
+ public:
+
+ /**
+ * \short Default ctor: noRepository.
+ * \see RepoManager::createFromCache.
+ */
Repository();
+
+ /** \short Factory ctor taking a RepositoryImpl.
+ * This is quite low level. You usually want to use RepoManager to
+ * manage the repositories.
+ * \see RepoManager
+ */
+ explicit
+ Repository( const Impl_Ptr & impl_r );
+
+ /** \short Factory ctor taking a RepositoryImpl.
+ */
+ explicit
+ Repository( const RepoInfo & info_r );
+
+ /**
+ * A dummy Repository (Id \c 0) providing nothing, doing nothing.
+ */
static const Repository noRepository;
+ /** Validate Repository in a boolean context.
+ * \c FALSE iff == noRepository.
+ */
+ //using base::SafeBool<Repository>::operator bool_type;
+
+ public:
typedef unsigned long NumericId;
+
+ /** Runtime unique numeric Repository Id. */
NumericId numericId() const;
- const ResStore & resolvables();
- const RepoInfo info() const;
+
+ /**
+ * \short Repository info used to create this repository
+ */
+ const RepoInfo & info() const;
+
+ /**
+ * \short Patch RPMs the repository provides
+ */
const std::list<packagedelta::PatchRpm> & patchRpms() const;
+
+ /**
+ * \short Delta RPMs the repository provides
+ */
const std::list<packagedelta::DeltaRpm> & deltaRpms() const;
-};
+ };
+
+ \ No newline at end of file