aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rfsv.h
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2001-02-02 04:49:20 +0000
committerFritz Elfert <felfert@to.com>2001-02-02 04:49:20 +0000
commit9fac7af37460c6a73a7debac1ba82b094a8f066c (patch)
treec6ef3e0ebd088c62348f140289f82482d82db1cf /lib/rfsv.h
parent4da48658c8f1dfbf5960bb1768dc6d154c528734 (diff)
downloadplptools-9fac7af37460c6a73a7debac1ba82b094a8f066c.tar.gz
plptools-9fac7af37460c6a73a7debac1ba82b094a8f066c.tar.bz2
plptools-9fac7af37460c6a73a7debac1ba82b094a8f066c.zip
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.
Diffstat (limited to 'lib/rfsv.h')
-rw-r--r--lib/rfsv.h15
1 files changed, 10 insertions, 5 deletions
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 <deque>
+#include <string>
#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<errs> fgeteattr(const char * const name, long &attr, long &size, PsiTime &time) =0;
+ virtual Enum<errs> 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.