Package net.kano.joustsim

Examples of net.kano.joustsim.Screenname


        if(! (contact instanceof ContactIcqImpl) )
            throw new IllegalArgumentException(
                "Argument is not an icq contact (contact=" + contact + ")");
       
        icqProvider.getAimConnection().getSsiService().requestBuddyAuthorization(
            new Screenname(contact.getAddress()),
            request.getReason());
    }
View Full Code Here


        if(! (contact instanceof ContactIcqImpl) )
            throw new IllegalArgumentException(
                "Argument is not an icq contact (contact=" + contact + ")");
       
        icqProvider.getAimConnection().getSsiService().sendFutureBuddyAuthorization(
            new Screenname(contact.getAddress()),
            "");
    }
View Full Code Here

        if(! (contact instanceof ContactIcqImpl) )
            throw new IllegalArgumentException(
                "Argument is not an icq contact (contact=" + contact + ")");
       
        icqProvider.getAimConnection().getSsiService().requestBuddyAuthorization(
            new Screenname(contact.getAddress()),
            request.getReason());
    }
View Full Code Here

        if(! (contact instanceof ContactIcqImpl) )
            throw new IllegalArgumentException(
                "Argument is not an icq contact (contact=" + contact + ")");
       
        icqProvider.getAimConnection().getSsiService().sendFutureBuddyAuthorization(
            new Screenname(contact.getAddress()),
            "");
    }
View Full Code Here

    public void login(String userID, String password) throws IMException {
        DefaultAppSession session = new DefaultAppSession();

        AimSession aimSession = session.openAimSession(
                new Screenname(userID));
        aimConnection = aimSession.openConnection(
                new AimConnectionProperties(
                        new Screenname(userID)
                        , password));

        AimConnStateListener aimConnStateListener = new AimConnStateListener();
        aimConnection.addStateListener(aimConnStateListener);
        aimConnection.connect();
View Full Code Here

            throw new IMException("Unable to send message cause the IM connection is been " +
                    "disconnected");
        }
        if (loginProcessed && loggedIn) {
            ImConversation imConversation = aimConnection.getIcbmService()
                    .getImConversation(new Screenname(to));
            imConversation.open();
            imConversation.addConversationListener(new AimConversationListener());
            if (imConversation.canSendMessage()) {
                messageCount++;
                imConversation.sendMessage(new SimpleMessage(message));
View Full Code Here

    return buddyNames;
  }

  public void removeBuddy(String buddyName) {
    if (_connected && _conn != null) {
      Screenname buddyScreenName = new Screenname(buddyName);
      BuddyInfoManager buddyInfoManager = _conn.getBuddyInfoManager();
      SsiService ssiService = _conn.getSsiService();
      MutableBuddyList buddyList = ssiService.getBuddyList();
      List groups = buddyList.getGroups();
      Iterator groupsIter = groups.iterator();
View Full Code Here

  }

  public BuddyInfo _addBuddyIfNecessary(String buddyName) {
    BuddyInfo buddyInfo = null;
    if (_connected && _conn != null) {
      Screenname buddy = new Screenname(buddyName);
      BuddyInfoManager buddyInfoManager = _conn.getBuddyInfoManager();
      buddyInfo = buddyInfoManager.getBuddyInfo(buddy);
      boolean isOnBuddyList = false;
      if (buddyInfo != null) {
        isOnBuddyList = buddyInfo.isOnBuddyList();
View Full Code Here

    }
    long now = System.currentTimeMillis();
    if (wasConnected || now - _lastConnectionAttempt > (1000 * 60 * 15)) {
      _lastConnectionAttempt = now;

      Screenname sn = new Screenname(getScreenName());
      _aimSession = new DefaultAimSession(sn);
      AimConnectionProperties props = new AimConnectionProperties(sn, getPassword());
      AimConnection conn = _aimSession.openConnection(props);
      conn.addStateListener(new AimStateHandler());
      conn.connect();
View Full Code Here

TOP

Related Classes of net.kano.joustsim.Screenname

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.