konq_historycomm.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KONQ_HISTORYCOMM_H
00021 #define KONQ_HISTORYCOMM_H
00022
00023 #include <qdatetime.h>
00024 #include <qstringlist.h>
00025
00026 #include <dcopobject.h>
00027 #include <kurl.h>
00028
00029 class KonqHistoryEntry
00030 {
00031 public:
00032 KonqHistoryEntry()
00033 : numberOfTimesVisited(1) {}
00034
00035 KURL url;
00036 QString typedURL;
00037 QString title;
00038 Q_UINT32 numberOfTimesVisited;
00039 QDateTime firstVisited;
00040 QDateTime lastVisited;
00041 };
00042
00043
00044
00045
00046 QDataStream& operator<< (QDataStream& s, const KonqHistoryEntry& e);
00047 QDataStream& operator>> (QDataStream& s, KonqHistoryEntry& e);
00048
00050
00051
00057 class KonqHistoryComm : public DCOPObject
00058 {
00059 K_DCOP
00060
00061 protected:
00062 KonqHistoryComm( QCString objId ) : DCOPObject( objId ) {}
00063
00064 k_dcop:
00065 virtual ASYNC notifyHistoryEntry( KonqHistoryEntry e, QCString saveId) = 0;
00066 virtual ASYNC notifyMaxCount( Q_UINT32 count, QCString saveId ) = 0;
00067 virtual ASYNC notifyMaxAge( Q_UINT32 days, QCString saveId ) = 0;
00068 virtual ASYNC notifyClear( QCString saveId ) = 0;
00069 virtual ASYNC notifyRemove( KURL url, QCString saveId ) = 0;
00070 virtual ASYNC notifyRemove( KURL::List url, QCString saveId ) = 0;
00071 virtual QStringList allURLs() const = 0;
00072
00073 };
00074
00075 #endif // KONQ_HISTORYCOMM_H
This file is part of the documentation for kdelibs Version 3.1.5.