]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/versioncontrol/updateitemstatesthread.h
SVN_SILENT made messages (.desktop file)
[dolphin.git] / src / views / versioncontrol / updateitemstatesthread.h
index a28169755a1b5bdc765f937b353895fec43b56a4..5c6c6a20838703c80f3c81c9b9b875312b44c20a 100644 (file)
@@ -47,25 +47,10 @@ public:
      * @param itemStates List of items, where the states get updated.
      */
     UpdateItemStatesThread(KVersionControlPlugin* plugin,
-                           const QList<VersionControlObserver::ItemState>& itemStates);
+                           const QMap<QString, QVector<VersionControlObserver::ItemState> >& itemStates);
     virtual ~UpdateItemStatesThread();
 
-    /**
-     * Whenever the plugin is accessed by the thread creator, lockPlugin() must
-     * be invoked. True is returned, if the plugin could be locked within 300
-     * milliseconds.
-     */
-    bool lockPlugin();
-
-    /**
-     * Must be invoked if lockPlugin() returned true and plugin has been accessed
-     * by the thread creator.
-     */
-    void unlockPlugin();
-
-    QList<VersionControlObserver::ItemState> itemStates() const;
-
-    bool retrievedItems() const;
+    QMap<QString, QVector<VersionControlObserver::ItemState> > itemStates() const;
 
 protected:
     virtual void run();
@@ -74,8 +59,7 @@ private:
     QMutex* m_globalPluginMutex; // Protects the m_plugin globally
     KVersionControlPlugin* m_plugin;
 
-    bool m_retrievedItems;
-    QList<VersionControlObserver::ItemState> m_itemStates;
+    QMap<QString, QVector<VersionControlObserver::ItemState> > m_itemStates;
 };
 
 #endif // UPDATEITEMSTATESTHREAD_H