Subversion Repositories spk

Rev

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

Rev 130 Rev 131
Line 217... Line 217...
217
	void setFileType(FileType t) { m_iFileType = t; }
217
	void setFileType(FileType t) { m_iFileType = t; }
218
	void SetFilename(CyString filename);
218
	void SetFilename(CyString filename);
219
	void setFilename(const Utils::String &filename);
219
	void setFilename(const Utils::String &filename);
220
	void SetName(CyString name) { _sName = name.ToString(); }
220
	void SetName(CyString name) { _sName = name.ToString(); }
221
	void setName(const Utils::String &name) { _sName = name; }
221
	void setName(const Utils::String &name) { _sName = name; }
222
	void SetDir ( CyString dir ) { m_sDir = dir; }
222
	void SetDir(CyString dir) { _sDir = dir.ToString(); }
-
 
223
	void setDir(const Utils::String &dir) { _sDir = dir; }
223
	void SetCreationTime ( time_t time ) { m_tTime = time; }
224
	void SetCreationTime ( time_t time ) { m_tTime = time; }
224
	void SetFileSize ( long size ) { m_lSize = size; }
225
	void SetFileSize ( long size ) { m_lSize = size; }
225
	void SetDataSize ( long size ) { m_lDataSize = size; }
226
	void SetDataSize ( long size ) { m_lDataSize = size; }
226
	void SetUncompressedDataSize ( long size ) { m_lUncomprDataSize = size; }
227
	void SetUncompressedDataSize ( long size ) { m_lUncomprDataSize = size; }
227
	void SetDataCompression ( int c ) { m_iDataCompression = c; }
228
	void SetDataCompression ( int c ) { m_iDataCompression = c; }
Line 245... Line 246...
245
	Utils::String fullFilename() { return _sFullDir + "/" + _sName; }
246
	Utils::String fullFilename() { return _sFullDir + "/" + _sName; }
246
	long GetSize () { return m_lSize; }
247
	long GetSize () { return m_lSize; }
247
	time_t GetCreationTime () { return m_tTime; }
248
	time_t GetCreationTime () { return m_tTime; }
248
	CyString GetName() { return _sName; }
249
	CyString GetName() { return _sName; }
249
	const Utils::String &name() { return _sName; }
250
	const Utils::String &name() { return _sName; }
250
	CyString GetDir() { return m_sDir; }
251
	CyString GetDir() { return _sDir; }
-
 
252
	const Utils::String &dir() { return _sDir; }
251
	CyString GetDataSizeString ();
253
	CyString GetDataSizeString ();
252
	CyString GetUncompressedSizeString ();
254
	CyString GetUncompressedSizeString ();
253
	CyString GetDirectory(CBaseFile *spkfile);
255
	CyString GetDirectory(CBaseFile *spkfile);
254
	Utils::String getDirectory(CBaseFile *spkfile) const;
256
	Utils::String getDirectory(CBaseFile *spkfile) const;
255
	int GetVersion () { return m_iVersion; }
257
	int GetVersion () { return m_iVersion; }
Line 257... Line 259...
257
	CyString GetFileTypeString () { return ::GetFileTypeString ( m_iFileType ); }
259
	CyString GetFileTypeString () { return ::GetFileTypeString ( m_iFileType ); }
258
	CyString GetCreationTimeString ();
260
	CyString GetCreationTimeString ();
259
	CyString GetTempFile () { return m_sTmpFile; }
261
	CyString GetTempFile () { return m_sTmpFile; }
260
	CyString GetFullDir() { return _sFullDir; }
262
	CyString GetFullDir() { return _sFullDir; }
261
	const Utils::String fullDir() const { return _sFullDir; }
263
	const Utils::String fullDir() const { return _sFullDir; }
262
	CyString GetBaseName ();
264
	CyString GetBaseName();
-
 
265
	Utils::String baseName() const;
263
	CyString GetOriginalName() { return CyString(_sOriginalName); }
266
	CyString GetOriginalName() { return CyString(_sOriginalName); }
264
	const Utils::String &originalName() { return _sOriginalName; }
267
	const Utils::String &originalName() { return _sOriginalName; }
265
	CyString GetInMod() { return m_sInMod; }
268
	CyString GetInMod() { return m_sInMod; }
266
	CyString GetSignature() { if ( !m_bUpdatedSignature ) UpdateSignature(); return m_sSignature; }
269
	CyString GetSignature() { if ( !m_bUpdatedSignature ) UpdateSignature(); return m_sSignature; }
267
	void UpdateSignature();
270
	void UpdateSignature();
Line 377... Line 380...
377
	// private functions
380
	// private functions
378
	void Reset();
381
	void Reset();
379
	Utils::String _getFullFileToDir(const Utils::String &dir, bool includedir, CBaseFile *file) const;
382
	Utils::String _getFullFileToDir(const Utils::String &dir, bool includedir, CBaseFile *file) const;
380
 
383
 
381
	Utils::String  _sName; // just the filename
384
	Utils::String  _sName; // just the filename
382
	CyString  m_sDir;  // the extra dir (only for extras)
385
	Utils::String  _sDir;  // the extra dir (only for extras)
383
	CyString  m_sInMod; // in a mod files
386
	CyString  m_sInMod; // in a mod files
384
	CyString  m_sSignature;
387
	CyString  m_sSignature;
385
 
388
 
386
	// file pointer varibles
389
	// file pointer varibles
387
	Utils::String  _sFullDir; // the full dir path of the file (This is used for file pointers when not loaded data in file)
390
	Utils::String  _sFullDir; // the full dir path of the file (This is used for file pointers when not loaded data in file)