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
802 B
42 lines
802 B
15 years ago
|
#include "konq_historycomm.h"
|
||
|
|
||
|
bool KonqHistoryEntry::marshalURLAsStrings;
|
||
|
|
||
14 years ago
|
// TQDataStream operators (read and write a KonqHistoryEntry
|
||
|
// from/into a TQDataStream)
|
||
|
TQDataStream& operator<< (TQDataStream& s, const KonqHistoryEntry& e) {
|
||
15 years ago
|
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;
|
||
|
}
|
||
|
|
||
14 years ago
|
TQDataStream& operator>> (TQDataStream& s, KonqHistoryEntry& e) {
|
||
15 years ago
|
if (KonqHistoryEntry::marshalURLAsStrings)
|
||
|
{
|
||
14 years ago
|
TQString url;
|
||
15 years ago
|
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;
|
||
|
}
|