From: Carl N Baldwin Date: Tue, 18 Oct 2005 02:26:34 +0000 (-0600) Subject: Accessor in the FileData class X-Git-Tag: release-0.4~104 X-Git-Url: http://git.pippins.net/embedvideo/.git/%22%22.%24thumbnail.%22/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/static/gitweb.css?a=commitdiff_plain;h=bf82b991ea8c198b5963c7bc4ca91177f8321ca9;p=backups%2F.git Accessor in the FileData class --- diff --git a/filedata.hpp b/filedata.hpp index 629f933..8c2951b 100644 --- a/filedata.hpp +++ b/filedata.hpp @@ -17,9 +17,23 @@ class FileData { unsigned long long = 0 ); - char getFileType() const { return filetype; } + char getFileType() const { return filetype; } + const std::string &getPermissions() const { return permissions; } + const std::string &getUserName() const { return username; } + const std::string &getGroupName() const { return groupname; } + unsigned long getFileSize() const { return filesize; } + unsigned long long getModifiedDate() const { return modified_date; } + const std::string &getFileName() const { return filename; } + unsigned long long getLastBackupDate() const { return last_backup_date; } - const std::string &getFileName() const { return filename; } + void setFileType( char arg ) { filetype = arg; } + void setPermissions( const std::string &arg ) { permissions = arg; } + void setUserName( const std::string &arg ) { username = arg; } + void setGroupName( const std::string &arg ) { groupname = arg; } + void setFileSize( unsigned long arg ) { filesize = arg; } + void setModifiedDate( unsigned long long arg ) { modified_date = arg; } + void setFileName( const std::string &arg ) { filename = arg; } + void setLastBackupDate( unsigned long long arg ) { last_backup_date = arg; } private: FileData();