Subversion Repositories spk

Rev

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

Rev 206 Rev 208
Line 32... Line 32...
32
	std::map<unsigned int, Utils::WString> *_pAutoExport;
32
	std::map<unsigned int, Utils::WString> *_pAutoExport;
33
	Utils::CList<SNames> *_lNames;
33
	Utils::CList<SNames> *_lNames;
34
 
34
 
35
	CInstallText *_pInstallText;
35
	CInstallText *_pInstallText;
36
	CInstallText *_pUninstallText;
36
	CInstallText *_pUninstallText;
-
 
37
	Utils::WStringList _lMirrors;
37
 
38
 
38
	int _iPluginType;
39
	int _iPluginType;
39
 
40
 
40
	// package stats
41
	// package stats
41
	int _iRecommended;
42
	int _iRecommended;
Line 87... Line 88...
87
	void setRecommended		( int i )					 { _changed(); _iRecommended = i; }
88
	void setRecommended		( int i )					 { _changed(); _iRecommended = i; }
88
	void setGameChanging	( int i )					 { _changed(); _iGameChanging = i; }
89
	void setGameChanging	( int i )					 { _changed(); _iGameChanging = i; }
89
	void setEaseOfUse		( int i )					 { _changed(); _iEaseOfUse = i; }
90
	void setEaseOfUse		( int i )					 { _changed(); _iEaseOfUse = i; }
90
	void setPluginType		( int i )					 { _changed(); _iPluginType = i; }
91
	void setPluginType		( int i )					 { _changed(); _iPluginType = i; }
91
	void adjustChanged		( bool bChanged )			 { _bChanged = bChanged; }
92
	void adjustChanged		( bool bChanged )			 { _bChanged = bChanged; }
92
	
93
 
93
	void addAutoExtract(unsigned int game, const Utils::WString &dir);
94
	void addAutoExtract(unsigned int game, const Utils::WString &dir);
94
	void addAutoExport(unsigned int game, const Utils::WString &file);
95
	void addAutoExport(unsigned int game, const Utils::WString &file);
95
	void clearAutoExtract();
96
	void clearAutoExtract();
96
	void clearAutoExport();
97
	void clearAutoExport();
97
 
98
 
Line 103... Line 104...
103
	Utils::WString installText(int iLang, bool bBefore, bool bIncludeDefault = true) const;
104
	Utils::WString installText(int iLang, bool bBefore, bool bIncludeDefault = true) const;
104
	Utils::WString uninstallText(int iLang, bool bBefore, bool bIncludeDefault = true) const;
105
	Utils::WString uninstallText(int iLang, bool bBefore, bool bIncludeDefault = true) const;
105
	void addInstallText(int iLang, bool bBefore, const Utils::WString &sText);
106
	void addInstallText(int iLang, bool bBefore, const Utils::WString &sText);
106
	void addUninstallText(int iLang, bool bBefore, const Utils::WString &sText);
107
	void addUninstallText(int iLang, bool bBefore, const Utils::WString &sText);
107
	void removeInstallText(int iLang, bool bInstall);
108
	void removeInstallText(int iLang, bool bInstall);
-
 
109
 
-
 
110
	// Web Mirrors
-
 
111
	bool anyWebMirrors() { return !_lMirrors.empty(); }
-
 
112
	const Utils::WStringList& webMirrors() const { return _lMirrors; }
-
 
113
	int getMaxWebMirrors() { return _lMirrors.size(); }
-
 
114
	Utils::WString getWebMirror(size_t i) { if (i >= 0 && i < _lMirrors.size()) return _lMirrors.get(i)->str; return Utils::WString::Null(); }
-
 
115
	void clearWebMirrors() { _lMirrors.clear(); }
-
 
116
	void addWebMirror(const Utils::WString& str);
-
 
117
	void removeWebMirror(const Utils::WString& str);
108
 
118
 
109
protected:
119
protected:
110
	virtual void _changed() { _bChanged = true; }
120
	virtual void _changed() { _bChanged = true; }
111
	virtual void _setDefaults();
121
	virtual void _setDefaults();
112
	void _setRatings(int iEase, int iChanging, int iRec);
122
	void _setRatings(int iEase, int iChanging, int iRec);