/* * 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 "GoogleTalkProtocol.h" const char* kProtocolSignature = "gtalk"; const char* kProtocolName = "GoogleTalk"; GoogleTalkProtocol::GoogleTalkProtocol() : JabberHandler() { } GoogleTalkProtocol::~GoogleTalkProtocol() { } void GoogleTalkProtocol::OverrideSettings() { fServer = "talk.google.com"; } BString GoogleTalkProtocol::ComposeJID() const { BString jid(fUsername); if (jid.FindLast("@") < 0) jid << "@gmail.com"; jid << "/" << fResource; return jid; }