|
|
|
|
@ -89,10 +89,30 @@ public Iterator getPages() {
|
|
|
|
|
*/
|
|
|
|
|
public Iterator getSummary() {
|
|
|
|
|
Hashtable summaryTable = new Hashtable();
|
|
|
|
|
|
|
|
|
|
summaryTable.put("UIN", registration.getUin());
|
|
|
|
|
summaryTable.put("Remember password",
|
|
|
|
|
new Boolean(registration.isRememberPassword()));
|
|
|
|
|
|
|
|
|
|
boolean rememberPswd = new Boolean(registration.isRememberPassword())
|
|
|
|
|
.booleanValue();
|
|
|
|
|
|
|
|
|
|
String rememberPswdString;
|
|
|
|
|
if(rememberPswd)
|
|
|
|
|
rememberPswdString = Resources.getString("yes");
|
|
|
|
|
else
|
|
|
|
|
rememberPswdString = Resources.getString("no");
|
|
|
|
|
|
|
|
|
|
summaryTable.put(Resources.getString("uin"),
|
|
|
|
|
registration.getUin());
|
|
|
|
|
summaryTable.put(Resources.getString("rememberPassword"),
|
|
|
|
|
rememberPswdString);
|
|
|
|
|
summaryTable.put(Resources.getString("registrar"),
|
|
|
|
|
registration.getServerAddress());
|
|
|
|
|
summaryTable.put(Resources.getString("serverPort"),
|
|
|
|
|
registration.getServerPort());
|
|
|
|
|
summaryTable.put(Resources.getString("proxy"),
|
|
|
|
|
registration.getProxy());
|
|
|
|
|
summaryTable.put(Resources.getString("proxyPort"),
|
|
|
|
|
registration.getProxyPort());
|
|
|
|
|
summaryTable.put(Resources.getString("preferredTransport"),
|
|
|
|
|
registration.getPreferredTransport());
|
|
|
|
|
|
|
|
|
|
return summaryTable.entrySet().iterator();
|
|
|
|
|
}
|
|
|
|
|
@ -106,8 +126,12 @@ public ProtocolProviderService finish() {
|
|
|
|
|
ProtocolProviderFactory factory
|
|
|
|
|
= SIPAccRegWizzActivator.getSIPProtocolProviderFactory();
|
|
|
|
|
|
|
|
|
|
return this.installAccount(factory,
|
|
|
|
|
ProtocolProviderService pps = null;
|
|
|
|
|
if (factory != null)
|
|
|
|
|
pps = this.installAccount(factory,
|
|
|
|
|
registration.getUin(), registration.getPassword());
|
|
|
|
|
|
|
|
|
|
return pps;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|