}
}
-// this is just a workaround since the whole code above does not work
+// FIXME: this is just a workaround since the whole code above does not work
%extend Resolvable {
const char* kindToS()
{
- class Package : public ResObject
- {
+class Package : public ResObject
+{
public:
typedef detail::PackageImplIf Impl;
typedef TraitsType::constPtrType constPtr;
public:
- /**
- * Checksum the source says this package should have
- */
- CheckSum checksum() const;
+
/** Get the package change log */
Changelog changelog() const;
/** */
//DiskUsage diskusage() const;
/** location in source */
- Pathname location() const;
+ OnMediaLocation location() const;
protected:
Package( const NVRAD & nvrad_r );
/** Dtor */
virtual ~Package();
- };
\ No newline at end of file
+};
+
-
- class Repository : private base::SafeBool<Repository>
- {
- public:
+
+class Repository : private base::SafeBool<Repository>
+{
+ public:
Repository();
static const Repository noRepository;
public:
const RepoInfo info() const;
const std::list<packagedelta::PatchRpm> & patchRpms() const;
const std::list<packagedelta::DeltaRpm> & deltaRpms() const;
- };
+};
-%template(ResObject_Ptr) intrusive_ptr<ResObject>;
+// %template(ResObject_Ptr) intrusive_ptr<ResObject>;
class ResObject : public Resolvable
- {
+{
public:
typedef detail::ResObjectImplIf Impl;
typedef ResObject Self;
Text licenseToConfirm() const;
Vendor vendor() const;
ByteCount size() const;
- ByteCount archivesize() const;
+ ByteCount downloadSize() const;
Repository repository() const;
unsigned mediaNr() const;
bool installOnly() const;
const NVRAD & nvrad_r );
virtual ~ResObject();
virtual std::ostream & dumpOn( std::ostream & str ) const;
- };
+};
- class Resolvable
- {
+class Resolvable
+{
public:
typedef Resolvable Self;
typedef ResTraits<Self> TraitsType;
typedef TraitsType::KindType Kind;
typedef TraitsType::PtrType Ptr;
typedef TraitsType::constPtrType constPtr;
-
+
const Kind & kind() const;
const std::string & name() const;
const Edition & edition() const;
//const Dependencies & deps() const;
//void injectProvides( const Capability & cap_r );
//void injectRequires( const Capability & cap_r );
-
+
protected:
Resolvable( const Kind & kind_r,
const NVRAD & nvrad_r );
virtual ~Resolvable();
virtual std::ostream & dumpOn( std::ostream & str ) const;
- };
+};
typedef intrusive_ptr<Target> Target_Ptr;
class Target
- {
+{
public:
-
+
typedef std::list<PoolItem_Ref> PoolItemList;
public:
/** All resolvables provided by the target. */
const ResStore & resolvables();
-
- /**
+
+ /**
* reload the target in future calls if
* needed.
* note the loading can actually be delayed, but
- * the next call to resolvables must reflect the
+ * the next call to resolvables must reflect the
* status of the system.
*/
void reset();
-
+
/**
* load resolvables of certain kind in the internal store
* and return a iterator
ResObject::constPtr whoOwnsFile (const std::string & path_str) const;
- /** JUST FOR TESTSUITE */
- /** Sort according to prereqs and media numbers
- * \todo provide it as standalone algorithm
- */
- void getResolvablesToInsDel ( const ResPool pool_r,
- PoolItemList & dellist_r,
- PoolItemList & instlist_r,
- PoolItemList & srclist_r ) const;
-
#ifndef STORAGE_DISABLED
/** enables the storage target */
bool isStorageEnabled() const;
/** return the last modification date of the target */
Date timestamp() const;
- };
-
-%template(Target_Ptr) intrusive_ptr<Target>;
\ No newline at end of file
+};
+
+%template(Target_Ptr) intrusive_ptr<Target>;