diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-05-08 00:26:59 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-05-08 00:26:59 +0900 |
| commit | aacfa4988921bed952fc600dccd7e6ceccb8780c (patch) | |
| tree | 19e8ec7f87031e128cbfa10ba29954366c6c8c81 /src/appimpl.h | |
| parent | 8e55bfc59469faf50b41d90ac716b89f5fc1c684 (diff) | |
| download | tdeio-appinfo-aacfa4988921bed952fc600dccd7e6ceccb8780c.tar.gz tdeio-appinfo-aacfa4988921bed952fc600dccd7e6ceccb8780c.zip | |
Improve user experience when requesting the list of available
applications with 'appinfo:/' (makes Konqueror less irresponsive).
Some code renaming for better clarity.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/appimpl.h')
| -rw-r--r-- | src/appimpl.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/appimpl.h b/src/appimpl.h index 554b5ff..f5dadcd 100644 --- a/src/appimpl.h +++ b/src/appimpl.h @@ -33,6 +33,7 @@ namespace TDEIO } class KURL; +class TDEIO_AppInfo; class AppImpl : public TQObject @@ -40,12 +41,12 @@ class AppImpl : public TQObject Q_OBJECT public: - AppImpl(); + AppImpl(TDEIO_AppInfo *slave); void createTopLevelEntry(TDEIO::UDSEntry &entry) const; bool statByName(const TQString &filename, TDEIO::UDSEntry &entry); - bool listRoot(TQValueList<TDEIO::UDSEntry> &list); + void listRoot(); bool listAppContents(const TQString &name, TQValueList<TDEIO::UDSEntry> &list); bool parseURL(const KURL &url, TQString &name, TQString &path) const; @@ -82,6 +83,7 @@ private: void createEntry(TDEIO::UDSEntry& entry, const TQString &file); bool m_lastListingEmpty; + TDEIO_AppInfo *m_slave; /// Last error code stored in class to simplify API. /// Note that this means almost no method can be const. |
