Commit Graph

230 Commits

Author SHA1 Message Date
G10h4ck
9f37b63e4d
Merge pull request #1264 from G10h4ck/channel_json_api_v2
Channel json api v2
2018-05-16 10:49:28 +02:00
Gioacchino Mazzurco
4876a0ea3b
Multiple improvements to build process
Restructure and document retroshare.pri variables and helper functions
Link sqlite statically like other libraries on Android
qmake has multiple win32-* specs match them correctly
Move a buch of generic thing to retroshare.pri instead of having them replocated
  accross project specific .pro
Fix retroshare-gui too many symbols exported on windows liking error by adding
  QMAKE_LFLAGS+=-Wl,--exclude-libs,ALL
Rename retroshare-gui/src/util/win32.h because the name is too prone to
  confusion and build conflicts
libreasapi avoid usage of cretar_prl link_prl that seems unreliable on some
  platforms
libreasapi rename LIBRESAPI_QT to more understendable LIBRESAPI_SETTINGS
Use use_*.pri instead of copy pasting error prone qmake snippets around
Expose bitdht option to retroshare.pri
Add RS_THREAD_LIB qmake variable for better crossplatform support
Move debug and profiling generic options to retroshare.pri (avoid copy/pasting)
Remove Qt script module in qmake as it is not available anymore
2018-04-18 07:56:43 +02:00
Gioacchino Mazzurco
82fa54a735
Avoid using id as JSON field as it may interfere with QML 2018-03-29 11:28:23 +02:00
Gioacchino Mazzurco
8d1f1da242
Extend libresapi with minimal support for channels
The code is not elegant as this version of the API will be soon obsolete
  but it offer a bunch of channels functionalities, comments and votes
  are not implemented yet

/channels/list_channels get all visibile channels
/channels/get_channel get content of a subscribed channel
/channels/toggle_subscribe subscribe/unsubscribe to a channel
/channels/toggle_auto_download set/unset auto-download for files attached
  to posts in a channel
/channels/toggle_read mark a post as read
/channels/create_channel create a new channel
/channels/create_post create a new post in given channel, group_id
  paramenter renamed to channel_id for consistence

mChannels use reference instead of pointer as it must be valid
  for the whole lifetime of the object
RsGxsCommentService and derivatives use proper types for parameter, avoid
  reference when unneeded
2018-03-28 16:41:05 +02:00
Kevin Froman
599c3d4c0f
fixed clickjacking attack with x-frame-options 2018-03-23 23:00:27 -05:00
csoler
3f8ff6489b first attempt at creating a display model for transfers. Not finished yet. 2018-02-04 22:56:13 +01:00
Gioacchino Mazzurco
feae9f5850 Fix some compiler warnings 2018-01-30 00:36:19 +01:00
Gioacchino Mazzurco
d598a01780 ApiLocalListener do some sanity check on listen
This solve Android App being stuck at "connecting to the core" at first
run. It was caused by the ApiLocalListener running before another
retroshare thread could create .retroshare directory, so listening on
the socket failed silently and the qml app could connect to the core.
2018-01-28 11:38:14 +01:00
Gioacchino Mazzurco
8c21bfcd54 Avoid crash on stop in ApiServerLocal
It is necessart to wait for QThread to stop before destruction
Avoid closing the socket in ApiLocalConnectionHandler destructor as
this remained as ultimate cause of crash on stop
2018-01-25 15:18:12 +01:00
Konrad
67fc6a3c28 Fixed in Libresapi: Double declaration of StateToken in FileSharingHandler 2018-01-06 19:29:56 +01:00
Konrad
575a416ee9 Changed in Libresapi: Used Doxigen style comments 2018-01-06 19:09:44 +01:00
Konrad
d53993c2a0 Changed in Libresapi: Pointer to RsNotify object into reference 2018-01-06 18:39:47 +01:00
Konrad
4026040b49 Libresapi: Extended ChatInfo class to contain own identity used in chat 2018-01-05 20:44:48 +01:00
Konrad
96e75074a8 Added in Libresapi: Short comment to FileSharingHandler 2018-01-01 23:38:07 +01:00
Konrad
9bb6adc036 Added in Libresapi: Missing mutex locking in TransfersHandler 2018-01-01 23:27:46 +01:00
Konrad
6a61e0a781 Changed in Libresapi: Locking mutex using macro instead of RsStackMutex object creation 2018-01-01 23:20:26 +01:00
Konrad
74a56f646d Changed in Libresapi: Closing distant connection (chat) requires now ChatId that is used in other functions, instead of DistantCharPeerId 2017-12-29 16:07:39 +01:00
Konrad
4b25684c44 Added in Libresapi: Functions to get and set default identity for lobby 2017-12-29 16:03:45 +01:00
Konrad
b24d772278 Added in Libresapi: Getting node name in PeersHandler 2017-12-27 22:38:04 +01:00
Konrad
2db25d40cb Added in Libresapi: StateToken refreshing to TransferHandler 2017-12-27 22:37:14 +01:00
Konrad
53118e5bde Added in Libresapi: Missing bracket in ChatHandler 2017-12-27 22:35:51 +01:00
Konrad
92df847ece Added in Libresapi: StateTokens to FileSharingHandler 2017-12-27 22:33:23 +01:00
Konrad
55385d7602 Added in Libresapi: Marking particular message as read 2017-12-27 22:31:17 +01:00
Konrad
fca10c2f1b Removed in libresapi unused code that caused compilation error 2017-10-20 21:24:52 +02:00
Konrad
ef52e090ea Added in Libresapi: Handlers to interact with shared files 2017-10-20 20:57:37 +02:00
Konrad
0ebe885d6f Added in Libresapi: Handler to get uploading files 2017-10-20 20:55:56 +02:00
Konrad
2293b600f9 Added in Libresapi: Handler to get search result 2017-10-20 20:49:59 +02:00
Phenom
f4166860e8 Fix Windows Build 2017-09-15 15:04:43 +02:00
Gioacchino Mazzurco
62eefa4fed Remove cruft from PeersHandler::handleGetInactiveUsers
Move documentaion to header
2017-09-15 09:33:01 +02:00
Gioacchino Mazzurco
341c94ee6c PeersHandler::handleRemoveNode only remove location
Move documentation in header
2017-09-15 09:03:50 +02:00
Gioacchino Mazzurco
7888ec617a Remove extra cruft 2017-09-15 08:56:54 +02:00
Gioacchino Mazzurco
016cafdd23 Merge branch 'master' of https://github.com/myfingerhurt/RetroShare into myfingerhurt-webui-PR1014 2017-09-15 08:25:30 +02:00
Phenom
d23e860413 Fix Uninitialized Status in PeersHandler 2017-09-12 17:59:32 +02:00
ben
f348558077 Add a checker which prevents of adding your own gpg_id.
Add an inactive friends list based on last seen Unix timestamp.
Add a method of removing a specific peer based on peer_id.

As fas as I know, the same pgp_id will discorvery themself and add online subnodes automaticlly even you remove one of them their just keep coming back, but if you accidently add your own peer_id on the WebUI, the peer list will show two identical PGP names and its subnodes, untill the retroshare gets restarted.

And this modification don't add the same peer_id as long as it belongs to your current node, it doesn't mean you can't add your new nodes with the same pgp_id but different peer_id.

Honor the Allman indent style
2017-09-12 17:01:25 +09:00
ben
130099f43e add new keys for WebUI api peers handling, distinguishable hidden node and clear node when examining certificate 2017-08-18 16:27:30 +09:00
Phenom
69060f8119 Modify #warning to get author and date. 2017-07-16 21:37:53 +02:00
Phenom
8455adf375 Fix warning: unused parameter ‘type’ and ‘req’
/libresapi/src/api/ChatHandler.cpp:236: warning: unused parameter ‘type’
[-Wunused-parameter]
 void ChatHandler::notifyListChange(int list, int type)

/libresapi/src/api/ChatHandler.cpp:971: warning: unused parameter ‘req’
[-Wunused-parameter]
 void ChatHandler::handleGetInvitationsToLobby(Request& req, Response&
resp)
2017-07-16 20:49:27 +02:00
Phenom
c866bf91c6 Fix warning: unused parameter ‘req’ and ‘resp’
/libresapi/src/api/IdentityHandler.cpp:721: warning: unused parameter
‘req’ [-Wunused-parameter]
 ResponseTask* IdentityHandler::handleDeleteIdentity(Request& req,

/libresapi/src/api/IdentityHandler.cpp:722: warning: unused parameter
‘resp’ [-Wunused-parameter]
                                                     Response& resp)
2017-07-16 20:48:50 +02:00
Phenom
9d4967c0e1 Fix warning: unused parameter ‘req’
/libresapi/src/api/PeersHandler.cpp:670: warning: unused parameter ‘req’
[-Wunused-parameter]
 void PeersHandler::handleGetNetworkOptions(Request& req, Response&
resp)
2017-07-16 20:48:15 +02:00
csoler
98b0585ba4 Merge pull request #937 from csoler/v0.6-ImprovedNoGUI
V0.6 improved no gui
2017-07-13 21:23:13 +02:00
csoler
5465e1174f fixed debug output 2017-07-09 21:37:39 +02:00
csoler
5dfbce7e3a fixed Terminal Api Client logic 2017-07-09 21:16:41 +02:00
csoler
decbd3514d improved the login in the interaction between terminal api client and main 2017-07-08 17:38:09 +02:00
Gioacchino
fcec555cd0 Merge pull request #927 from Emotyco/libresapi_lobbies_invitation
Added to libresapi: Handling lobbies invitations
2017-07-07 11:57:17 +02:00
Konrad
f0ad68789b Fixed: Libresapi was throwing exception when requested to add new cert which was empty 2017-07-06 22:44:45 +02:00
Konrad
11d02f4612 Added: Handling requests to answer invitation to lobby 2017-07-06 14:08:50 +02:00
Konrad
c9bfe4b526 Added: Handling requests to get lobbies invitations 2017-07-06 14:07:33 +02:00
Konrad
aca6233dbf Added: Handling requests to invite peers to lobby 2017-07-06 14:05:48 +02:00
csoler
5b1def1405 Merge pull request #912 from Emotyco/libresapi_avatar_handlers
Changed: Request handler for avatar return failure if an error occurred while obtaining data
2017-07-04 10:25:40 +02:00
Konrad
0f93dd2f9e Fixed: Room's participants list is correctly refreshed. Previously it did not react to new participants in room 2017-06-30 12:38:09 +02:00