aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rfsv.h
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2001-02-06 01:01:46 +0000
committerFritz Elfert <felfert@to.com>2001-02-06 01:01:46 +0000
commita9fe8f28a4a9aaf1d9b84dbc6907849ace87f66e (patch)
tree0dd290cdf04cfd17a4ab4d0eb86bcb48137a02cb /lib/rfsv.h
parenta8787d39b2bf1851cdea64a5e0eccc2aff7f15de (diff)
downloadplptools-a9fe8f28a4a9aaf1d9b84dbc6907849ace87f66e.tar.gz
plptools-a9fe8f28a4a9aaf1d9b84dbc6907849ace87f66e.tar.bz2
plptools-a9fe8f28a4a9aaf1d9b84dbc6907849ace87f66e.zip
- Added KDE2 PropsDialog Plugin (incomplete)
- Fixed some KDE related autoconf stuff - Added PlpDrive class for returning results from rfsv:devinfo - Added auto-watch in ppsocket and finally got rid of the nasty SIGPIPE bug. Now it's no more necessary to ignore SIGPIPE in applications. - Made constructors of rfsv16, rfsv32, rpcs16 and rpcs32 private to enforce use of the factories. - Removed error output in the factories and replaced that by error codes which can be retrieved and evaluated by an application.
Diffstat (limited to 'lib/rfsv.h')
-rw-r--r--lib/rfsv.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/lib/rfsv.h b/lib/rfsv.h
index 0cfe7b2..9125f01 100644
--- a/lib/rfsv.h
+++ b/lib/rfsv.h
@@ -10,6 +10,7 @@
typedef deque<class PlpDirent> PlpDir;
class ppsocket;
+class PlpDrive;
const int RFSV_SENDLEN = 2000;
@@ -19,8 +20,20 @@ const int RFSV_SENDLEN = 2000;
*/
typedef int (*cpCallback_t)(void *, u_int32_t);
+class rfsv16;
+class rfsv32;
+
+/**
+ * A helper class for storing
+ * intermediate internal information in rfsv16 and
+ * rfsv32 .
+ * @internal
+ */
class rfsvDirhandle {
- public:
+ friend rfsv16;
+ friend rfsv32;
+
+ private:
u_int32_t h;
bufferStore b;
};
@@ -330,15 +343,12 @@ class rfsv {
*
* @param dev An integer, representing the drive to get details from.
* (0 represents A:, 1 is B: and so on ...)
- * @param free On return, the free space in bytes is returned here.
- * @param total On return, the total capacity in bytes is returned here.
- * @param attr On return, the attributes of the drive are returned here.
- * @param uniqueid On return, the unique Id of the drive is returned here.
- * @param name On return, the volume name returned here.
+ * @param drive A @ref PlpDrive object which is filled with the drive's
+ * information upon return.
*
* @returns A Psion error code (One of enum @ref #errs ).
*/
- virtual Enum<errs> devinfo(const u_int32_t dev, u_int32_t &free, u_int32_t &total, u_int32_t &attr, u_int32_t &uniqueid, string &name) = 0;
+ virtual Enum<errs> devinfo(const u_int32_t dev, PlpDrive &drive) = 0;
/**
* Reads from a file on the Psion.