Chat-O-Matic/application
Jaidyn Ann 4905dbbe6c Redesign add-on disconnection
Currently, add-ons are disconnected when ChatProtocol::Shutdown() is
called, which the add-on can do by itself― but there is no standard way
for add-ons to notify the app about their Shutdown. Because of this,
they tend to not call Shutdown()― instead (as in the case of the Jabber
add-on), they display a BAlert (IM_ERROR) notifying the user of the
connection error, but the account is considered active by Cardie (and
its threads are still existant, including its ProtocolLooper).

Zombies are bad, so this is redesigned somewhat with this commit:
Protocols should no longer call ChatProtocol::Shutdown() themselves,
they must send an IM_MESSAGE of IM_PROTOCOL_DISABLE to the app.

This will delete its ProtocolLooper, which in turn will send a
notification to the user and delete the ChatProtocol, and so
calling ChatProtocol::Shutdown().

In the included protocols, an IM_ERROR is sent right before
IM_PROTOCOL_DISABLE is sent if due to a connection error. This is not
required, but it is courteous to inform your user about the "why." :)
2021-07-18 17:52:36 -05:00
..
preferences Redesign add-on disconnection 2021-07-18 17:52:36 -05:00
views Highlight room list-items, auto-scroll in chat 2021-07-17 00:23:56 -05:00
windows Redesign add-on disconnection 2021-07-18 17:52:36 -05:00
Account.cpp Change class names 2021-06-20 12:44:20 -05:00
Account.h Change class names 2021-06-20 12:44:20 -05:00
AccountManager.cpp Change class names 2021-06-20 12:44:20 -05:00
AccountManager.h Change class names 2021-06-20 12:44:20 -05:00
AppConstants.h Change class names 2021-06-20 12:44:20 -05:00
AppMessages.h Redesign add-on disconnection 2021-07-18 17:52:36 -05:00
AppResources.h Change class names 2021-06-20 12:44:20 -05:00
Cardie.h Rename Caya to Cardie 2021-06-22 01:06:00 -05:00
Cardie.rdef Update README and Contributors 2021-07-11 15:31:37 -05:00
ChatCommand.cpp Make ChatCommands archivable 2021-06-15 22:03:11 -05:00
ChatCommand.h librunview/libsupport x86_gcc2 fixes 2021-06-30 14:25:58 -05:00
ChatProtocol.h Reformat ChatProtocol, default own contact to null 2021-07-07 10:59:56 -05:00
ChatProtocolAddOn.cpp Change class names 2021-06-20 12:44:20 -05:00
ChatProtocolAddOn.h Change class names 2021-06-20 12:44:20 -05:00
ChatProtocolMessages.h Redesign add-on disconnection 2021-07-18 17:52:36 -05:00
Contact.cpp Fix status view's avatar icon 2021-07-13 14:43:48 -05:00
Contact.h Fix status view's avatar icon 2021-07-13 14:43:48 -05:00
Conversation.cpp Highlight room list-items, auto-scroll in chat 2021-07-17 00:23:56 -05:00
Conversation.h Highlight room list-items, auto-scroll in chat 2021-07-17 00:23:56 -05:00
Flags.h Store default commands/menu items in resources 2021-06-30 14:27:58 -05:00
ImageCache.cpp Change class names 2021-06-20 12:44:20 -05:00
ImageCache.h Program-wide avatar cache 2021-06-13 17:34:30 -05:00
Makefile Move sendbox to conversation view, replace filter 2021-07-08 16:07:03 -05:00
Notifier.cpp Update copyright year. 2011-12-03 22:38:03 +00:00
Notifier.h Create Conversation class, use it instead of Contact for chats 2021-05-24 01:47:21 -05:00
NotifyMessage.h Highlight room list-items, auto-scroll in chat 2021-07-17 00:23:56 -05:00
Observer.h Update copyright year. 2011-12-03 22:38:03 +00:00
ProtocolLooper.cpp Redesign add-on disconnection 2021-07-18 17:52:36 -05:00
ProtocolLooper.h Remove own user from contacts; fix roster bitmaps 2021-07-06 14:46:28 -05:00
ProtocolManager.cpp Change class names 2021-06-20 12:44:20 -05:00
ProtocolManager.h Change class names 2021-06-20 12:44:20 -05:00
ProtocolSettings.cpp Change class names 2021-06-20 12:44:20 -05:00
ProtocolSettings.h Change class names 2021-06-20 12:44:20 -05:00
ProtocolTemplate.cpp Include default templates, split "room" 2021-07-05 13:48:33 -05:00
ProtocolTemplate.h Change class names 2021-06-20 12:44:20 -05:00
Role.h Include BString in Role.h 2021-06-30 18:05:22 -05:00
Server.cpp Redesign add-on disconnection 2021-07-18 17:52:36 -05:00
Server.h Redesign add-on disconnection 2021-07-18 17:52:36 -05:00
TheApp.cpp Consolidate Main and TheApp 2021-06-23 14:15:22 -05:00
TheApp.h Consolidate Main and TheApp 2021-06-23 14:15:22 -05:00
User.cpp Change default user status, replicant settings 2021-06-29 11:40:58 -05:00
User.h Change class names 2021-06-20 12:44:20 -05:00
Utils.cpp Reorganize settings directory, custom purple paths 2021-06-30 21:05:43 -05:00
Utils.h Reorganize settings directory, custom purple paths 2021-06-30 21:05:43 -05:00