435efc7c9f
* Added gtalk and facebook.
40 lines
624 B
C++
40 lines
624 B
C++
/*
|
|
* Copyright 2010, Pier Luigi Fiorini. All rights reserved.
|
|
* Distributed under the terms of the GPL v2 License.
|
|
*
|
|
* Authors:
|
|
* Pier Luigi Fiorini, pierluigi.fiorini@gmail.com
|
|
*/
|
|
|
|
#include "FacebookProtocol.h"
|
|
|
|
const char* kProtocolSignature = "facebook";
|
|
const char* kProtocolName = "Facebook";
|
|
|
|
|
|
FacebookProtocol::FacebookProtocol()
|
|
: JabberHandler()
|
|
{
|
|
}
|
|
|
|
|
|
FacebookProtocol::~FacebookProtocol()
|
|
{
|
|
}
|
|
|
|
|
|
void
|
|
FacebookProtocol::OverrideSettings()
|
|
{
|
|
fServer = "chat.facebook.com";
|
|
}
|
|
|
|
|
|
BString
|
|
FacebookProtocol::ComposeJID() const
|
|
{
|
|
BString jid(fUsername);
|
|
jid << "@" << fServer << "/" << fResource;
|
|
return jid;
|
|
}
|