From 9fac7af37460c6a73a7debac1ba82b094a8f066c Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Fri, 2 Feb 2001 04:49:20 +0000 Subject: Replaced lot of ugly char * by string. Fixed bug in plpftp's filename-completion, which was introduced yesterday. Added a class PlpUID for dealing with application-UIDs Added UID->mimetype mapping in kioslave. --- lib/rfsv.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'lib/rfsv.h') diff --git a/lib/rfsv.h b/lib/rfsv.h index 79fbc68..fff8322 100644 --- a/lib/rfsv.h +++ b/lib/rfsv.h @@ -2,6 +2,7 @@ #define _rfsv_h_ #include +#include #include "Enum.h" #include "plpdirent.h" #include "bufferstore.h" @@ -291,13 +292,11 @@ class rfsv { * Retrieves attributes, size and modification time of a file on the Psion. * * @param name The name of the file. - * @param attr The file's attributes are returned here. - * @param size The file's size in bytes is returned here. - * @param time The file's modification time is returned here. + * @param e @ref PlpDirent object, filled with the information on return. * * @returns A Psion error code (One of enum @ref #errs ). */ - virtual Enum fgeteattr(const char * const name, long &attr, long &size, PsiTime &time) =0; + virtual Enum fgeteattr(const char * const name, PlpDirent &e) =0; /** * @param name @@ -541,7 +540,7 @@ class rfsv { * @returns Pointer to static textual representation of file attributes. * */ - const char * const attr2String(const long attr); + string attr2String(const long attr); /** * Converts an open-mode (A combination of the PSI_O_ constants.) @@ -553,6 +552,12 @@ class rfsv { * @ref fopen , @ref fcreatefile and @freplacefile. */ virtual long opMode(const long mode) = 0; + + /** + * Utility method, converts '/' to '\'. + */ + static string convertSlash(const string &name); + protected: /** * Retrieves the PLP protocol name. Mainly internal use. -- cgit v1.2.3