• 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_historyentry.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright 2009 David Faure <faure@kde.org>
3 
4  This library is free software; you can redistribute it and/or modify
5  it under the terms of the GNU Library General Public License as published
6  by the Free Software Foundation; either version 2 of the License or
7  ( at your option ) version 3 or, at the discretion of KDE e.V.
8  ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KONQ_HISTORYENTRY_H
22 #define KONQ_HISTORYENTRY_H
23 
24 #include <QtCore/QDateTime>
25 #include <QtCore/QMetaType>
26 #include <kurl.h>
27 #include "libkonq_export.h"
28 
29 class LIBKONQ_EXPORT KonqHistoryEntry
30 {
31 public:
32  KonqHistoryEntry();
33  ~KonqHistoryEntry();
34 
35  KUrl url;
36  QString typedUrl;
37  QString title;
38  quint32 numberOfTimesVisited;
39  QDateTime firstVisited;
40  QDateTime lastVisited;
41 
42  KonqHistoryEntry(const KonqHistoryEntry& e);
43 
44  // Necessary for QList (on Windows)
45  bool operator==(const KonqHistoryEntry& entry) const;
46 
47  enum Flags { NoFlags = 0, MarshalUrlAsStrings = 1 };
48  void load(QDataStream& s, Flags flags);
49  void save(QDataStream& s, Flags flags) const;
50 
51 private:
52  class Private;
53  Private* d;
54 };
55 
56 #ifdef MAKE_KONQ_LIB
57 KDE_DUMMY_QHASH_FUNCTION(KonqHistoryEntry)
58 #endif
59 
60 Q_DECLARE_METATYPE(KonqHistoryEntry)
61 
62 class LIBKONQ_EXPORT KonqHistoryList : public QList<KonqHistoryEntry>
63 {
64 public:
69  iterator findEntry( const KUrl& url );
70 
75  const_iterator constFindEntry( const KUrl& url ) const;
76 
80  void removeEntry( const KUrl& url );
81 };
82 
83 
84 #endif /* KONQ_HISTORYENTRY_H */
85 
KonqHistoryEntry::firstVisited
QDateTime firstVisited
Definition: konq_historyentry.h:39
KonqHistoryEntry::numberOfTimesVisited
quint32 numberOfTimesVisited
Definition: konq_historyentry.h:38
QDataStream
KonqHistoryEntry::url
KUrl url
Definition: konq_historyentry.h:35
KonqHistoryEntry::title
QString title
Definition: konq_historyentry.h:37
QString
QList
libkonq_export.h
KonqHistoryList
Definition: konq_historyentry.h:62
LIBKONQ_EXPORT
#define LIBKONQ_EXPORT
Definition: libkonq_export.h:36
KonqHistoryEntry::Flags
Flags
Definition: konq_historyentry.h:47
KonqHistoryEntry::typedUrl
QString typedUrl
Definition: konq_historyentry.h:36
KonqHistoryEntry::lastVisited
QDateTime lastVisited
Definition: konq_historyentry.h:40
QDateTime
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