Commit Graph

111 Commits

Author SHA1 Message Date
Adrien Destugues 7ee0705cae JRoster: move (still disabled) subscription code in the gloox callbacks 2020-03-28 11:36:58 +01:00
Adrien Destugues 6bb44ef994 Reduce use of UserID
There will be a lot more to do, but at least with this change, it is not
possible anymore to create a UserID outside of JRoster. So there should
always be a unique instance of the UserID for each roster entry. This
makes sure the state of the user is globally synchronized properly, and
no part of the code is accidentally working on a copy instead of the
real thing.
2019-09-30 16:44:01 +02:00
Adrien Destugues 2a53a0aa94 Update and cleanup UserID class
Reuse gloox provided data instead of copying it, whenever possible.
2019-09-30 12:21:20 +02:00
Adrien Destugues 96e2241a1c Cleanup some useless roster management things. 2019-09-30 11:49:32 +02:00
Adrien Destugues 1e81dec433 Move all roster handling into JRoster. 2019-09-30 11:33:15 +02:00
Adrien Destugues 763d92a34a Move AppLocation to support/ and remove AOL transport support 2019-09-30 11:30:32 +02:00
Adrien Destugues a77ea7ff9e Remove support for Yahoo and MSN transports.
These protocols are dead.
2019-09-29 23:10:50 +02:00
Adrien Destugues a81b88792d Move more useful stuff out of jabber/ 2019-09-29 22:45:22 +02:00
Adrien Destugues 9a3e225b35 Improve handling of invalid username/password
Go back to the main screen and highligh both fields since we don't know
which one is invalid.
2019-09-29 20:55:34 +02:00
Adrien Destugues 244cfb45d0 XEP-0077: in-band registration
Only the version with data forms is supported, not the legacy fixed
fields one. Error handling is not perfect yet and can likely be
improved.

To be tested more extensively after gloox get support for SRV records
(so we're sure to connect correctly to the server)
2019-09-29 17:13:50 +02:00
Adrien Destugues 501ac0df0e Move some classes to ui/ directory. 2019-09-29 10:44:40 +02:00
Adrien Destugues 7c38c7ee86 Fix setting friendly names (users and bookmarks) 2019-09-28 22:54:27 +02:00
Adrien Destugues d6cbfe4ad9 Work on bookmarks
- Remove "channels" menu and instead list group chats in the roster view
- Allow joining a group chat by double ckicking on it in the roster
- Support for bookmarks2 (XEP-0402). XEP-0048 is also implemented, but
  currently disabled.
- Joining a group chat adds it to the bookmarks with autojoin enabled,
  unless it is not an user initiated action (for example, someone else
  invited you in a room)
- Leaving a groupchat adds it to the bootkmarks, with autojoin disabled
  (so you can easily access the server-side history for it or join back)
- Bookmarks can be deleted by right click->remove in the Roster.

Fixes #32, #40
2019-09-28 21:08:36 +02:00
Adrien Destugues e2d14a545c [WIP] XEP-0077 In-Band Registration
Also includes several cleanups, refactoring, etc

TODO:
- Send back dataform to the server
- Handle OOB data
- Handle legacy fields again
- Better error handling
- Complete BOB and Media handling for captchas
- Finish support for previous/next navigation in registration wizard
  (cleanup already added views, etc)

Future considerations:
- Drop JabberSpeak.cpp completely and use GlooxHandler instead
  everywhere
2019-09-27 22:34:47 +02:00
Adrien Destugues 07a35ed217 Implement sending messages to group chats 2019-07-14 12:26:38 +02:00
Adrien Destugues cbc5f0e2ab Remove "SSL" box and support for manually overriding server
This is supposed to be handled using SRV DNS records, and is unrelated
to SSL anyways.
2019-07-14 10:28:30 +02:00
Adrien Destugues 1ac024b223 Use standard about box 2019-07-14 09:40:02 +02:00
Adrien Destugues b8c40062c7 Remove some transmport related stuff.
Transport aren't really a cool thing these days, this code is in the old
Jabber implementation anyway, and it only handles IM networks that are
largely gone. We may reimplement this later, but for now it's easier to
have this out of the way.
2019-07-14 08:24:58 +02:00
Adrien Destugues 6d06a0b5b0 Rename to Renga
I heard "Jabber for Haiku" is not a great name and the protocol isn't
called Jabber anymore these days.

TODO: replace all logos as well.
2019-07-14 08:23:57 +02:00
Adrien Destugues 0e349ea402 Implement some multi user chat. 2019-07-13 19:42:59 +02:00
Adrien Destugues 416ad13ff8 Implement "software version" iq reply. 2019-07-13 16:30:41 +02:00
Adrien Destugues a5e119a022 Remove old JID parsing code and use gloox::JID.
Should help fixing 64bit build more.
2019-07-13 15:44:27 +02:00
Adrien Destugues 8229a0c8b8 Attempt to fix 64bit build.
Should fix #28
2019-07-13 08:40:07 +02:00
Adrien Destugues cc27aecd67 Implement adding/removing contacts, and creating account 2019-06-22 14:39:29 +02:00
Adrien Destugues dfb2026af1 Migrate "SendPresence" to gloox. 2019-06-22 13:02:08 +02:00
Adrien Destugues 04c164a837 Add bookmarks retrieval
Allows to auto-join and remember conference rooms.
2019-06-21 20:55:03 +02:00
Adrien Destugues ff72b8b80f Handle "pending presence" state. 2019-06-19 20:51:32 +02:00
Adrien Destugues f7960fbafe Implement sending messages with gloox.
We have a minimal working XMPP client again :)
2019-06-10 14:52:31 +02:00
Adrien Destugues 36b773d3ad Remove now unused SplitPane library, and implement message reception 2019-06-06 22:57:13 +02:00
Adrien Destugues d645e0cde2 Update talk window to use layout API 2019-06-06 20:22:34 +02:00
Adrien Destugues 23c206d2ff [WIP] Remove old network code and unused classes. 2019-06-05 22:59:29 +02:00
Adrien Destugues 7681693115 Store icons as resources 2019-06-05 20:47:31 +02:00
Adrien Destugues bbc97b68f3 [WIP] Replace jabber code with gloox
- Connecting to the server
- Getting roster and presence from contacts
2019-06-05 20:30:57 +02:00
Adrien Destugues d4acc92f86 Enable Wall Werror and fix all problems found. 2019-06-04 19:35:35 +02:00
Adrien Destugues d0f023719f Switch to CMake and add some bitmaps as resources. 2019-06-02 11:33:44 +02:00
Adrien Destugues 130c2dfd47 Use layout API in main window.
Other windows may be broken by this. Will test when I'm done replacing
the network code.
2019-06-02 11:03:17 +02:00
EppMouse 6f68e9422c Change contact colors 2017-12-15 21:35:05 +01:00
Jerome Duval 6f0295b8c3 x86_64 build fix. 2017-02-07 21:33:35 +01:00
humdinger 5b101cfa4a Fix build (#11)
Deskbar.h has been moved.
2016-09-25 19:05:27 +02:00
siarzhuk 013832c8c5 - fixed local-system include files mess;
- version info report improoved;
 - icon is less "light" now.


git-svn-id: http://svn.osdrawer.net/jabber4beos@35 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-12-13 16:34:21 +00:00
siarzhuk 0299ae8cd8 - vector icon by zuMi added.
Thank you very much!


git-svn-id: http://svn.osdrawer.net/jabber4beos@34 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-12-06 21:32:47 +00:00
xed 71d50f8788 removed buddy list tab
git-svn-id: http://svn.osdrawer.net/jabber4beos@32 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-11-22 12:26:19 +00:00
xed 8ae2317727 Now the context popup menu is keept open (added clickToOpenRect parameter to BPopUp:Go())
git-svn-id: http://svn.osdrawer.net/jabber4beos@31 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-11-19 18:45:58 +00:00
xed 4f1f6f2280 restoring plain font after custom string drawing
git-svn-id: http://svn.osdrawer.net/jabber4beos@30 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-11-18 22:26:01 +00:00
xed 219941f562 away status is drawed with italic font
git-svn-id: http://svn.osdrawer.net/jabber4beos@29 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-11-16 22:02:35 +00:00
siarzhuk cb7ede32f1 - Resources for Haiku build now use RDEF textual format instead of RSRC;
- MIME signature of Haiku build fixed to application/x-vnd.Haiku-Jabber;
 - outdated jabber/Blabber.proj deleted.


git-svn-id: http://svn.osdrawer.net/jabber4beos@28 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-11-16 20:51:41 +00:00
siarzhuk 9125e4df2c - resource directory was moved to root of the project tree. It simplifies handling automatic package creation.
git-svn-id: http://svn.osdrawer.net/jabber4beos@24 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-11-14 19:52:05 +00:00
siarzhuk c6039b7149 - outdated expat removed from the source tree. Now we use stock one provided with Haiku;
- most of files under ./storage moved to ./jabber directory. There are no other projects to share those classes with;

A  + jabber/FileItem.cpp
A  + jabber/XMLEntity.h
A  + jabber/KeepAlive.cpp
A  + jabber/MessageRepeater.cpp
A  + jabber/StatusView.cpp
A  + jabber/PortTalker.cpp
A  + jabber/BubbleView.h
A  + jabber/XMLEntity.cpp
A  + jabber/FileItem.h
A  + jabber/PictureView.cpp
A  + jabber/AppLocation.h
A  + jabber/MessageRepeater.h
A  + jabber/StatusView.h
A  + jabber/FileXMLReader.h
A  + jabber/XMLReader.h
A  + jabber/macros.h
A  + jabber/ProxyLooper.cpp
A  + jabber/JabberSSLPlug.h
A  + jabber/BitmapButton.cpp
A  + jabber/AppLocation.cpp
A  + jabber/PictureView.h
A  + jabber/XMLReader.cpp
A  + jabber/FileXMLReader.cpp
A  + jabber/JabberSocketPlug.cpp
A  + jabber/JabberSSLPlug.cpp
A  + jabber/ProxyLooper.h
A  + jabber/KeepAlive.h
A  + jabber/BitmapButton.h
A  + jabber/JabberPlug.h
A  + jabber/BubbleView.cpp
A  + jabber/JabberSocketPlug.h
A  + jabber/PortTalker.h
D    shared/interface
D    shared/expat
D    shared/include
D    shared/storage
D    shared/configuration
D    shared/network
M    makefile


git-svn-id: http://svn.osdrawer.net/jabber4beos@22 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-11-14 18:04:18 +00:00
siarzhuk 2f5e952f73 - support for handling id:iq:version.
git-svn-id: http://svn.osdrawer.net/jabber4beos@20 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-11-14 17:27:55 +00:00
xed 0322d90420 windows title changes after a new message on a inactive window
git-svn-id: http://svn.osdrawer.net/jabber4beos@19 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-11-09 21:26:15 +00:00
xed 06ae38b965 Double-click open chat windows as default settings value
git-svn-id: http://svn.osdrawer.net/jabber4beos@18 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-11-08 14:20:46 +00:00
xed dc49b422f1 it compiles on haiku a1r1 with both gcc2 and gcc4
git-svn-id: http://svn.osdrawer.net/jabber4beos@17 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-11-08 13:29:04 +00:00
siarzhuk 5600162350 fix for AV with active log on starting groupchat
git-svn-id: http://svn.osdrawer.net/jabber4beos@15 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-09-30 17:28:46 +00:00
markh 26e1d150cc Only set the chatlog path if it exists.
git-svn-id: http://svn.osdrawer.net/jabber4beos@11 337aba2b-7447-0410-a794-ebbcc98ad26d
2009-04-11 12:08:58 +00:00
siarzhuk 840291518c support for permanent chat log
git-svn-id: http://svn.osdrawer.net/jabber4beos@9 337aba2b-7447-0410-a794-ebbcc98ad26d
2008-04-12 20:52:32 +00:00
siarzhuk 860a782acf R5 build fix.
git-svn-id: http://svn.osdrawer.net/jabber4beos@8 337aba2b-7447-0410-a794-ebbcc98ad26d
2008-04-12 20:41:23 +00:00
julun 53b650d748 * gcc4 build fix
git-svn-id: http://svn.osdrawer.net/jabber4beos@6 337aba2b-7447-0410-a794-ebbcc98ad26d
2008-04-07 19:32:07 +00:00
xed 628e65d733 better login panel
git-svn-id: http://svn.osdrawer.net/jabber4beos@5 337aba2b-7447-0410-a794-ebbcc98ad26d
2008-03-15 20:50:25 +00:00
xed ce8ec237ed fixed some ssl configuraion stuffs
git-svn-id: http://svn.osdrawer.net/jabber4beos@3 337aba2b-7447-0410-a794-ebbcc98ad26d
2008-03-15 12:29:17 +00:00
xed c3f4216afd added SSL support
git-svn-id: http://svn.osdrawer.net/jabber4beos@2 337aba2b-7447-0410-a794-ebbcc98ad26d
2008-03-10 01:13:03 +00:00
xed 473de763da initial checkin
git-svn-id: http://svn.osdrawer.net/jabber4beos@1 337aba2b-7447-0410-a794-ebbcc98ad26d
2008-03-03 22:52:07 +00:00