0
|
1 |
/*
|
|
2 |
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
package com.nokia.s60tools.creator.components.impsserver;
|
|
19 |
|
|
20 |
import java.util.LinkedHashMap;
|
|
21 |
|
|
22 |
import com.nokia.s60tools.creator.components.AbstractVariables;
|
|
23 |
|
|
24 |
/**
|
|
25 |
* Variables for IMPS server
|
|
26 |
*/
|
|
27 |
public class IMPSServerVariables extends AbstractVariables {
|
|
28 |
|
|
29 |
|
|
30 |
private static IMPSServerVariables instance;
|
|
31 |
|
|
32 |
/**
|
|
33 |
* Get Singleton instance of variables
|
|
34 |
* @return
|
|
35 |
*/
|
|
36 |
public static IMPSServerVariables getInstance() {
|
|
37 |
|
|
38 |
if(instance == null){
|
|
39 |
instance = new IMPSServerVariables();
|
|
40 |
}
|
|
41 |
|
|
42 |
return instance;
|
|
43 |
}
|
|
44 |
|
|
45 |
private IMPSServerVariables(){
|
|
46 |
init();
|
|
47 |
}
|
|
48 |
|
|
49 |
//
|
|
50 |
// Variables to show items in UI
|
|
51 |
//
|
|
52 |
public static final String NAME = "Name";
|
|
53 |
public static final String URL = "URL";
|
|
54 |
public static final String USERNAME = "Username";
|
|
55 |
public static final String PASSWORD = "Password";
|
|
56 |
public static final String CONNECTION_METHOD_NAME = "Connection method name";
|
|
57 |
|
|
58 |
private void init() {
|
|
59 |
|
|
60 |
items = new LinkedHashMap<String, String>(5);
|
|
61 |
items.put("name",NAME);
|
|
62 |
items.put("url",URL);
|
|
63 |
items.put("username",USERNAME);
|
|
64 |
items.put("password",PASSWORD);
|
|
65 |
items.put("connectionmethodname",CONNECTION_METHOD_NAME);
|
|
66 |
}
|
|
67 |
|
|
68 |
protected AbstractVariables getInstanceImpl() {
|
|
69 |
return instance;
|
|
70 |
}
|
|
71 |
|
|
72 |
}
|