From 3f8d978f68b43adfdde70910c93c1a855fa19108 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 5 Jan 2007 12:44:35 +0000 Subject: [PATCH] allow only the Document to construct a BookmarkManager svn path=/trunk/playground/graphics/okular/; revision=620153 --- core/bookmarkmanager.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/bookmarkmanager.h b/core/bookmarkmanager.h index f670e092a..aa929c0d5 100644 --- a/core/bookmarkmanager.h +++ b/core/bookmarkmanager.h @@ -29,7 +29,6 @@ class OKULAR_EXPORT BookmarkManager : public QObject, public KBookmarkOwner Q_OBJECT public: - explicit BookmarkManager( Document * document ); virtual ~BookmarkManager(); virtual QString currentUrl() const; @@ -77,6 +76,9 @@ class OKULAR_EXPORT BookmarkManager : public QObject, public KBookmarkOwner // private interface used by the Document friend class Document; + + explicit BookmarkManager( Document * document ); + void setUrl( const KUrl& url ); bool setPageBookmark( int page ); bool isPageBookmarked( int page ) const;