┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places/placesitem.h
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <[email protected]>2017-11-16 12:32:49 -0300
committerRenato Araujo Oliveira Filho <[email protected]>2017-12-14 09:40:34 -0300
commitda6f8fe0862585287153f0d90e19eab0b34bfbef (patch)
tree75fcb68ef19e54d7c5f6209636a30e1968ef9b87 /src/panels/places/placesitem.h
parent8cea647ce11dbc8bb009f8a16adaaa94be3dcfb1 (diff)
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
Diffstat (limited to 'src/panels/places/placesitem.h')
-rw-r--r--src/panels/places/placesitem.h17
1 files changed, 1 insertions, 16 deletions
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;