• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libkonq
 

libkonq

  • libkonq
konq_historycomm.h
1 /* This file is part of the KDE project
2  Copyright (C) 2000 Carsten Pfeiffer <pfeiffer@kde.org>
3 
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; see the file COPYING. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KONQ_HISTORYCOMM_H
21 #define KONQ_HISTORYCOMM_H
22 
23 #include <tqdatetime.h>
24 #include <tqstringlist.h>
25 
26 #include <dcopobject.h>
27 #include <kurl.h>
28 
29 class KonqHistoryEntry
30 {
31 public:
32  //Should URLs be marshaled as strings (for DCOP, V2 history format)?
33  static bool marshalURLAsStrings;
34  KonqHistoryEntry()
35  : numberOfTimesVisited(1) {}
36 
37  KURL url;
38  TQString typedURL;
39  TQString title;
40  TQ_UINT32 numberOfTimesVisited;
41  TQDateTime firstVisited;
42  TQDateTime lastVisited;
43 };
44 
45 
46 // TQDataStream operators (read and write a KonqHistoryEntry
47 // from/into a QDataStream
48 TQDataStream& operator<< (TQDataStream& s, const KonqHistoryEntry& e);
49 TQDataStream& operator>> (TQDataStream& s, KonqHistoryEntry& e);
50 
52 
53 
59 class KonqHistoryComm : public DCOPObject
60 {
61  K_DCOP
62 
63 protected:
64  KonqHistoryComm( TQCString objId ) : DCOPObject( objId ) {}
65 
66 k_dcop:
67  virtual ASYNC notifyHistoryEntry( KonqHistoryEntry e, TQCString saveId) = 0;
68  virtual ASYNC notifyMaxCount( TQ_UINT32 count, TQCString saveId ) = 0;
69  virtual ASYNC notifyMaxAge( TQ_UINT32 days, TQCString saveId ) = 0;
70  virtual ASYNC notifyClear( TQCString saveId ) = 0;
71  virtual ASYNC notifyRemove( KURL url, TQCString saveId ) = 0;
72  virtual ASYNC notifyRemove( KURL::List url, TQCString saveId ) = 0;
73  virtual TQStringList allURLs() const = 0;
74 
75 };
76 
77 #endif // KONQ_HISTORYCOMM_H

libkonq

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

libkonq

Skip menu "libkonq"
  • kate
  • libkonq
  • twin
  •   lib
Generated for libkonq by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.