Chat-O-Matic/application/Account.h

39 lines
872 B
C
Raw Permalink Normal View History

/*
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.
* Distributed under the terms of the MIT License.
*/
#ifndef _ACCOUNT_H
#define _ACCOUNT_H
#include <Handler.h>
#include <Messenger.h>
#include <String.h>
2021-06-20 12:44:20 -05:00
#include "ChatProtocol.h"
2021-06-20 12:44:20 -05:00
class Account : public ChatProtocolMessengerInterface {
public:
2021-06-20 12:44:20 -05:00
Account(bigtime_t instanceId, ChatProtocol* cayap,
const char* name, const char* addOnSignature,
BHandler* target);
virtual ~Account();
status_t InitCheck();
bigtime_t Identifier() const;
const char* Name() const;
virtual status_t SendMessage(BMessage* message);
private:
bigtime_t fIdentifier;
2021-06-20 12:44:20 -05:00
ChatProtocol* fProtocol;
BString fName;
status_t fStatus;
BMessenger fMessenger;
BMessage* fSettings;
};
#endif // _ACCOUNT_H