Chat-O-Matic/application/AccountManager.h

38 lines
862 B
C
Raw Normal View History

/*
2011-12-03 16:38:03 -06:00
* Copyright 2009-2011, Pier Luigi Fiorini. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _ACCOUNT_MANAGER_H
#define _ACCOUNT_MANAGER_H
#include <Messenger.h>
2021-06-20 12:44:20 -05:00
#include "AppConstants.h"
#include "Notifier.h"
class AccountManager : public Notifier {
public:
static AccountManager* Get();
void SetNickname(BString nick, int64 instance = -1);
2021-06-20 12:44:20 -05:00
UserStatus Status() const;
void SetStatus(UserStatus status, int64 instance = -1);
void SetStatus(UserStatus status, const char* str,
int64 instance = -1);
void SetReplicantMessenger(BMessenger* messenger);
2021-06-20 12:44:20 -05:00
void ReplicantStatusNotify(UserStatus status,
bool wait = false);
private:
AccountManager();
~AccountManager();
2021-06-20 12:44:20 -05:00
UserStatus fStatus;
BMessenger* fReplicantMessenger;
};
#endif // _ACCOUNT_MANAGER_H