Package org.jivesoftware.smackx.muc

Examples of org.jivesoftware.smackx.muc.MultiUserChat.sendConfigurationForm()


          Form form = muc.getConfigurationForm();
          FormAnswerDialog d = new FormAnswerDialog(sShell, null, form);
          r = d.open();
          if(r != FormAnswerDialog.OK) {
            // Creating instant room
            muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));
          } else {
            muc.sendConfigurationForm(d.getResultForm());
          }
          MessageDialog.openInformation(sShell,"Successfully created Room.","Successfully created and joined room: " + froom);
        } catch (XMPPException e) {
View Full Code Here


          r = d.open();
          if(r != FormAnswerDialog.OK) {
            // Creating instant room
            muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));
          } else {
            muc.sendConfigurationForm(d.getResultForm());
          }
          MessageDialog.openInformation(sShell,"Successfully created Room.","Successfully created and joined room: " + froom);
        } catch (XMPPException e) {
          ErrorDialog.openError(sShell,"Can't Create Room","Error while trying to create room: " + e.toString(),new Status(IStatus.ERROR,GOIMPlugin.ID,IStatus.OK,"Error while creating room",e));
          e.printStackTrace();
View Full Code Here

            //System.out.println(muc);
            muc.create(chatRoom);
            // Send an empty room configuration form which indicates that we
            // want
            // an instant room
            muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));
            for (String user : users) {
                muc.invite(user, reason);
            }

            System.out.println("Created Chat Room :" + roomName + " with " + users);
View Full Code Here

      final MultiUserChat muc = new MultiUserChat(ecfConnection.getXMPPConnection(), roomID);

      if (!checkRoom(conference, roomID)) {
        // otherwise create a new one
        muc.create(nickname);
        muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));
        final String subject = (properties == null) ? null : (String) properties.get(PROP_XMPP_SUBJECT);
        if (subject != null)
          muc.changeSubject(subject);
      }
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.