Subversion Repositories spk

Rev

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

Rev 8 Rev 13
Line 97... Line 97...
97
 
97
 
98
 
98
 
99
class SPKEXPORT CBaseFile 
99
class SPKEXPORT CBaseFile 
100
{
100
{
101
public:
101
public:
102
	static CyString ConvertGameToString(int game);
102
	static Utils::String ConvertGameToString(int game);
103
	static int GetGameFromString(CyString game);
103
	static int GetGameFromString(const Utils::String &game);
104
	static CyString ErrorString(int error, CyString errorStr = NullString);
104
	static CyString ErrorString(int error, CyString errorStr = NullString);
105
 
105
 
106
	CBaseFile();
106
	CBaseFile();
107
	virtual ~CBaseFile();
107
	virtual ~CBaseFile();
108
 
108
 
Line 156... Line 156...
156
	int GetMaxWebMirrors() { return m_lMirrors.Count(); }
156
	int GetMaxWebMirrors() { return m_lMirrors.Count(); }
157
	CyString GetWebMirror(int i) { if ( i >= 0 && i < m_lMirrors.Count() ) return m_lMirrors.StringAt(i); return NullString; }
157
	CyString GetWebMirror(int i) { if ( i >= 0 && i < m_lMirrors.Count() ) return m_lMirrors.StringAt(i); return NullString; }
158
	void ClearWebMirrors() { m_lMirrors.Clear(); }
158
	void ClearWebMirrors() { m_lMirrors.Clear(); }
159
 
159
 
160
	CLinkList<C_File> *GetFileList(int type);
160
	CLinkList<C_File> *GetFileList(int type);
161
	C_File *GetFirstFile(int type);
161
	C_File *GetFirstFile(int type) const;
162
	C_File *GetNextFile(C_File *prev);
162
	C_File *GetNextFile(C_File *prev) const;
163
	C_File *GetPrevFile(C_File *next);
163
	C_File *GetPrevFile(C_File *next) const;
164
 
164
 
165
	int GetRecommended() { return m_iRecommended; }
165
	int GetRecommended() { return m_iRecommended; }
166
	int GetEaseOfUse() { return m_iEaseOfUse; }
166
	int GetEaseOfUse() { return m_iEaseOfUse; }
167
	int GetGameChanging() { return m_iGameChanging; }
167
	int GetGameChanging() { return m_iGameChanging; }
168
 
168
 
Line 204... Line 204...
204
	void SetRecommended ( int i ) { m_iRecommended = i; m_bChanged = true; }
204
	void SetRecommended ( int i ) { m_iRecommended = i; m_bChanged = true; }
205
	void SetGameChanging ( int i ) { m_iGameChanging = i; m_bChanged = true; }
205
	void SetGameChanging ( int i ) { m_iGameChanging = i; m_bChanged = true; }
206
	void SetEaseOfUse ( int i ) { m_iEaseOfUse = i; m_bChanged = true; }
206
	void SetEaseOfUse ( int i ) { m_iEaseOfUse = i; m_bChanged = true; }
207
 
207
 
208
	bool IsMod();
208
	bool IsMod();
209
	bool IsFakePatch();
209
	bool IsFakePatch() const;
210
 
210
 
211
	// error handling
211
	// error handling
212
	void ClearError () { m_sLastError = ""; m_iLastError = SPKERR_NONE; }
212
	void ClearError () { m_sLastError = ""; m_iLastError = SPKERR_NONE; }
213
	int GetLastError () { return m_iLastError; }
213
	int GetLastError () { return m_iLastError; }
214
	CyString GetLastErrorString() { return m_sLastError; }
214
	CyString GetLastErrorString() { return m_sLastError; }