• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-baseapps API Reference
  • KDE Home
  • Contact Us
 

libkonq

  • sources
  • kde-4.14
  • kde-baseapps
  • lib
  • konq
konq_historyprovider.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright 2000,2001 Carsten Pfeiffer <pfeiffer@kde.org>
3  Copyright 2007-2009 David Faure <faure@kde.org>
4 
5  This library is free software; you can redistribute it and/or modify
6  it under the terms of the GNU Library General Public License as published
7  by the Free Software Foundation; either version 2 of the License or
8  ( at your option ) version 3 or, at the discretion of KDE e.V.
9  ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef KONQ_HISTORYPROVIDER_H
23 #define KONQ_HISTORYPROVIDER_H
24 
25 #include <kparts/historyprovider.h>
26 #include <kurl.h>
27 #include "libkonq_export.h"
28 #include "konq_historyentry.h"
29 
30 class KonqHistoryEntry;
31 class KonqHistoryList;
32 class KonqHistoryProviderPrivate;
33 
40 class LIBKONQ_EXPORT KonqHistoryProvider : public KParts::HistoryProvider
41 {
42  Q_OBJECT
43 
44 public:
51  static KonqHistoryProvider *self() {
52  return static_cast<KonqHistoryProvider*>(KParts::HistoryProvider::self());
53  }
54 
55  explicit KonqHistoryProvider(QObject* parent = 0);
56  virtual ~KonqHistoryProvider();
57 
62  const KonqHistoryList& entries() const;
63 
67  int maxCount() const;
68 
72  int maxAge() const;
73 
81  void emitSetMaxCount(int count);
82 
92  void emitSetMaxAge(int days);
93 
100  void emitRemoveFromHistory(const KUrl& url);
101 
108  void emitRemoveListFromHistory(const KUrl::List& urls);
109 
115  void emitClear();
116 
120  bool loadHistory();
121 
122 Q_SIGNALS:
126  void entryAdded( const KonqHistoryEntry& entry );
127 
133  void entryRemoved( const KonqHistoryEntry& entry );
134 
135 protected: // only to be used by konqueror's KonqHistoryManager
136 
137  virtual void finishAddingEntry(const KonqHistoryEntry& entry, bool isSender);
138  virtual void removeEntry(KonqHistoryList::iterator it);
139 
146  KonqHistoryList::iterator findEntry(const KUrl& url);
147  KonqHistoryList::const_iterator constFindEntry(const KUrl& url) const;
148 
152  void emitAddToHistory(const KonqHistoryEntry& entry);
153 
154 private:
155  KonqHistoryProviderPrivate* const d;
156  friend class KonqHistoryProviderPrivate;
157 };
158 
159 #endif /* KONQ_HISTORYPROVIDER_H */
KonqHistoryProvider
This class maintains and manages a history of all URLs visited by Konqueror.
Definition: konq_historyprovider.h:40
QObject
libkonq_export.h
konq_historyentry.h
KonqHistoryList
Definition: konq_historyentry.h:62
LIBKONQ_EXPORT
#define LIBKONQ_EXPORT
Definition: libkonq_export.h:36
KonqHistoryEntry
Definition: konq_historyentry.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:07:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkonq

Skip menu "libkonq"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kde-baseapps API Reference

Skip menu "kde-baseapps API Reference"
  • Libraries
  •   libkonq

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal