From da6f8fe0862585287153f0d90e19eab0b34bfbef Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Thu, 16 Nov 2017 12:32:49 -0300 Subject: Use Kio::KPlacesModel as source model for PlacesItemModel Summary: Use Kio::KPlacesModel as source model for PlacesItemModel avoiding duplicated code. Depends on D8862 Depends on D8332 Depends on D8434 Depends on D8348 Depends on D8630 Test Plan: Unit test created Reviewers: elvisangelaccio, emmanuelp, mlaurent, mwolff Reviewed By: elvisangelaccio, mlaurent, mwolff Subscribers: mwolff, mlaurent, anthonyfieroni, nicolasfella, ngraham, #dolphin Differential Revision: https://phabricator.kde.org/D8855 --- src/panels/places/placesitem.h | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/panels/places/placesitem.h') diff --git a/src/panels/places/placesitem.h b/src/panels/places/placesitem.h index b7cd8e79f..d32c616db 100644 --- a/src/panels/places/placesitem.h +++ b/src/panels/places/placesitem.h @@ -40,14 +40,6 @@ class PlacesItem : public KStandardItem { public: - enum GroupType - { - PlacesType, - SearchForType, - RecentlySavedType, - DevicesType - }; - explicit PlacesItem(const KBookmark& bookmark, PlacesItem* parent = nullptr); ~PlacesItem() override; @@ -68,16 +60,9 @@ public: void setBookmark(const KBookmark& bookmark); KBookmark bookmark() const; - GroupType groupType() const; - bool storageSetupNeeded() const; - static KBookmark createBookmark(KBookmarkManager* manager, - const QString& text, - const QUrl& url, - const QString& iconName); - static KBookmark createDeviceBookmark(KBookmarkManager* manager, - const QString& udi); + bool isSearchOrTimelineUrl() const; PlacesItemSignalHandler* signalHandler() const; -- cgit v1.3.1