From cf2713fd362cfeeeda946ead18e6b88abdff9c93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Sch=C3=BCmann?= Date: Thu, 3 Apr 2014 02:35:29 +0000 Subject: SendSS !*+ re-factored CSend a bit, fixes some bugs and improved re-usability + CSend got a new dialog to display URL created if there's no target contact (used by ImageShack when called from main menu * m_bDeleteAfterSend is now m_bAsync * CSend::Send now returns 1 if sent (sync, caller deletes) and 0 if sending is in progress (class self deletes, async) * ImageShack got new method SendSilent() (we used m_SendSync before, now renamed to m_bSilent for internal use) ! fixed memory leaks and using "delete" on already deleted CSend which caused a crash ! fixed graphical issue with wrongly initialized state buttons (delete after send, add description etc) git-svn-id: http://svn.miranda-ng.org/main/trunk@8835 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SendScreenshotPlus/src/CSendImageShack.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SendScreenshotPlus/src/CSendImageShack.h') diff --git a/plugins/SendScreenshotPlus/src/CSendImageShack.h b/plugins/SendScreenshotPlus/src/CSendImageShack.h index bf8b6afbbb..d7a2e21b91 100644 --- a/plugins/SendScreenshotPlus/src/CSendImageShack.h +++ b/plugins/SendScreenshotPlus/src/CSendImageShack.h @@ -33,11 +33,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. class CSendImageShack : public CSend { public: // Deklaration Standardkonstruktor/Standarddestructor - CSendImageShack(HWND Owner, MCONTACT hContact, bool bFreeOnExit); + CSendImageShack(HWND Owner, MCONTACT hContact, bool bAsync); ~CSendImageShack(); - void Send(); - void SendSync(bool Sync) {m_SendSync = Sync;}; + int Send(); + int SendSilent() {m_bAsync=m_Silent=true; return Send();}; char* GetURL(){return m_Url;}; char* GetError(){return mir_t2a(m_ErrorMsg);}; @@ -56,7 +56,7 @@ class CSendImageShack : public CSend { char* m_MFDRboundary; void MFDR_Reset(); - bool m_SendSync; + bool m_Silent; void SendThread(); static void SendThreadWrapper(void * Obj); -- cgit v1.2.3