Chat-O-Matic/application/preferences
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
..
AccountDialog.cpp Add 'error' slot for templates 2021-06-18 12:49:30 -05:00
AccountDialog.h Room creation window; Catch-all template window 2021-06-18 01:13:02 -05:00
AccountListItem.cpp Remove custom draw method for AccountListItem 2021-06-10 16:28:39 -05:00
AccountListItem.h Remove custom draw method for AccountListItem 2021-06-10 16:28:39 -05:00
AppPreferences.cpp Change default user status, replicant settings 2021-06-29 11:40:58 -05:00
AppPreferences.h Change class names 2021-06-20 12:44:20 -05:00
PreferencesAccounts.cpp Redesign add-on disconnection 2021-07-18 17:52:36 -05:00
PreferencesAccounts.h Support temporary disabling of accounts 2021-06-11 20:33:28 -05:00
PreferencesBehavior.cpp Change class names 2021-06-20 12:44:20 -05:00
PreferencesBehavior.h Task #12 2015-10-02 04:17:54 +00:00
PreferencesChatWindow.cpp Change class names 2021-06-20 12:44:20 -05:00
PreferencesChatWindow.h Modified preferences dialog, better look for Replicant settings, added a new tab for Chat Window settings 2012-03-02 02:23:21 +00:00
PreferencesContainer.h Change class names 2021-06-20 12:44:20 -05:00
PreferencesReplicant.cpp Change class names 2021-06-20 12:44:20 -05:00
PreferencesReplicant.h Change class names 2021-06-20 12:44:20 -05:00