2010-05-07 04:47:10 -05:00
|
|
|
/*
|
2011-12-03 16:38:03 -06:00
|
|
|
* Copyright 2009-2011, Andrea Anzani. All rights reserved.
|
|
|
|
* Copyright 2009-2011, Pier Luigi Fiorini. All rights reserved.
|
2010-05-07 04:47:10 -05:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _ACCOUNT_H
|
|
|
|
#define _ACCOUNT_H
|
|
|
|
|
|
|
|
#include <Handler.h>
|
|
|
|
#include <Messenger.h>
|
2010-05-16 16:02:50 -05:00
|
|
|
#include <String.h>
|
2010-05-07 04:47:10 -05:00
|
|
|
|
|
|
|
#include "CayaProtocol.h"
|
|
|
|
|
|
|
|
class Account : public CayaProtocolMessengerInterface {
|
|
|
|
public:
|
2010-05-16 16:02:50 -05:00
|
|
|
Account(bigtime_t instanceId, CayaProtocol* cayap,
|
2021-05-21 15:52:33 -05:00
|
|
|
const char* name, const char* addOnSignature,
|
|
|
|
BHandler* target);
|
2010-05-16 16:02:50 -05:00
|
|
|
virtual ~Account();
|
2010-05-07 04:47:10 -05:00
|
|
|
|
2010-05-16 16:02:50 -05:00
|
|
|
bigtime_t Identifier() const;
|
|
|
|
const char* Name() const;
|
|
|
|
|
|
|
|
virtual status_t SendMessage(BMessage* message);
|
2010-05-07 04:47:10 -05:00
|
|
|
|
|
|
|
private:
|
2010-05-16 16:02:50 -05:00
|
|
|
bigtime_t fIdentifier;
|
|
|
|
CayaProtocol* fProtocol;
|
|
|
|
BString fName;
|
|
|
|
BMessenger fMessenger;
|
|
|
|
BMessage* fSettings;
|
2010-05-07 04:47:10 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _ACCOUNT_H
|