summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/CSend.cpp
AgeCommit message (Collapse)Author
2017-09-12old good sound services became finally functionsGeorge Hazan
2017-09-12Revert "Merge branch 'master' of https://github.com/miranda-ng/miranda-ng"George Hazan
This reverts commit e09448dd03e3647717166e92ee818e395041993a, reversing changes made to b0f44b16bd1138de85a5d17bb42151742f9c8298.
2017-09-11old good sound services became finally functionsGeorge Hazan
2017-08-05Change rest of Miranda NG links to https://Robert Pösel
2017-02-14- fixes #712 (chaos in file name processing)George Hazan
- massive code cleaning
2017-01-17useless field DBEVENTINFO::cbSize removedGeorge Hazan
2017-01-05SendSS: fixed uploadpie upload by using HTTPSWhite-Tiger
P.S. why is NETLIBHTTPREQUEST->szUrl non-const? Netlib shouldn't (and doesn't IIRC) write to it, just read.
2017-01-01bump copyright yeardartraiden
2016-09-17chats: more functions, less structuresGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@17309 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-09-16- chats services replaces with functions;George Hazan
- chat calls switched from CallServiceSync to direct calls everywhere git-svn-id: http://svn.miranda-ng.org/main/trunk@17305 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-29no more TCHARsGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@17143 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-27less TCHARsGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-27<tchar.h> removed from <m_system.h>George Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@17136 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-26less TCHARs:George Hazan
- TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-25hello, Unix.George Hazan
phase 1: removing _T() git-svn-id: http://svn.miranda-ng.org/main/trunk@17127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-07-21improperly named helper renamedGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@17110 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-06-05- fix for #1059;George Hazan
- direct unsafe work with icons replaces with Window_SetIcon_IcoLib / Window_SetSkinIcon_IcoLib; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@16917 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-01-02Copyrights update part 3 (final)Dart Raiden
git-svn-id: http://svn.miranda-ng.org/main/trunk@15986 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-09-19SendSS: fix sending to jabber; more other fixesMikalaiR
git-svn-id: http://svn.miranda-ng.org/main/trunk@15394 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-08-28mir_sntprintf / mir_snprintf: obsoleted second parameter removed wherever ↵George Hazan
possible git-svn-id: http://svn.miranda-ng.org/main/trunk@15064 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-07-29- warning fixes;George Hazan
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14757 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-07-26common projectsKirill Volinsky
git-svn-id: http://svn.miranda-ng.org/main/trunk@14724 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-06-19SIZEOF replaced with more secure analog - _countofGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@14270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-31- PROTOCOLDESCRIPTOR_V3_SIZE to identify an ANSI plugin;George Hazan
- absence of fnInitFunc to identify a protocol without instances; - whole bunch of ansi crutches discarded git-svn-id: http://svn.miranda-ng.org/main/trunk@13937 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-31- MAllStrings: a handy union to hold an incoming string parameter of any type;George Hazan
- FNAMECHAR: atavism extincted; - PROTOSEARCHRESULT: structure prepared to use results of any type, including utf git-svn-id: http://svn.miranda-ng.org/main/trunk@13932 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-22replace strcmp to mir_strcmpKirill Volinsky
git-svn-id: http://svn.miranda-ng.org/main/trunk@13752 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-22replace strlen to mir_strlenKirill Volinsky
git-svn-id: http://svn.miranda-ng.org/main/trunk@13747 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-31Year 2015 version updateGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@11704 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-27SendSS:René Schümann
- cleaned up our mir_string stuff and removed lots of custom implementations as we use those of NG core now (couldn't get rid of mir_string though.. we still use some custom stuff) git-svn-id: http://svn.miranda-ng.org/main/trunk@11650 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-25SendSS:René Schümann
- removed mir_icolib and replaced with direct calls (using defines to simplify usage, improved performance) * improved icon define names * renamed ssClose.ico => ssCancel.ico to better reflect its use * slight improvement to ssEditOn.ico !!! this change dramatically changed SendSS's internal icon layout, iconpacks for SendSS must to be adjusted git-svn-id: http://svn.miranda-ng.org/main/trunk@11610 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-25SendSS:René Schümann
* global.h is now more global removed Main.h dependency removed MODNAME define (just a dupe of SZ_SENDSS) hInst -> g_hSendSS myGlobals -> g_myGlobals hNetlibUser -> g_hNetlibUser * restructured Main.cpp by reordering functions to be more logically placed * Main.h now only holds DLL_EXPORT functions git-svn-id: http://svn.miranda-ng.org/main/trunk@11608 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-01ZeroMemory -> memset, few bugs fisedRozhuk Ivan
git-svn-id: http://svn.miranda-ng.org/main/trunk@11184 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-30lstr* replacementsGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@11176 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-30Fix buf size for Get/Set text, open/save file nameRozhuk Ivan
SMS: SIZE_T -> size_t MRA: small code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@11175 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-06-28SendSS v0.8.6.0: René Schümann
+ imgur.com support by user requests (anonymous upload only) (CSendHost_imgur,CSend,global.h,UMainForm) this also include basic functions for JSON parsing (currently only JSON without spaces and arrays) (CSend) SSL/HTTPS support for HTTPFormCreate (CSend) support for custom headers in HTTPFormCreate (CSend) * updated ImageShack related filenames. * very minor misc code changes and improvements (comments, error messages) git-svn-id: http://svn.miranda-ng.org/main/trunk@9606 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-06-08SendSS:René Schümann
! fixed possible crash (CSendHost_uploadpie, CSendImageShack) * improved ImageShack error handling by improving GetHTMLContent * improved uploadpie error handling (still ugly, but better non the less) git-svn-id: http://svn.miranda-ng.org/main/trunk@9421 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-04-11SendSS:René Schümann
+ new host "Upload Pie" with support to expiring uploads: 30 minutes, 1 day or 1 week might not be perfect because this was a quick edit... * updated CSend's HTTP post stuff to support integer values (CSend,CSendImageShack) git-svn-id: http://svn.miranda-ng.org/main/trunk@8959 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-04-11SendSS:René Schümann
+ CSend now handles image upload via HTTP, at least provides helper functions for POST requests (CSend) - CSendImageShack simplified and removed custom HTTP form stuff as it's now integrated and easier to use in CSend (CSendImageShack) * version bump and User-Agent fix (version.h) git-svn-id: http://svn.miranda-ng.org/main/trunk@8958 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-04-11SendSS:René Schümann
*+ improved "Result"-Dialog (resource.rc/h, CSend, mir_icolib) added thumbnail link added copy buttons w/ images (copy raw, BBCode image, BBCode image with link) also improved handling. Now plays sound before dialog opens (was on close before) * CSend got new member variables. m_URL and m_URLthumb to hold image URLs (used by FTP,HTTP and ImageShack as of now) - removed m_URL and similar from CSendFTPFile and CSendHTTPServer git-svn-id: http://svn.miranda-ng.org/main/trunk@8957 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-04-11SendSS:René Schümann
! 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
2014-04-03SendSSRené Schümann
! removed wrong placed Exit() calls from me... OnSend handles it git-svn-id: http://svn.miranda-ng.org/main/trunk@8840 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-04-03SendSSRené Schümann
!*+ 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
2014-02-10HCONTACT is not needed anymoreGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@8086 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-02-10- HANDLE hContact => HCONTACTGeorge Hazan
- GCF_* prefix was added to chat constants to avoid name conflicts git-svn-id: http://svn.miranda-ng.org/main/trunk@8078 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-01-11forgotten to declare two remaining fields as constGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@7591 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-01-08- end of ANSI support in chats;George Hazan
- manual crit section control removed from chat engine; - bunch of memory-related clutches either removed or replaced with smart pointers git-svn-id: http://svn.miranda-ng.org/main/trunk@7549 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-01-01copyright update for year 2014George Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@7438 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-11-05// 2 out of XRené Schümann
* cleanup (nothing functional) commented out unused functions, simplified some code, removed "unused" returns git-svn-id: http://svn.miranda-ng.org/main/trunk@6787 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-10-05spelling correction (thanks RMN) Vadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@6355 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2013-04-05- rest of menus cleared;George Hazan
- old database macroses wiped out from all plugins (left in m_database.h for compatibility) git-svn-id: http://svn.miranda-ng.org/main/trunk@4324 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c