diff options
author | Daniel Brahneborg <basic@chello.se> | 2002-03-12 10:31:02 +0000 |
---|---|---|
committer | Daniel Brahneborg <basic@chello.se> | 2002-03-12 10:31:02 +0000 |
commit | 0dd84267e740fd10f46103a5affee01611fcd224 (patch) | |
tree | 2afabc69a76b42691a3f98ec87dc5c4f7f736ae7 /sisinstall/sisinstaller.h | |
parent | b105b61017274eec171269b0d0f9cc617f01d423 (diff) | |
download | plptools-0dd84267e740fd10f46103a5affee01611fcd224.tar.gz plptools-0dd84267e740fd10f46103a5affee01611fcd224.tar.bz2 plptools-0dd84267e740fd10f46103a5affee01611fcd224.zip |
Load all residual sis files before installing, to make sure we don't
have another version installed already.
Diffstat (limited to 'sisinstall/sisinstaller.h')
-rw-r--r-- | sisinstall/sisinstaller.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sisinstall/sisinstaller.h b/sisinstall/sisinstaller.h index bca7117..ff9845e 100644 --- a/sisinstall/sisinstaller.h +++ b/sisinstall/sisinstaller.h @@ -7,6 +7,7 @@ class Psion; class SISFile; +class SISFileLink; class SISFileRecord; /** @@ -17,6 +18,8 @@ class SISInstaller { public: + SISInstaller(); + SisRC run(SISFile* file, uint8_t* buf, off_t len); SisRC run(SISFile* file, uint8_t* buf, off_t len, SISFile* parent); @@ -26,6 +29,11 @@ public: */ void selectDrive(); + void setInstalled(SISFileLink* installed) + { + m_installed = installed; + } + /** * Set the Psion manager. */ @@ -43,6 +51,8 @@ private: SISFile* m_file; + SISFileLink* m_installed; + enum { FILE_OK, FILE_SKIP, @@ -63,6 +73,10 @@ private: int installFile(SISFileRecord* fileRecord); + SisRC loadInstalled(); + + void loadPsionSis(const char* name); + void uninstall(SISFile* sisFile); }; |