You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
795 B
42 lines
795 B
#include "konq_historycomm.h"
|
|
|
|
bool KonqHistoryEntry::marshalURLAsStrings;
|
|
|
|
// QDataStream operators (read and write a KonqHistoryEntry
|
|
// from/into a QDataStream)
|
|
QDataStream& operator<< (QDataStream& s, const KonqHistoryEntry& e) {
|
|
if (KonqHistoryEntry::marshalURLAsStrings)
|
|
s << e.url.url();
|
|
else
|
|
s << e.url;
|
|
|
|
s << e.typedURL;
|
|
s << e.title;
|
|
s << e.numberOfTimesVisited;
|
|
s << e.firstVisited;
|
|
s << e.lastVisited;
|
|
|
|
return s;
|
|
}
|
|
|
|
QDataStream& operator>> (QDataStream& s, KonqHistoryEntry& e) {
|
|
if (KonqHistoryEntry::marshalURLAsStrings)
|
|
{
|
|
QString url;
|
|
s >> url;
|
|
e.url = url;
|
|
}
|
|
else
|
|
{
|
|
s>>e.url;
|
|
}
|
|
|
|
s >> e.typedURL;
|
|
s >> e.title;
|
|
s >> e.numberOfTimesVisited;
|
|
s >> e.firstVisited;
|
|
s >> e.lastVisited;
|
|
|
|
return s;
|
|
}
|