Commit graph

51 commits

Author SHA1 Message Date
Sylvain Berfini
72bc4fec53 Moved most of exisiting code from LinphoneChatMessage* to shared_ptr<ChatMessage> 2017-09-29 18:13:00 +02:00
Ronan Abhamon
78646be7bc feat(c-wrapper): rename C_STRUCT to C_OBJECT 2017-09-22 10:27:58 +02:00
Ronan Abhamon
3b08856dc0 feat(c-wrapper): remove CPP_TYPE parameter of L_GET_CPP_PTR_FROM_C_STRUCT 2017-09-22 10:16:29 +02:00
Ronan Abhamon
48487d518f feat(c-wrapper): avoid usage of extern init... 2017-09-21 14:18:33 +02:00
Sylvain Berfini
d9d06fa32f Fixed compil broken due to chat message changes 2017-09-21 13:13:53 +02:00
Ronan Abhamon
5e4cb463db feat(c-tools): remove C_TYPE parameter of L_GET_CPP_PTR_FROM_C_STRUCT 2017-09-20 19:40:29 +02:00
Ghislain MARY
8e9bbb6899 Use c-tools for LinphoneChatRoom. 2017-09-14 16:12:22 +02:00
Ghislain MARY
0babed04f4 Use ChatRoom C++ class. 2017-08-30 10:27:51 +02:00
Ghislain MARY
03130daadc Prevent crash in message tests. 2017-08-03 15:25:49 +02:00
Simon Morlat
2dd2ee6e79 fix memory leaks 2017-07-31 16:08:56 +02:00
Ghislain MARY
7ceddff0b9 Do not rename files to compile them as C++. 2017-07-24 11:56:50 +02:00
Ghislain MARY
b9b283dcdb Compile source files as C++. 2017-07-21 17:06:41 +02:00
François Grisez
408da4db34 Declared the return type of functions returning an error code as LinphoneStatus 2017-04-13 17:00:23 +02:00
Sylvain Berfini
fc2e9efe81 Improved IM encryption engine API doc + added error log when invalid read 2017-02-21 11:05:02 +01:00
Sylvain Berfini
db1c043cd0 Improved IM encryption engine API 2017-02-21 10:26:33 +01:00
Simon Morlat
1121e07313 stop pending file transfers when entering linphone_core_destroy(). 2017-02-06 11:44:49 +01:00
Ghislain MARY
50f4e52966 Store chat message in database before file upload so that if the file upload fails we can try sending the chat message an other time. 2017-02-03 15:29:40 +01:00
Sylvain Berfini
2b407fabfa Fixes for LIME when used with file body handler (requires belle-sip 1.5.0-133 or newer) 2017-01-18 12:46:14 +01:00
Sylvain Berfini
030b1c05d5 Fixed callback issue with file body handler if file is big enough + improved tester 2017-01-17 11:56:11 +01:00
Ghislain MARY
f9ae431782 The (is_)read field of a LinphoneChatMessage is now deprecated, the LinphoneChatMessageStateDisplayed state is used instead. 2017-01-03 14:56:17 +01:00
Ghislain MARY
410f5b9e1c Revert message callbacks moved to LinphoneChatRoom instead of LinphoneChatMessage. 2017-01-03 14:56:17 +01:00
Ghislain MARY
9867c2fee7 Send and receive imdn. 2017-01-03 14:56:17 +01:00
Benjamin Reis
cb4c3fd694 Add background task for file transfer 2017-01-02 16:59:20 +01:00
Ghislain MARY
563bb427b0 Fix IM encryption engine for automatic wrapper generation. 2016-12-19 11:56:37 +01:00
Sylvain Berfini
9a26b72164 Merge remote-tracking branch 'private/dev_im_encryption_engine' 2016-12-01 11:12:10 +01:00
Ghislain MARY
33b72ce6b5 Move public header files in the include/linphone directory. 2016-11-15 14:41:18 +01:00
Sylvain Berfini
a47db2730e Using new start/stop callbacks from user body handler to simplify code
(requires belle-sip commit 288dc8ede808a0033aaf5da4add7b11f034c82f8 from dev_body_handler_inception branch)
2016-11-15 14:11:47 +01:00
Sylvain Berfini
8aa812b133 Fixed uploaded file not being encrypted when using file body handler for upload
(requires commit e69a6d2c1b3edb0dff47f072e1cddc6ded06eaba from belle-sip branch dev_body_handler_inception)
2016-11-15 12:21:16 +01:00
Sylvain Berfini
d3333be071 More tests for lime file transfer + few improvements 2016-11-14 16:49:22 +01:00
Sylvain Berfini
395c81f69a Added encryption callbacks for file upload in im encryption engine 2016-11-10 15:44:32 +01:00
Sylvain Berfini
127d52d72d Reworked API for im encryption engine for file download + added test for file body handler 2016-11-09 17:26:55 +01:00
Sylvain Berfini
c284239d54 Added callbacks in im encryption engine for decrypting incoming files in chat messages + improved lime test to check decrypted file is equal to sent one 2016-11-07 16:32:09 +01:00
Gautier Pelloux-Prayer
76ae2dc43a fix some crash 2016-08-29 10:04:29 +02:00
Ghislain MARY
1ec714cc96 Fix build with Visual Studio. 2016-07-20 09:58:06 +02:00
Gautier Pelloux-Prayer
dce962bf58 fix leaks 2016-07-19 12:20:24 +02:00
Sylvain Berfini
554635c53b Fix crash when downloading chat message encrypted with lime using file body handler 2016-07-15 17:03:16 +02:00
Gautier Pelloux-Prayer
0e082f1a40 chat: improve message_tester suites and fix memory leaks 2016-06-16 11:25:40 +02:00
Gautier Pelloux-Prayer
cb9816e9fb lime.c: implement "preferred" mode 2016-05-31 16:08:35 +02:00
Simon Morlat
6f18af09e5 fix crash 2016-03-06 21:32:58 +01:00
Gautier Pelloux-Prayer
55900bbf66 chat: add possibility to use Lime conditionnally (when secrets have been shared only) 2016-02-25 11:30:44 +01:00
Jehan Monnier
2a455a5fc7 remove some warnings 2016-01-19 15:39:31 +01:00
Ghislain MARY
b5e52a00ad Reflect changes to belle-sip that add a new parameter to belle_sip_muiltpart_body_handler_new(). 2015-11-25 16:04:49 +01:00
Gautier Pelloux-Prayer
d9a2fb2e08 chat_file_transfer.c: handle 4XX errors when trying to download image andlinphone_chat_message_cancel_file_transfer should change message state only if it was being pushed/pulled 2015-11-18 11:52:47 +01:00
Gautier Pelloux-Prayer
c4cb4d2767 chat_file_transfer.c: mark file transfer as failed if server answer is empty, probably meaning that request timeouted 2015-10-07 14:37:13 +02:00
Simon Morlat
da0cc3423b prevent application to perform concurrent download/upload on a single chat message by accident 2015-10-06 18:32:20 +02:00
Sylvain Berfini
982c96847d Set a temporary time when creating a chat message 2015-10-05 10:24:16 +02:00
Simon Morlat
8a7cfe66d6 don't notify a NotDelivered state if an incoming file transfer fails 2015-10-04 21:14:16 +02:00
Ghislain MARY
61ac1f8173 Fix compilation warnings when building for Windows 10. 2015-10-01 14:29:00 +02:00
Simon Morlat
489a5f3b8e don't cancel an http request that is already terminated 2015-09-23 23:21:06 +02:00
Simon Morlat
76263deaff fix crash in linphone_core_destroy() when releasing the chat rooms while belle_sip_provider_t no longer exists, and fix many memory leaks 2015-09-22 22:43:31 +02:00