/*
 * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.sip.communicator.impl.protocol.icq;

import net.kano.joustsim.*;
import net.kano.joustsim.oscar.oscar.service.ssi.*;

/**
 * Implements the buddy interface as a means of providing volatile contacts.
 *
 * @author Emil Ivov
 */
class VolatileBuddy
    implements Buddy
{
    private Screenname screenname = null;

    /**
     * Constructs a <tt>VolatileBuddy</tt> from the specified screenname.
     * @param screenname the <tt>screenname</tt> to construct the buddy from.
     */
    public VolatileBuddy(Screenname screenname)
    {
        this.screenname = screenname;
    }

    /**
     * Returns the screenname of this contact
     * @return this contact's screen name.
     */
    public String getAlias()
    {
        return screenname.getFormatted();
    }

    /**
     * Returns the screenname of this contact.
     *
     * @return the Screenname of this contact.
     */
    public Screenname getScreenname()
    {
        return screenname;
    }


    public void addBuddyListener(BuddyListener listener){}
    public int getAlertActionMask(){return 0;}
    public int getAlertEventMask(){return 0;}
    public String getAlertSound(){return "";}
    public String getBuddyComment(){return "";}
    public BuddyList getBuddyList(){return null;}
    public boolean isActive(){return false;}
    public void removeBuddyListener(BuddyListener listener){}
}
