~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to libkonq/konqbookmarkmanager.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-05-27 12:09:48 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20080527120948-dottsyd5rcwhzd36
Tags: 4:4.0.80-1ubuntu1
* Merge with Debian
 - remove 97_fix_target_link_libraries.diff
 - Add replaces/conflicts on -kde4 packages

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef KONQBOOKMARKMANAGER_H
2
 
#define KONQBOOKMARKMANAGER_H
3
 
 
4
 
#include <kbookmarkmanager.h>
5
 
#include <kstandarddirs.h>
6
 
#include <libkonq_export.h>
7
 
 
8
 
class LIBKONQ_EXPORT KonqBookmarkManager
9
 
{
10
 
public:
11
 
    static KBookmarkManager * self() {
12
 
        if ( !s_bookmarkManager )
13
 
        {
14
 
            QString bookmarksFile = locateLocal("data", QString::fromLatin1("konqueror/bookmarks.xml"));
15
 
            s_bookmarkManager = KBookmarkManager::managerForFile( bookmarksFile );
16
 
        }
17
 
        return s_bookmarkManager;
18
 
    }
19
 
 
20
 
private:
21
 
    static KBookmarkManager *s_bookmarkManager;
22
 
};
23
 
 
24
 
#endif