Package iqq.im.module

Examples of iqq.im.module.ProcModule.doLogout()


    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

TOP
Copyright © 2018 www.massapi.com. 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.