diff options
author | Michele Calgaro <[email protected]> | 2022-05-07 00:27:45 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2022-05-07 00:27:45 +0900 |
commit | efc48a5ae9afcdb9356dbb0e3f6fbba2a69ca106 (patch) | |
tree | 86661f2b1309bc1e001eae27910596c0af31958d /src/app.cpp | |
parent | 872756fd1a214b32d8dceb49661a3ce9b464d04d (diff) | |
download | tdeio-appinfo-efc48a5ae9afcdb9356dbb0e3f6fbba2a69ca106.tar.gz tdeio-appinfo-efc48a5ae9afcdb9356dbb0e3f6fbba2a69ca106.zip |
Fixed functionality.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/app.cpp')
-rw-r--r-- | src/app.cpp | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/src/app.cpp b/src/app.cpp index da5135e..6580df8 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -129,17 +129,15 @@ void tdeio_appProtocol::listDir(const KURL &url) return; } - kdDebug() << "tdeio_appProtocol::listDir: " << "url is " << url << ": doing a listDir" << endl; - kdDebug() << "tdeio_appProtocol::listDir: " << "name is " << name << ": doing a listDir" << endl; - kdDebug() << "tdeio_appProtocol::listDir: " << "path is " << path << ": doing a listDir" << endl; - // We've been given something like app:/appname + kdDebug() << "tdeio_appProtocol::listDir: " << "name is " << name << endl; + kdDebug() << "tdeio_appProtocol::listDir: " << "path is " << path << endl; + // We've been given something like appinfo:/name listAppContents(name); } void tdeio_appProtocol::listRoot() { - TDEIO::UDSEntry entry; TDEIO::UDSEntryList system_entries; bool ok = m_impl.listRoot(system_entries); if (!ok) @@ -150,21 +148,15 @@ void tdeio_appProtocol::listRoot() totalSize(system_entries.count() + 1); + TDEIO::UDSEntry entry; m_impl.createTopLevelEntry(entry); listEntry(entry, false); - for(const UDSEntry &sysEntry : system_entries) - { - listEntry(sysEntry, false); - } - - entry.clear(); - listEntry(entry, true); + listEntries(system_entries); finished(); } void tdeio_appProtocol::listAppContents(const TQString &name) { - TDEIO::UDSEntry entry; TDEIO::UDSEntryList app_entries; bool ok = m_impl.listAppContents(name, app_entries); if (!ok) @@ -175,14 +167,9 @@ void tdeio_appProtocol::listAppContents(const TQString &name) totalSize(app_entries.count() + 1); + TDEIO::UDSEntry entry; m_impl.createTopLevelEntry(entry); listEntry(entry, false); - for(const UDSEntry &appEntry : app_entries) - { - listEntry(appEntry, false); - } - - entry.clear(); - listEntry(entry, true); + listEntries(app_entries); finished(); } |