Chat-O-Matic/application/preferences/PreferencesAccounts.h
Jaidyn Ann dcc5e443d3 Support temporary disabling of accounts
Accounts can now be temporarily disabled (in a Pidgin-like style)
through Preferences->Accounts. Work is still required to allow
enabling/re-enabling of accounts on-the-fly, and for keeping an
account's disabled state persistent.
2021-06-11 20:33:28 -05:00

39 lines
734 B
C++

/*
* Copyright 2009-2010, Pier Luigi Fiorini. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _PREFERENCES_ACCOUNTS_H
#define _PREFERENCES_ACCOUNTS_H
#include <View.h>
class BButton;
class BListView;
class BPopUpMenu;
class ToolButton;
class ProtocolSettings;
class PreferencesAccounts : public BView {
public:
PreferencesAccounts();
virtual void AttachedToWindow();
virtual void MessageReceived(BMessage* msg);
private:
BListView* fListView;
BPopUpMenu* fProtosMenu;
BButton* fDelButton;
BButton* fEditButton;
BButton* fToggleButton;
void _LoadListView(ProtocolSettings* settings);
bool _AccountEnabled(const char* account);
};
#endif // _PREFERENCES_ACCOUNTS_H