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 23:22:36 +0900
commitad6f3f6402df4bdf88672d511e21ab1e9b88d978 (patch)
treebacd0af440aa1a0671045d431406cda36d4df618 /libkonq/konq_historycomm.cpp
parent6ab96d20b89c0e1d86abc00513c7cec304d85800 (diff)
downloadtdebase-ad6f3f6402df4bdf88672d511e21ab1e9b88d978.tar.gz
tdebase-ad6f3f6402df4bdf88672d511e21ab1e9b88d978.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 145abc15d57fb29701a12e8a14dcb9c1fd72e9be)
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;
+}