diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-14 16:34:53 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-14 16:34:53 +0000 |
commit | e89f03b9f2af75ce231367befb584aaa948c420c (patch) | |
tree | 3d1a5dd4352fd91b7455a5e54f74527bdae21274 /plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp | |
parent | 99f9bd745de40f36efc32fe1d7b0a4a4f5566635 (diff) |
strange service SRMsg/LaunchMessageWindow removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@14165 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp')
-rw-r--r-- | plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp b/plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp index 79f255541e..4f6f141212 100644 --- a/plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp +++ b/plugins/SendScreenshotPlus/src/CSendHTTPServer.cpp @@ -35,7 +35,8 @@ INT_PTR (*g_MirCallService)(const char *, WPARAM, LPARAM)=NULL; //--------------------------------------------------------------------------- CSendHTTPServer::CSendHTTPServer(HWND Owner, MCONTACT hContact, bool /*bAsync*/) -: CSend(Owner, hContact, true){ + : CSend(Owner, hContact, true) +{ m_EnableItem = SS_DLG_DESCRIPTION ; //| SS_DLG_AUTOSEND | SS_DLG_DELETEAFTERSSEND; m_pszSendTyp = LPGENT("HTTPServer transfer"); m_pszFileName = NULL; @@ -43,7 +44,8 @@ CSendHTTPServer::CSendHTTPServer(HWND Owner, MCONTACT hContact, bool /*bAsync*/) m_fsi_pszRealPath = NULL; } -CSendHTTPServer::~CSendHTTPServer(){ +CSendHTTPServer::~CSendHTTPServer() +{ mir_free(m_pszFileName); mir_free(m_fsi_pszSrvPath); mir_free(m_fsi_pszRealPath); @@ -80,7 +82,8 @@ int CSendHTTPServer::Send() return 0; } -void CSendHTTPServer::SendThread() { +void CSendHTTPServer::SendThread() +{ INT_PTR ret; if (ServiceExists(MS_HTTP_GET_LINK)) { @@ -98,7 +101,7 @@ void CSendHTTPServer::SendThread() { //send DATA and wait for reply ret = CallService(MS_HTTP_ADD_CHANGE_REMOVE, (WPARAM)m_hContact, (LPARAM)&m_fsi); } - + if (ret != 0) { Error(LPGENT("%s (%i):\nCould not add a share to the HTTP Server plugin."),TranslateTS(m_pszSendTyp),ret); Exit(ret); return; @@ -113,22 +116,7 @@ void CSendHTTPServer::SendThread() { Exit(ACKRESULT_FAILED); } -void CSendHTTPServer::SendThreadWrapper(void * Obj) { +void CSendHTTPServer::SendThreadWrapper(void * Obj) +{ reinterpret_cast<CSendHTTPServer*>(Obj)->SendThread(); } - -//--------------------------------------------------------------------------- -/* -CSendHTTPServer::CContactMapping CSendHTTPServer::_CContactMapping; -INT_PTR CSendHTTPServer::MyCallService(const char *name, WPARAM wParam, LPARAM lParam) { -/ * - CContactMapping::iterator Contact(_CContactMapping.end()); - if ( wParam == m_hContact && ( - (mir_strcmp(name, MS_MSG_SENDMESSAGE)== 0) || - (mir_strcmp(name, "SRMsg/LaunchMessageWindow")== 0) )) - { - m_URL= mir_strdup((char*)lParam); - return 0; - }* / - return g_MirCallService(name, wParam, lParam); -}*/ |