From a50050ce49c6611ac51761bb6bc0aab0752bc845 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Wed, 18 Jun 2014 17:40:38 +0100 Subject: [PATCH] Add isDeletable attribute to ViewPage --- src/libtomahawk/ViewPage.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libtomahawk/ViewPage.h b/src/libtomahawk/ViewPage.h index 4f407b44d..3c7609c53 100644 --- a/src/libtomahawk/ViewPage.h +++ b/src/libtomahawk/ViewPage.h @@ -72,6 +72,14 @@ public: virtual bool jumpToCurrentTrack() = 0; virtual bool isTemporaryPage() const { return false; } + /** + * This page is actually a constant page that will be shown on every + * restart of Tomahawk until the user selects it to be removed. + * + * The main distinction between this and isTemporaryPage() is that the + * page will not be listed in the search history. + */ + virtual bool isDeletable() const { return false; } virtual bool isBeingPlayed() const { return false; } virtual QList updaters() const { return QList(); }