Subversion Repositories spk

Rev

Rev 271 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 271 Rev 318
Line 43... Line 43...
43
	Utils::WStringList &getGlobals() { return _lGlobals; }
43
	Utils::WStringList &getGlobals() { return _lGlobals; }
44
	Utils::WStringList &getFakePatchOrder() { return _lFakePatchOrder; }
44
	Utils::WStringList &getFakePatchOrder() { return _lFakePatchOrder; }
45
	Utils::WString getCurrentDirectory() const;
45
	Utils::WString getCurrentDirectory() const;
46
	static const Utils::WString &tempDirectory() { return m_sTempDir; }
46
	static const Utils::WString &tempDirectory() { return m_sTempDir; }
47
	const Utils::WString &myDocuments() { return m_sMyDoc; }
47
	const Utils::WString &myDocuments() { return m_sMyDoc; }
48
	CGameExe *GetGameExe() { return &m_gameExe; }
48
	CGameExe* GetGameExe() { return &m_gameExe; }
-
 
49
	const CGameExe* gameExe() const { return &m_gameExe; }
49
	CLinkList<CBaseFile> *GetInstallPackageList() { return &m_lInstallList; }
50
	CLinkList<CBaseFile> *GetInstallPackageList() { return &m_lInstallList; }
50
 
51
 
51
	// installing/uninstalling
52
	// installing/uninstalling
52
	bool		installPackage(CBaseFile *package, Utils::WStringList *errors, CProgressInfo *progress = NULL, bool disabled = false);
53
	bool		installPackage(CBaseFile *package, Utils::WStringList *errors, CProgressInfo *progress = NULL, bool disabled = false);
53
	CBaseFile		*openPackage(const Utils::WString &file, int *error, CProgressInfo *progress = NULL, int readtype = SPKREAD_ALL, int flags = READFLAG_NONE);
54
	CBaseFile		*openPackage(const Utils::WString &file, int *error, CProgressInfo *progress = NULL, int readtype = SPKREAD_ALL, int flags = READFLAG_NONE) const;
54
	CMultiSpkFile	*openMultiPackage(const Utils::WString &file, int *error, CProgressInfo *progress = NULL);
55
	CMultiSpkFile	*openMultiPackage(const Utils::WString &file, int *error, CProgressInfo *progress = NULL);
55
	bool			 openMultiPackage(const Utils::WString &file, CLinkList<CBaseFile> *packageList, int *error, CProgressInfo *progress = NULL );
56
	bool			 openMultiPackage(const Utils::WString &file, CLinkList<CBaseFile> *packageList, int *error, CProgressInfo *progress = NULL );
56
	int			CheckInstallPackage(CBaseFile *package, int check = IC_ALL);
57
	int			CheckInstallPackage(CBaseFile *package, int check = IC_ALL);
57
	bool		removeFile(C_File *file, Utils::WStringList *errors = NULL);
58
	bool		removeFile(C_File *file, Utils::WStringList *errors = NULL);
58
	void		PrepareUninstallPackage(CBaseFile *package);
59
	void		PrepareUninstallPackage(CBaseFile *package);
59
	bool		uninstallPreparedPackages(Utils::WStringList *errors, CProgressInfo *progress, CLinkList<CBaseFile> *uninstalledPackages = NULL, CLinkList<CBaseFile> *disabledPackages = NULL);
60
	bool		uninstallPreparedPackages(Utils::WStringList *errors, CProgressInfo *progress, CLinkList<CBaseFile> *uninstalledPackages = NULL, CLinkList<CBaseFile> *disabledPackages = NULL);
60
	void		ConvertOldPackage(CBaseFile *p);
61
	void		ConvertOldPackage(CBaseFile *p) const;
61
	void		purgeUninstallScripts(CBaseFile *package, Utils::WStringList *errors);
62
	void		purgeUninstallScripts(CBaseFile *package, Utils::WStringList *errors);
62
	int 		PrepareInstallPackage(CBaseFile *package, bool disabled = false, bool force = false, int check = IC_ALL);
63
	int 		PrepareInstallPackage(CBaseFile *package, bool disabled = false, bool force = false, int check = IC_ALL);
63
	int			installPreparedPackages(Utils::WStringList *errors, CProgressInfo *progress, CLinkList<CBaseFile> *errored, CLinkList<CBaseFile> *installedList = NULL);
64
	int			installPreparedPackages(Utils::WStringList *errors, CProgressInfo *progress, CLinkList<CBaseFile> *errored, CLinkList<CBaseFile> *installedList = NULL);
64
	void		RemovePreparedInstall(CBaseFile *package);
65
	void		RemovePreparedInstall(CBaseFile *package);
65
	int			GetNumPackagesInQueue() { return m_lInstallList.size(); }
66
	int			GetNumPackagesInQueue() { return m_lInstallList.size(); }
66
	int			checkOpenPackage(const Utils::WString &file, int* error);
67
	int			checkOpenPackage(const Utils::WString &file, int* error) const;
67
	bool		findAllNeededDependacies(CBaseFile *p, const CLinkList<CBaseFile> &packages, CLinkList<CBaseFile> *foundPackages, bool onlyEnabled = false, bool includePrepared = false) const;
68
	bool		findAllNeededDependacies(CBaseFile *p, const CLinkList<CBaseFile> &packages, CLinkList<CBaseFile> *foundPackages, bool onlyEnabled = false, bool includePrepared = false) const;
68
	int			getMissingDependacies(CBaseFile *p, Utils::WStringList *list, bool onlyEnabled = false, bool includePrepared = false);
69
	int			getMissingDependacies(CBaseFile *p, Utils::WStringList *list, bool onlyEnabled = false, bool includePrepared = false);
69
	size_t		getDownloadableDependacies(CBaseFile* p, std::vector<const SAvailablePackage*>& list, bool onlyEnabled = false, bool includePrepared = false) const;
70
	size_t		getDownloadableDependacies(CBaseFile* p, std::vector<const SAvailablePackage*>& list, bool onlyEnabled = false, bool includePrepared = false) const;
70
	bool		checkInstalledDependacy(const Utils::WString &name, const Utils::WString &author, const Utils::WString &version, bool onlyEnabled = false, bool includePerpered = false) const;
71
	bool		checkInstalledDependacy(const Utils::WString &name, const Utils::WString &author, const Utils::WString &version, bool onlyEnabled = false, bool includePerpered = false) const;
71
	bool		CheckEnabledDependacy(CBaseFile *p);
72
	bool		CheckEnabledDependacy(CBaseFile *p);