dcc5e443d3
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.
39 lines
734 B
C++
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
|
|
|