From 39b489d5220a7c7a886f654af25afe4f416de424 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Wed, 3 Jun 2009 15:00:52 +0200 Subject: [PATCH] ResourcesItem: added isLocalResource() method Added isLocalResource() method which returns whether it belongs to a local ResourcesProvider or not. Signed-off-by: Tobias Doerffel --- include/resources_item.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/resources_item.h b/include/resources_item.h index b34c67ac5..c92a82f81 100644 --- a/include/resources_item.h +++ b/include/resources_item.h @@ -134,6 +134,11 @@ public: return baseDir() == BaseDataDir; } + bool isLocalResource( void ) const + { + return m_provider->isLocal(); + } + const QString & tags( void ) const { return m_tags;