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 _ACCOUNT_LIST_ITEM_H
|
|
|
|
#define _ACCOUNT_LIST_ITEM_H
|
|
|
|
|
|
|
|
#include <String.h>
|
|
|
|
#include <StringItem.h>
|
|
|
|
|
|
|
|
class ProtocolSettings;
|
|
|
|
|
|
|
|
class AccountListItem : public BStringItem {
|
|
|
|
public:
|
2010-05-16 16:02:50 -05:00
|
|
|
AccountListItem(ProtocolSettings* settings,
|
2010-05-07 04:47:10 -05:00
|
|
|
const char* account);
|
|
|
|
virtual ~AccountListItem();
|
|
|
|
|
|
|
|
ProtocolSettings* Settings() const;
|
2010-05-16 16:02:50 -05:00
|
|
|
|
2010-05-07 04:47:10 -05:00
|
|
|
const char* Account() const;
|
2010-05-16 16:02:50 -05:00
|
|
|
void SetAccount(const char* name);
|
2010-05-07 04:47:10 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
ProtocolSettings* fSettings;
|
2010-05-16 16:02:50 -05:00
|
|
|
BString fAccount;
|
2010-05-07 04:47:10 -05:00
|
|
|
float fBaselineOffset;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _ACCOUNT_LIST_ITEM_H
|