From 2a5950df692f8a2c9d51a2a3e0c4d41fe0d3e7c9 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 13 Feb 2013 22:43:26 +0000 Subject: stream mime attachments directly to disk Signed-off-by: Michael Krelin --- (limited to 'src/eyefiworker.h') diff --git a/src/eyefiworker.h b/src/eyefiworker.h index 6cdecff..61d92d2 100644 --- a/src/eyefiworker.h +++ b/src/eyefiworker.h @@ -1,13 +1,25 @@ #ifndef __EYEFIWORKER_H #define __EYEFIWORKER_H +#include +using std::tr1::shared_ptr; + #include "soapeyefiService.h" +#include "eyekinfig.h" +#include "eyetil.h" + +struct eyefi_session; + class eyefiworker : public eyefiService { public: + shared_ptr kinfig; + shared_ptr indir; + shared_ptr mime_tarfile; + shared_ptr mime_idigest; eyefiworker(); - ~eyefiworker(); + ~eyefiworker() { } int run(int port) __attribute__ ((noreturn)); @@ -24,6 +36,11 @@ class eyefiworker : public eyefiService { std::string encryption, int flags, struct rns__UploadPhotoResponse &r); + void *mime_writeopen(void *handle,const char *id,const char *type,const char *description, + enum soap_mime_encoding encoding); + int mime_write(void *handle,const char *buf,size_t len); + void mime_writeclose(void *handle); + eyefiService *copy() { throw std::logic_error("Not meant to be called"); } }; -- cgit v0.9.0.2