1   /**
2    * JHylaFax - A java client for HylaFAX.
3    *
4    * Copyright (C) 2005 by Steffen Pingel <steffenp@gmx.de>
5    *
6    * This program is free software; you can redistribute it and/or modify
7    * it under the terms of the GNU General Public License as published by
8    * the Free Software Foundation; either version 2 of the License, or
9    * (at your option) any later version.
10   *
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU General Public License for more details.
15   *
16   * You should have received a copy of the GNU General Public License
17   * along with this program; if not, write to the Free Software
18   * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19   */
20  package net.sf.jhylafax.fax;
21  
22  /**
23   * Representation of a modem.
24   */
25  public class Modem {
26  	
27      private String hostname;
28      private String localIdentifier;
29      private String canonicalName;
30      private String faxNumber;
31      private int maxPagesPerCall;
32      private String status;
33      private int serverTracing;
34      private int sessionTracing;
35      private Volume speakerVolume;
36      private boolean running;
37  	
38      public enum Volume {
39      	OFF,
40      	LOW,
41      	MEDIUM,
42      	HIGH,
43      }
44      
45  	public String getCanonicalName()
46  	{
47  		return canonicalName;
48  	}
49  	
50  	public String getFaxNumber()
51  	{
52  		return faxNumber;
53  	}
54  	
55  	public String getHostname()
56  	{
57  		return hostname;
58  	}
59  	
60  	public String getLocalIdentifier()
61  	{
62  		return localIdentifier;
63  	}
64  	
65  	public int getMaxPagesPerCall()
66  	{
67  		return maxPagesPerCall;
68  	}
69  	
70  	public boolean isRunning()
71  	{
72  		return running;
73  	}
74  	
75  	public int getServerTracing()
76  	{
77  		return serverTracing;
78  	}
79  	
80  	public int getSessionTracing()
81  	{
82  		return sessionTracing;
83  	}
84  	
85  	public Volume getSpeakerVolume()
86  	{
87  		return speakerVolume;
88  	}
89  	
90  	public String getStatus()
91  	{
92  		return status;
93  	}
94  	
95  	public void setCanonicalName(String canonicalName)
96  	{
97  		this.canonicalName = canonicalName;
98  	}
99  	
100 	public void setFaxNumber(String faxNumber)
101 	{
102 		this.faxNumber = faxNumber;
103 	}
104 	
105 	public void setHostname(String hostname)
106 	{
107 		this.hostname = hostname;
108 	}
109 	
110 	public void setLocalIdentifier(String localIdentifier)
111 	{
112 		this.localIdentifier = localIdentifier;
113 	}
114 	
115 	public void setMaxPagesPerCall(int maxPagesPerCall)
116 	{
117 		this.maxPagesPerCall = maxPagesPerCall;
118 	}
119 	
120 	public void setRunning(boolean running)
121 	{
122 		this.running = running;
123 	}
124 	
125 	public void setServerTracing(int serverTracing)
126 	{
127 		this.serverTracing = serverTracing;
128 	}
129 	
130 	public void setSessionTracing(int sessionTracing)
131 	{
132 		this.sessionTracing = sessionTracing;
133 	}
134 	
135 	public void setSpeakerVolume(Volume speakerVolume)
136 	{
137 		this.speakerVolume = speakerVolume;
138 	}
139 	
140 	public void setStatus(String status)
141 	{
142 		this.status = status;
143 	}
144     
145 }