aboutsummaryrefslogtreecommitdiffstats
path: root/kde2/kioslave/kio_plp.cpp
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2001-03-25 00:07:23 +0000
committerFritz Elfert <felfert@to.com>2001-03-25 00:07:23 +0000
commit2df7dc38f93b9016a606aad3bf07e3dff2ab27e2 (patch)
tree241a41c00cb3d008f04900fa4b5f38317e0903cb /kde2/kioslave/kio_plp.cpp
parent0f1ffc4064c073854fa51949cb8e9c44cf8885ee (diff)
downloadplptools-2df7dc38f93b9016a606aad3bf07e3dff2ab27e2.tar.gz
plptools-2df7dc38f93b9016a606aad3bf07e3dff2ab27e2.tar.bz2
plptools-2df7dc38f93b9016a606aad3bf07e3dff2ab27e2.zip
Implemented auto-backup
Diffstat (limited to 'kde2/kioslave/kio_plp.cpp')
-rw-r--r--kde2/kioslave/kio_plp.cpp45
1 files changed, 4 insertions, 41 deletions
diff --git a/kde2/kioslave/kio_plp.cpp b/kde2/kioslave/kio_plp.cpp
index ef9fe54..bfa6d70 100644
--- a/kde2/kioslave/kio_plp.cpp
+++ b/kde2/kioslave/kio_plp.cpp
@@ -278,7 +278,7 @@ openConnection() {
for (int i = 0; i < 26; i++) {
if ((devbits & 1) != 0) {
PlpDrive drive;
- if (plpRfsv->devinfo(i, drive) == rfsv::E_PSI_GEN_NONE) {
+ if (plpRfsv->devinfo(i + 'A', drive) == rfsv::E_PSI_GEN_NONE) {
string vname = drive.getName();
QString name;
@@ -337,8 +337,8 @@ listDir(const KURL& _url) {
return;
if (isRoot(path)) {
- kdDebug(PLP_DEBUGAREA) << "listing root" << endl;
- totalSize(drives.count()/* + 5*/);
+ kdDebug(PLP_DEBUGAREA) << "listing root " << drives.count() << endl;
+ totalSize(drives.count());
//in this case we don't need to do a real listdir
UDSEntry entry;
UDSAtom atom;
@@ -351,43 +351,6 @@ listDir(const KURL& _url) {
createVirtualDirEntry(entry, drivechars[*it] == 'Z', PLP_FTYPE_DRIVE);
listEntry(entry, false);
}
-#if 0
- entry.clear();
- atom.m_uds = KIO::UDS_NAME;
- atom.m_str = i18n("Owner");
- entry.append(atom);
- createVirtualDirEntry(entry, false, PLP_FTYPE_OWNER);
- listEntry(entry, false);
-
- entry.clear();
- atom.m_uds = KIO::UDS_NAME;
- atom.m_str = i18n("Machine");
- entry.append(atom);
- createVirtualDirEntry(entry, false, PLP_FTYPE_MACHINE);
- listEntry(entry, false);
-
- entry.clear();
- atom.m_uds = KIO::UDS_NAME;
- atom.m_str = i18n("Settings");
- entry.append(atom);
- createVirtualDirEntry(entry, false, PLP_FTYPE_SETUP);
- listEntry(entry, false);
-
- entry.clear();
- atom.m_uds = KIO::UDS_NAME;
- atom.m_str = i18n("Backup");
- entry.append(atom);
- createVirtualDirEntry(entry, false, PLP_FTYPE_BACKUP);
- listEntry(entry, false);
-
- entry.clear();
- atom.m_uds = KIO::UDS_NAME;
- atom.m_str = i18n("Restore");
- entry.append(atom);
- createVirtualDirEntry(entry, false, PLP_FTYPE_RESTORE);
- listEntry(entry, false);
-#endif
-
listEntry(entry, true);
finished();
return;
@@ -1088,7 +1051,7 @@ special(const QByteArray &a) {
return;
}
param = param.mid(1);
- drv = drivechars[param] - 'A';
+ drv = drivechars[param];
res = plpRfsv->devinfo(drv, drive);
if (res != rfsv::E_PSI_GEN_NONE) {
error(ERR_COULD_NOT_STAT, param);