Chat-O-Matic/application/windows/AccountsWindow.h
Jaidyn Ann c0580dfc17 Save disabling of accounts, make persistent
If the user disables an account, this saves it so that on any
subsequent start-ups, the account won't be connected until the user
explicitly re-enables it.

ProtocolSettings were reworked to allow for publicly loading/saving
settings from BMessages, rather than solely from BViews.

In addition, all program-side disabling, enabling, and toggling of
accounts has been consolidated into ProtocolManager. This makes life
easier for other parts of the program that have to do these things
anyway.
2021-08-16 11:58:27 -05:00

37 lines
719 B
C++

/*
* Copyright 2009-2010, Pier Luigi Fiorini. All rights reserved.
* Copyright 2021, Jaidyn Levesque. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _ACCOUNTS_WINDOW_H
#define _ACCOUNTS_WINDOW_H
#include <Window.h>
class BButton;
class BListView;
class BPopUpMenu;
class ProtocolSettings;
class AccountsWindow : public BWindow {
public:
AccountsWindow();
virtual void MessageReceived(BMessage* msg);
private:
BListView* fListView;
BPopUpMenu* fProtosMenu;
BButton* fDelButton;
BButton* fEditButton;
BButton* fToggleButton;
void _LoadListView(ProtocolSettings* settings);
int64 _AccountInstance(const char* account);
};
#endif // _ACCOUNTS_WINDOW_H