summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/domain/converters.h
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse-api/domain/converters.h')
-rw-r--r--gentoobrowse-api/domain/converters.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/gentoobrowse-api/domain/converters.h b/gentoobrowse-api/domain/converters.h
new file mode 100644
index 0000000..5bb9c4b
--- /dev/null
+++ b/gentoobrowse-api/domain/converters.h
@@ -0,0 +1,26 @@
+#ifndef something
+#define something
+
+#include <portage-models.h>
+#include <visibility.h>
+
+namespace Slicer {
+ DLL_PUBLIC
+ ::Gentoo::StringList
+ unpackPqTextArray(const std::string & s);
+
+ DLL_PUBLIC
+ std::string
+ packPqTextArray(const ::Gentoo::StringList & l);
+
+ DLL_PUBLIC
+ boost::posix_time::ptime
+ shortDateToPosixTime(const std::string & s);
+
+ DLL_PUBLIC
+ std::string
+ posixTimeToShortDate(const boost::posix_time::ptime & s);
+}
+
+#endif
+