5b5840a79e
Previously, all Conversations/Contacts/Users were stored in the Server, each in their respective KeyMaps, identified solely by their identifiers. This leads to the glaring problem of overlap― if the user has multiple accounts, some users/rooms might be used or present in multiple accounts at the same time. Now, each accounts' Contacts, Conversations, and Users are stored in its ProtocolLooper, making this overlap impossible. An oversight of only allowing one user identifier to be stored (fMySelf) in Server was also fixed this way. This is the bulk of the work required for multi-account support― now, the user can join the same XMPP room on two seperate accounts, and it works perfectly.
18 lines
365 B
C++
18 lines
365 B
C++
/*
|
|
* Copyright 2009-2010, Pier Luigi Fiorini. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _PREFERENCES_WINDOW_H
|
|
#define _PREFERENCES_WINDOW_H
|
|
|
|
#include <Window.h>
|
|
|
|
class PreferencesWindow : public BWindow {
|
|
public:
|
|
PreferencesWindow();
|
|
|
|
virtual void MessageReceived(BMessage* msg);
|
|
};
|
|
|
|
#endif // _PREFERENCES_WINDOW_H
|