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 ProtocolSettings;
|
2021-06-18 01:13:02 -05:00
|
|
|
class TemplateView;
|
2010-05-09 01:27:48 -05:00
|
|
|
|
2010-05-29 23:28:04 -05:00
|
|
|
const uint32 kAccountAdded = 'acad';
|
|
|
|
const uint32 kAccountRenamed = 'acrd';
|
2010-05-16 16:02:50 -05:00
|
|
|
|
2010-05-09 01:27:48 -05:00
|
|
|
class AccountDialog : public BWindow {
|
|
|
|
public:
|
2010-05-20 16:31:55 -05:00
|
|
|
AccountDialog(const char* title,
|
|
|
|
ProtocolSettings* settings,
|
|
|
|
const char* account = NULL);
|
2010-05-16 16:02:50 -05:00
|
|
|
|
|
|
|
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;
|
2021-06-18 01:13:02 -05:00
|
|
|
TemplateView* fTop;
|
2010-05-09 01:27:48 -05:00
|
|
|
BTextControl* fAccountName;
|
2010-05-16 16:02:50 -05:00
|
|
|
BHandler* fTarget;
|
2010-05-09 01:27:48 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _ACCOUNT_DIALOG_H
|