author | František Kučera <franta-hg@frantovo.cz> |
Fri Mar 30 15:20:56 2012 +0200 (2012-03-30) | |
changeset 14 | 3a12bd9312b1 |
parent 4 | dfb345ef9452 |
child 15 | 9175a185d9c0 |
permissions | -rw-r--r-- |
franta-hg@0 | 1 |
package cz.frantovo.postak; |
franta-hg@0 | 2 |
|
franta-hg@4 | 3 |
import java.io.Serializable; |
franta-hg@0 | 4 |
import java.util.ArrayList; |
franta-hg@0 | 5 |
|
franta-hg@0 | 6 |
/** |
franta-hg@0 | 7 |
* |
franta-hg@0 | 8 |
* @author fiki |
franta-hg@0 | 9 |
*/ |
franta-hg@4 | 10 |
public class Nastaveni implements Serializable { |
franta-hg@0 | 11 |
|
franta-hg@5 | 12 |
private static final long serialVersionUID = -3155540704924123097L; |
franta-hg@5 | 13 |
private String postovniServer = "localhost"; |
franta-hg@5 | 14 |
private int postovniPort = 25; |
franta-hg@5 | 15 |
private String postovniJmeno; |
franta-hg@5 | 16 |
private char[] postovniHeslo; |
franta-hg@5 | 17 |
private int limitZprav = 1000; |
franta-hg@5 | 18 |
/** Připojovací řetězec */ |
franta-hg@5 | 19 |
private String databaze; |
franta-hg@5 | 20 |
private String dbJmeno; |
franta-hg@5 | 21 |
private char[] dbHeslo; |
franta-hg@5 | 22 |
/** Výchozí příjemci */ |
franta-hg@5 | 23 |
private ArrayList<InternetAddressKomu> vychoziPrijemci; |
franta-hg@5 | 24 |
/** Přejatá konstanta od SuperPošťáka */ |
franta-hg@5 | 25 |
private String cestaKCertifikatum; |
franta-hg@5 | 26 |
/** |
franta-hg@5 | 27 |
* Výchozí adresář pro ukládání a načítání souborů |
franta-hg@5 | 28 |
* např. pro souborové dialogy |
franta-hg@5 | 29 |
*/ |
franta-hg@5 | 30 |
private String pracovniAdresar; |
franta-hg@0 | 31 |
|
franta-hg@5 | 32 |
public String getPracovniAdresar() { |
franta-hg@5 | 33 |
if (pracovniAdresar == null) { |
franta-hg@5 | 34 |
return System.getProperty("user.home"); |
franta-hg@5 | 35 |
} else { |
franta-hg@5 | 36 |
return pracovniAdresar; |
franta-hg@5 | 37 |
} |
franta-hg@5 | 38 |
} |
franta-hg@0 | 39 |
|
franta-hg@5 | 40 |
public void setPracovniAdresar(String pracovniAdresar) { |
franta-hg@5 | 41 |
this.pracovniAdresar = pracovniAdresar; |
franta-hg@5 | 42 |
} |
franta-hg@0 | 43 |
|
franta-hg@5 | 44 |
public String getCestaKCertifikatum() { |
franta-hg@5 | 45 |
return cestaKCertifikatum; |
franta-hg@5 | 46 |
} |
franta-hg@0 | 47 |
|
franta-hg@5 | 48 |
public void setCestaKCertifikatum(String cestaKCertifikatum) { |
franta-hg@5 | 49 |
this.cestaKCertifikatum = cestaKCertifikatum; |
franta-hg@5 | 50 |
} |
franta-hg@0 | 51 |
|
franta-hg@5 | 52 |
public String getPostovniServer() { |
franta-hg@5 | 53 |
return postovniServer; |
franta-hg@5 | 54 |
} |
franta-hg@0 | 55 |
|
franta-hg@5 | 56 |
public void setPostovniServer(String postovniServer) { |
franta-hg@5 | 57 |
this.postovniServer = postovniServer; |
franta-hg@5 | 58 |
} |
franta-hg@0 | 59 |
|
franta-hg@5 | 60 |
public int getPostovniPort() { |
franta-hg@5 | 61 |
return postovniPort; |
franta-hg@5 | 62 |
} |
franta-hg@0 | 63 |
|
franta-hg@5 | 64 |
public void setPostovniPort(int postovniPort) { |
franta-hg@5 | 65 |
this.postovniPort = postovniPort; |
franta-hg@5 | 66 |
} |
franta-hg@0 | 67 |
|
franta-hg@5 | 68 |
public String getPostovniJmeno() { |
franta-hg@5 | 69 |
return postovniJmeno; |
franta-hg@5 | 70 |
} |
franta-hg@0 | 71 |
|
franta-hg@5 | 72 |
public void setPostovniJmeno(String postovniJmeno) { |
franta-hg@5 | 73 |
this.postovniJmeno = postovniJmeno; |
franta-hg@5 | 74 |
} |
franta-hg@0 | 75 |
|
franta-hg@5 | 76 |
public char[] getPostovniHeslo() { |
franta-hg@5 | 77 |
return postovniHeslo; |
franta-hg@5 | 78 |
} |
franta-hg@0 | 79 |
|
franta-hg@5 | 80 |
public void setPostovniHeslo(char[] postovniHeslo) { |
franta-hg@5 | 81 |
this.postovniHeslo = postovniHeslo; |
franta-hg@5 | 82 |
} |
franta-hg@0 | 83 |
|
franta-hg@5 | 84 |
public int getLimitZprav() { |
franta-hg@5 | 85 |
return limitZprav; |
franta-hg@5 | 86 |
} |
franta-hg@0 | 87 |
|
franta-hg@5 | 88 |
public void setLimitZprav(int limitZprav) { |
franta-hg@5 | 89 |
this.limitZprav = limitZprav; |
franta-hg@5 | 90 |
} |
franta-hg@0 | 91 |
|
franta-hg@5 | 92 |
public String getDatabaze() { |
franta-hg@5 | 93 |
return databaze; |
franta-hg@5 | 94 |
} |
franta-hg@0 | 95 |
|
franta-hg@5 | 96 |
public String getDbJmeno() { |
franta-hg@5 | 97 |
return dbJmeno; |
franta-hg@5 | 98 |
} |
franta-hg@0 | 99 |
|
franta-hg@5 | 100 |
public char[] getDbHeslo() { |
franta-hg@5 | 101 |
return dbHeslo; |
franta-hg@5 | 102 |
} |
franta-hg@0 | 103 |
|
franta-hg@5 | 104 |
public ArrayList<InternetAddressKomu> getVychoziPrijemci() { |
franta-hg@5 | 105 |
return vychoziPrijemci; |
franta-hg@5 | 106 |
} |
franta-hg@0 | 107 |
|
franta-hg@5 | 108 |
public void setDatabaze(String databaze) { |
franta-hg@5 | 109 |
this.databaze = databaze; |
franta-hg@5 | 110 |
} |
franta-hg@0 | 111 |
|
franta-hg@5 | 112 |
public void setDbJmeno(String dbJmeno) { |
franta-hg@5 | 113 |
this.dbJmeno = dbJmeno; |
franta-hg@5 | 114 |
} |
franta-hg@5 | 115 |
|
franta-hg@5 | 116 |
public void setDbHeslo(char[] dbHeslo) { |
franta-hg@5 | 117 |
this.dbHeslo = dbHeslo; |
franta-hg@5 | 118 |
} |
franta-hg@5 | 119 |
|
franta-hg@5 | 120 |
public void setVychoziPrijemci(ArrayList<InternetAddressKomu> vychoziPrijemci) { |
franta-hg@5 | 121 |
this.vychoziPrijemci = vychoziPrijemci; |
franta-hg@5 | 122 |
} |
franta-hg@0 | 123 |
} |