summaryrefslogtreecommitdiffstats
path: root/plugins/rssfeed/rss/tools_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/rssfeed/rss/tools_p.h')
-rw-r--r--plugins/rssfeed/rss/tools_p.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/plugins/rssfeed/rss/tools_p.h b/plugins/rssfeed/rss/tools_p.h
new file mode 100644
index 0000000..5076004
--- /dev/null
+++ b/plugins/rssfeed/rss/tools_p.h
@@ -0,0 +1,34 @@
+/*
+ * tools_p.h
+ *
+ * Copyright (c) 2001, 2002, 2003 Frerich Raabe <raabe@kde.org>
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. For licensing and distribution details, check the
+ * accompanying file 'COPYING'.
+ */
+#ifndef LIBRSS_TOOLS_P_H
+#define LIBRSS_TOOLS_P_H
+
+#include <time.h>
+
+class QDomNode;
+class QString;
+
+namespace RSS
+{
+ struct Shared
+ {
+ Shared() : count(1) { }
+ void ref() { count++; }
+ bool deref() { return !--count; }
+ unsigned int count;
+ };
+
+ QString extractNode(const QDomNode &parent, const QString &elemName, bool isInlined=true);
+ time_t parseISO8601Date(const QString &s);
+}
+
+#endif // LIBRSS_TOOLS_P_H
+// vim:noet:ts=4