┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places/placesitemmodel.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-05-14 14:57:08 +0200
committerPeter Penz <[email protected]>2012-05-14 14:58:34 +0200
commit77ad7c431ae8629c6c0539378c3d864a87bcd4c8 (patch)
tree02a89a1a416f310eacd3d45dc602848bd2113d21 /src/panels/places/placesitemmodel.h
parent6e9713c558ad07b0baa2a79ae69328fda7b61a15 (diff)
PlacesItemModel: Automatically save bookmarks
Prevent that a manual call to save changed bookmarks is necessary.
Diffstat (limited to 'src/panels/places/placesitemmodel.h')
-rw-r--r--src/panels/places/placesitemmodel.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/panels/places/placesitemmodel.h b/src/panels/places/placesitemmodel.h
index e9604ad22..bfc845e41 100644
--- a/src/panels/places/placesitemmodel.h
+++ b/src/panels/places/placesitemmodel.h
@@ -34,6 +34,7 @@
class KBookmarkManager;
class PlacesItem;
class QAction;
+class QTimer;
// #define PLACESITEMMODEL_DEBUG
@@ -79,8 +80,6 @@ public:
void requestEject(int index);
void requestTeardown(int index);
- void save();
-
signals:
void errorMessage(const QString& message);
@@ -94,9 +93,10 @@ private slots:
void slotDeviceRemoved(const QString& udi);
void slotStorageTeardownDone(Solid::ErrorType error, const QVariant& errorData);
void removeHiddenItem();
+ void saveBookmarks();
private:
- void loadBookmarks();
+ void loadBookmarks();
/**
* Helper method for loadBookmarks(): Adds the items
@@ -159,6 +159,8 @@ private:
// asynchronously as in the scope of onItemChanged()
// removing an item is not allowed.
int m_hiddenItemToRemove;
+
+ QTimer* m_saveBookmarksTimer;
};
#endif