- wxFileData( const wxString &name, const wxString &fname, fileType type );
- wxString GetName() const;
- wxString GetFullName() const;
- wxString GetHint() const;
+ wxFileData( const wxString &filePath, const wxString &fileName,
+ fileType type, int image_id );
+
+ // get the name of the file, dir, drive
+ wxString GetFileName() const { return m_fileName; }
+ // get the full path + name of the file, dir, path
+ wxString GetFilePath() const { return m_filePath; }
+ long GetSize() const { return m_size; }
+ // Get the type of file, either file extension or <DIR>, <LINK>, <DRIVE>
+ wxString GetType() const;
+ // get the last modification time
+ wxDateTime GetTime() const { return m_dateTime; }
+ wxString GetModificationTime() const;
+ // in UNIX get rwx for file, in MSW get attributes ARHS
+ wxString GetPermissions() const { return m_permissions; }
+ int GetImageId() const { return m_image; }
+
+ bool IsDir() const { return (m_type & is_dir ) != 0; }
+ bool IsLink() const { return (m_type & is_link ) != 0; }
+ bool IsExe() const { return (m_type & is_exe ) != 0; }
+ bool IsDrive() const { return (m_type & is_drive) != 0; }
+
+ int GetFileType() const { return m_type; }