summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/WhatsAPI++/MediaUploader.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/MediaUploader.h')
-rw-r--r--protocols/WhatsApp/src/WhatsAPI++/MediaUploader.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/WhatsAPI++/MediaUploader.h b/protocols/WhatsApp/src/WhatsAPI++/MediaUploader.h
new file mode 100644
index 0000000000..7fb6612095
--- /dev/null
+++ b/protocols/WhatsApp/src/WhatsAPI++/MediaUploader.h
@@ -0,0 +1,18 @@
+/*
+*
+*/
+#ifndef MEDIAUPLOADER_H_
+#define MEDIAUPLOADER_H_
+
+using namespace std;
+
+namespace MediaUploader
+{
+ std::string pushfile(std::string url, FMessage * message, std::string from);
+ std::string getPostString(std::string url, FMessage * message, std::string from);
+ std::string sendData(std::string host, std::string head, std::string filePath, std::string tail);
+ std::string getExtensionFromMime(string mime);
+ std::string getMimeFromExtension(const string &extension);
+};
+
+#endif /* MEDIAUPLOADER_H_ */