95657d52ba
* When you edit an account in the preferences dialog, this is not readded to the list anymore and so its login is not triggered another time.
38 lines
771 B
C++
38 lines
771 B
C++
/*
|
|
* 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
|
|
|
|
#include <String.h>
|
|
#include <Window.h>
|
|
|
|
class BTextControl;
|
|
|
|
class AccountView;
|
|
class ProtocolSettings;
|
|
|
|
const uint32 kAccountAdded = 'acad';
|
|
const uint32 kAccountRenamed = 'acrd';
|
|
|
|
class AccountDialog : public BWindow {
|
|
public:
|
|
AccountDialog(const char* title,
|
|
ProtocolSettings* settings,
|
|
const char* account = NULL);
|
|
|
|
void SetTarget(BHandler* target);
|
|
|
|
virtual void MessageReceived(BMessage* msg);
|
|
|
|
private:
|
|
ProtocolSettings* fSettings;
|
|
BString fAccount;
|
|
AccountView* fTop;
|
|
BTextControl* fAccountName;
|
|
BHandler* fTarget;
|
|
};
|
|
|
|
#endif // _ACCOUNT_DIALOG_H
|