2010-05-09 01:27:48 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2009-2010, Pier Luigi Fiorini. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _ACCOUNT_DIALOG_H
|
|
|
|
#define _ACCOUNT_DIALOG_H
|
|
|
|
|
2010-05-16 16:02:50 -05:00
|
|
|
#include <String.h>
|
2010-05-09 01:27:48 -05:00
|
|
|
#include <Window.h>
|
|
|
|
|
|
|
|
class BTextControl;
|
|
|
|
|
|
|
|
class AccountView;
|
|
|
|
class ProtocolSettings;
|
|
|
|
|
2010-05-16 16:02:50 -05:00
|
|
|
const uint32 kAccountSaved = 'acsd';
|
|
|
|
const uint32 kAccountRenamed = 'acrd';
|
|
|
|
|
2010-05-09 01:27:48 -05:00
|
|
|
class AccountDialog : public BWindow {
|
|
|
|
public:
|
2010-05-16 16:02:50 -05:00
|
|
|
AccountDialog(const char* title, ProtocolSettings* settings,
|
|
|
|
const char* account = NULL);
|
|
|
|
|
|
|
|
void SetTarget(BHandler* target);
|
2010-05-09 01:27:48 -05:00
|
|
|
|
|
|
|
virtual void MessageReceived(BMessage* msg);
|
|
|
|
|
|
|
|
private:
|
|
|
|
ProtocolSettings* fSettings;
|
2010-05-16 16:02:50 -05:00
|
|
|
BString fAccount;
|
2010-05-09 01:27:48 -05:00
|
|
|
AccountView* fTop;
|
|
|
|
BTextControl* fAccountName;
|
2010-05-16 16:02:50 -05:00
|
|
|
BHandler* fTarget;
|
2010-05-09 01:27:48 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _ACCOUNT_DIALOG_H
|