From 660b61a7f8b9fb885226507d7f6716ab2dcedbb8 Mon Sep 17 00:00:00 2001 From: alwin Date: Wed, 10 Nov 2004 21:18:37 +0000 Subject: implemented icon cache so it will not scan every time when changing the doctab categorie ToDo: implement a cache flush --- (limited to 'core/launcher/launcherview.h') diff --git a/core/launcher/launcherview.h b/core/launcher/launcherview.h index 6d94539..05073ab 100644 --- a/core/launcher/launcherview.h +++ b/core/launcher/launcherview.h @@ -56,6 +56,8 @@ public: bool removeLink(const QString& linkfile); void addItem(AppLnk* app, bool resort=TRUE); + void changeItem(const AppLnk&old,AppLnk*nlink); + void removeAllItems(); void setSortEnabled(bool); void setUpdatesEnabled(bool); @@ -176,7 +178,8 @@ public: bool inKeyEvent() const { return ike; } void addItem(AppLnk* app, bool resort=TRUE); - bool removeLink(const QString& linkfile); + bool removeLink(const QString& linkfile,bool removeCache = true); + void changeItem(const AppLnk&old,AppLnk*nlink); QStringList mimeTypes() const; QStringList categories() const; @@ -206,6 +209,8 @@ public: int compare(const AppLnk* a, const AppLnk* b); void requestEyePix(const LauncherItem*which); + static QMap* sm_EyeCache; + protected: virtual void timerEvent( QTimerEvent *te ); void styleChange( QStyle &old ); -- cgit v0.9.0.2