From 6d08efb05a3ed58dadf7e280d4a683293961ff78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Sch=C3=BCmann?= Date: Fri, 11 Apr 2014 00:56:58 +0000 Subject: SendSS: ! translation fixes (CSendFTPFile,CSendHTTPServer) ! fixed some error handling (CSendHTTPServer,CSendImageShack) * allow silent sending with all CSend's (CSend, CSendDropbox, CSendFTPFile, CSendImageShack) we also use this for Dropbox since we don't know the upload progress * CSend's addition to r8939 (mir_freeAndNil() removed with mir_free() in some places) git-svn-id: http://svn.miranda-ng.org/main/trunk@8942 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SendScreenshotPlus/src/CSend.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/SendScreenshotPlus/src/CSend.h') diff --git a/plugins/SendScreenshotPlus/src/CSend.h b/plugins/SendScreenshotPlus/src/CSend.h index d6972028cd..63047b7fd3 100644 --- a/plugins/SendScreenshotPlus/src/CSend.h +++ b/plugins/SendScreenshotPlus/src/CSend.h @@ -48,10 +48,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. //--------------------------------------------------------------------------- class CSend { public: - CSend(HWND Owner, MCONTACT hContact, bool bAsync); // oder (TfrmMain & Owner) + CSend(HWND Owner, MCONTACT hContact, bool bAsync, bool bSilent=false); // oder (TfrmMain & Owner) virtual ~CSend(); virtual int Send() = NULL; // returns 1 if sent (you must delete class) and 0 when still sending (class deletes itself) + int SendSilent() {m_bAsync=m_bSilent=true; return Send();}; void SetFile(TCHAR* file){mir_free(m_pszFile), m_pszFile=mir_tstrdup(file);}; void SetFile(char* file){mir_free(m_pszFile), m_pszFile=mir_a2t(file);}; @@ -63,6 +64,7 @@ class CSend { bool m_bDeleteAfterSend; protected: bool m_bAsync; + bool m_bSilent; TCHAR* m_pszFile; TCHAR* m_pszFileDesc; static int OnSend(void *obj, WPARAM wParam, LPARAM lParam); -- cgit v1.2.3