Skip to content

Commit

Permalink
Merge pull request #17 from rdkcentral/development/Update-for-R2
Browse files Browse the repository at this point in the history
[REVERT] Revert the packager interface.
  • Loading branch information
MFransen69 authored Feb 4, 2021
2 parents c9b0017 + 043670a commit dd9b8d1
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions interfaces/IPackager.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/

#pragma once

#include "Module.h"

namespace WPEFramework {
Expand All @@ -43,7 +42,6 @@ namespace Exchange {
EXTRACTION_FAILED,
VERIFICATION_FAILED,
INSTALL_FAILED,

REMOVE_FAILED
};

Expand All @@ -66,51 +64,13 @@ namespace Exchange {
enum { ID = ID_PACKAGER_NOTIFICATION };
virtual void StateChange(IPackageInfo* package, IInstallationInfo* install) = 0;
virtual void RepositorySynchronize(uint32_t status) = 0;
virtual void IntallStep(state status, uint32_t task, string id, int32_t code) = 0;
};

struct EXTERNAL IPackageInfoEx : virtual public Core::IUnknown {
enum { ID = ID_PACKAGER_PACKAGEINFOEX };

virtual ~IPackageInfoEx(){};

virtual string Name() const = 0;
virtual string BundlePath() const = 0;
virtual string Version() const = 0;
virtual string PkgId() const = 0;
virtual string Installed() const = 0;
virtual uint64_t SizeInBytes() const = 0;
virtual string Type() const = 0;

struct IIterator : virtual public Core::IUnknown
{
enum { ID = ID_PACKAGER_PACKAGEINFOEX_ITERATOR };

virtual ~IIterator(){};

virtual uint32_t Count() const = 0;
virtual void Reset() = 0;
virtual bool IsValid() const = 0;
virtual bool Next() = 0;
virtual IPackageInfoEx* Current() const = 0;
};
};

virtual void Register(INotification* observer) = 0;
virtual void Unregister(const INotification* observer) = 0;
virtual uint32_t Configure(PluginHost::IShell* service) = 0;
virtual uint32_t Install(const string& name, const string& version, const string& arch) = 0;
virtual uint32_t SynchronizeRepository() = 0;

// DAC Installer
virtual uint32_t Install(const string& pkgId, const string& type, const string& url, const string& token, const string& listener) = 0;
virtual uint32_t Remove(const string& pkgId, const string& listener) = 0;
virtual uint32_t Cancel(const string& task, const string& listener) = 0;
virtual uint32_t IsInstalled(const string& pkgId) = 0;
virtual uint32_t GetInstallProgress(const string& task) = 0;
virtual IPackageInfoEx::IIterator* GetInstalled() = 0;
virtual IPackageInfoEx* GetPackageInfo(const string& pkgId) = 0;
virtual uint64_t GetAvailableSpace() = 0;
};
}
}

0 comments on commit dd9b8d1

Please sign in to comment.