|
|
|
|
@ -8,11 +8,11 @@
|
|
|
|
|
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
import org.osgi.framework.*;
|
|
|
|
|
import net.java.sip.communicator.service.configuration.*;
|
|
|
|
|
import net.java.sip.communicator.service.gui.*;
|
|
|
|
|
import net.java.sip.communicator.service.protocol.*;
|
|
|
|
|
|
|
|
|
|
import org.osgi.framework.*;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The <tt>IcqAccountRegistrationWizard</tt> is an implementation of the
|
|
|
|
|
* <tt>AccountRegistrationWizard</tt> for the ICQ protocol. It should allow
|
|
|
|
|
@ -29,13 +29,8 @@ public class IcqAccountRegistrationWizard implements AccountRegistrationWizard {
|
|
|
|
|
|
|
|
|
|
private WizardContainer wizardContainer;
|
|
|
|
|
|
|
|
|
|
ConfigurationService configService
|
|
|
|
|
= IcqAccRegWizzActivator.getConfigurationService();
|
|
|
|
|
|
|
|
|
|
private ProtocolProviderService protocolProvider;
|
|
|
|
|
|
|
|
|
|
private String propertiesPackage = "net.java.sip.communicator.plugin.icqaccregwizz";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Creates an instance of <tt>IcqAccountRegistrationWizard</tt>.
|
|
|
|
|
* @param wizardContainer the wizard container, where this wizard
|
|
|
|
|
@ -132,12 +127,7 @@ public ProtocolProviderService installAccount(
|
|
|
|
|
|
|
|
|
|
AccountID accountID = providerFactory.installAccount(
|
|
|
|
|
user, accountProperties);
|
|
|
|
|
|
|
|
|
|
configService.setProperty(
|
|
|
|
|
propertiesPackage + ".REMEMBER_PASSWORD",
|
|
|
|
|
new Boolean(registration.isRememberPassword())
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ServiceReference serRef = providerFactory
|
|
|
|
|
.getProviderForAccount(accountID);
|
|
|
|
|
|
|
|
|
|
@ -158,12 +148,6 @@ public void loadAccount(ProtocolProviderService protocolProvider) {
|
|
|
|
|
|
|
|
|
|
this.protocolProvider = protocolProvider;
|
|
|
|
|
|
|
|
|
|
boolean rememberPassword
|
|
|
|
|
= new Boolean(configService
|
|
|
|
|
.getString(propertiesPackage + ".REMEMBER_PASSWORD"))
|
|
|
|
|
.booleanValue();
|
|
|
|
|
|
|
|
|
|
this.firstWizardPage.loadAccount(
|
|
|
|
|
protocolProvider, rememberPassword);
|
|
|
|
|
this.firstWizardPage.loadAccount(protocolProvider);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|