summaryrefslogtreecommitdiffstats
path: root/libkonq/konq_historycomm.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-12-07 22:58:44 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-12-07 22:58:44 +0900
commit145abc15d57fb29701a12e8a14dcb9c1fd72e9be (patch)
treefbb4f2f737ec6f4e8a85bea5f2ca2257d20d7e22 /libkonq/konq_historycomm.cpp
parentd95494d97233919fa0b2eebf60759537b793e05b (diff)
downloadtdebase-145abc15d57fb29701a12e8a14dcb9c1fd72e9be.tar.gz
tdebase-145abc15d57fb29701a12e8a14dcb9c1fd72e9be.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'libkonq/konq_historycomm.cpp')
-rw-r--r--libkonq/konq_historycomm.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/libkonq/konq_historycomm.cpp b/libkonq/konq_historycomm.cpp
new file mode 100644
index 000000000..6cfd9b53f
--- /dev/null
+++ b/libkonq/konq_historycomm.cpp
@@ -0,0 +1,41 @@
+#include "konq_historycomm.h"
+
+bool KonqHistoryEntry::marshalURLAsStrings;
+
+// TQDataStream operators (read and write a KonqHistoryEntry
+// from/into a TQDataStream)
+TQDataStream& operator<< (TQDataStream& 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;
+}
+
+TQDataStream& operator>> (TQDataStream& s, KonqHistoryEntry& e) {
+ if (KonqHistoryEntry::marshalURLAsStrings)
+ {
+ TQString 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;
+}