2010-05-07 04:47:10 -05:00
|
|
|
/*
|
|
|
|
* 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;
|
2010-05-08 14:35:28 -05:00
|
|
|
class BListView;
|
|
|
|
class BPopUpMenu;
|
|
|
|
|
|
|
|
class ProtocolSettings;
|
2010-05-07 04:47:10 -05:00
|
|
|
|
2021-06-11 20:33:28 -05:00
|
|
|
|
2010-05-07 04:47:10 -05:00
|
|
|
class PreferencesAccounts : public BView {
|
|
|
|
public:
|
|
|
|
PreferencesAccounts();
|
|
|
|
|
|
|
|
virtual void AttachedToWindow();
|
|
|
|
virtual void MessageReceived(BMessage* msg);
|
|
|
|
|
|
|
|
private:
|
|
|
|
BListView* fListView;
|
2010-05-08 14:35:28 -05:00
|
|
|
BPopUpMenu* fProtosMenu;
|
2021-05-30 22:04:45 -05:00
|
|
|
BButton* fDelButton;
|
|
|
|
BButton* fEditButton;
|
2021-06-11 20:33:28 -05:00
|
|
|
BButton* fToggleButton;
|
2010-05-08 14:35:28 -05:00
|
|
|
|
|
|
|
void _LoadListView(ProtocolSettings* settings);
|
2021-08-05 19:28:05 -05:00
|
|
|
|
|
|
|
void _DisableAccount(const char* account, int64 instance);
|
|
|
|
void _EnableAccount(const char* account,
|
|
|
|
ProtocolSettings* settings);
|
|
|
|
|
|
|
|
int64 _AccountInstance(const char* account);
|
2010-05-07 04:47:10 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _PREFERENCES_ACCOUNTS_H
|