Package iqq.im.module

Examples of iqq.im.module.ProcModule


      QQNotifyListener notifyListener, QQActorDispatcher actorDispatcher) {
    this.modules = new HashMap<QQModule.Type, QQModule>();
    this.services = new HashMap<QQService.Type, QQService>();

    this.modules.put(QQModule.Type.LOGIN, new LoginModule());
    this.modules.put(QQModule.Type.PROC, new ProcModule());
    this.modules.put(QQModule.Type.USER, new UserModule());
    this.modules.put(QQModule.Type.BUDDY, new BuddyModule());
    this.modules.put(QQModule.Type.CATEGORY, new CategoryModule());
    this.modules.put(QQModule.Type.GROUP, new GroupModule());
    this.modules.put(QQModule.Type.CHAT, new ChatModule());
View Full Code Here


      throw new IllegalArgumentException("client is aready online !!!");
    }

    getAccount().setStatus(status);
    getSession().setState(QQSession.State.LOGINING);
    ProcModule procModule = (ProcModule) getModule(QQModule.Type.PROC);
    return procModule.login(listener);
  }
View Full Code Here

      throw new IllegalArgumentException("client is aready online !!!");
    }
   
    getAccount().setStatus(status);
    getSession().setState(QQSession.State.LOGINING);
    ProcModule procModule = (ProcModule) getModule(QQModule.Type.PROC);
    return procModule.relogin(status, listener);
  }
View Full Code Here

  public void beginPollMsg() {
    if (session.getState() == QQSession.State.OFFLINE) {
      throw new IllegalArgumentException("client is aready offline !!!");
    }
   
    ProcModule procModule = (ProcModule) getModule(QQModule.Type.PROC);
    procModule.doPollMsg();

        // 轮询邮件
        // EmailModule emailModule = (EmailModule) getModule(QQModule.Type.EMAIL);
    // emailModule.doPoll();
  }
View Full Code Here

  public QQActionFuture logout(final QQActionListener listener) {
    if (session.getState() == QQSession.State.OFFLINE) {
      throw new IllegalArgumentException("client is aready offline !!!");
    }
   
    ProcModule procModule = (ProcModule) getModule(QQModule.Type.PROC);
    return procModule.doLogout(new QQActionListener() {
      public void onActionEvent(QQActionEvent event) {
        // 无论退出登录失败还是成功,都需要释放资源
        if (event.getType() == QQActionEvent.Type.EVT_OK
            || event.getType() == QQActionEvent.Type.EVT_ERROR) {
          session.setState(QQSession.State.OFFLINE);
View Full Code Here

  public void submitVerify(String code, QQNotifyEvent verifyEvent) {
    QQNotifyEventArgs.ImageVerify verify =
      (QQNotifyEventArgs.ImageVerify) verifyEvent.getTarget();
   
    if(verify.type==VerifyType.LOGIN){
      ProcModule mod = getModule(QQModule.Type.PROC);
      mod.loginWithVerify(code, (ProcActionFuture)verify.future);
    }
  }
View Full Code Here

TOP

Related Classes of iqq.im.module.ProcModule

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.