[jitsi-dev] API for programatically adding XMPP / Jabber accounts?


#1

I'm making some customizations to Jitsi, and as part of it, I'd like to
create a new GUI window to let people add a jabber account.

My question is, what's the api for the JabberService for creating a new
jabber account?

Is there any method like JabberService.addAccount( username, password)
which will create a Jabber account with the default settings?

Thanks.


#2

I'm making some customizations to Jitsi, and as part of it, I'd like to
create a new GUI window to let people add a jabber account.

My question is, what's the api for the JabberService for creating a new
jabber account?

Is there any method like JabberService.addAccount( username, password) which
will create a Jabber account with the default settings?

Have a look at plugins/jabberaccregwizz/*

Thanks.

Ingo


#3

JabberAccountRegistrationWizard seems to be the class that I need, with
signin(userName, password) being the method that I need to call. However,
that method seems to check the existing GUI, e.g:

final AccountPanel accPanel
            = (AccountPanel) firstWizardPage.getSimpleForm();

String accPanelUsername = accPanel.getUsername();
if (StringUtils.isEquals(accPanelUsername, userName))
{
    //installs the account
}
else
{
    // just updates the GUI and doesn't take any action
}

Is there no way to de-couple the sign in api from the GUI, so I can build
my own GUI?

···

On Tue, Dec 2, 2014 at 12:05 PM, Ingo Bauersachs <ingo@jitsi.org> wrote:

> I'm making some customizations to Jitsi, and as part of it, I'd like to
> create a new GUI window to let people add a jabber account.
>
> My question is, what's the api for the JabberService for creating a new
> jabber account?
>
> Is there any method like JabberService.addAccount( username, password)
which
> will create a Jabber account with the default settings?

Have a look at plugins/jabberaccregwizz/*

> Thanks.

Ingo

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#4

JabberAccountRegistrationWizard seems to be the class that I need, with
signin(userName, password) being the method that I need to call. However,
that method seems to check the existing GUI, e.g:

final AccountPanel accPanel
            = (AccountPanel) firstWizardPage.getSimpleForm();
String accPanelUsername = accPanel.getUsername();

if (StringUtils.isEquals(accPanelUsername, userName))

{
    //installs the account
}
else
{
    // just updates the GUI and doesn't take any action
}

Is there no way to de-couple the sign in api from the GUI, so I can build my
own GUI?

The jabberaccregwiz is completely independent from the actual protocol. Simply use it as a reference for your own GUI.

Ingo