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  import java.util.Date;
23  
24  /**
25   * Representation of a received fax.
26   */
27  public class ReceivedFax {
28  
29      private String callerIDName;
30      private String callerIDNumber;
31      private String dataFormat;
32  	private String directory;
33  	private String filename;
34  	private long filesize; // bytes
35  	private String lastError;
36  	private String owner;
37  	private int pageCount;
38  	private int pageLength; // mm
39  	private int pageWidth; // mm
40  	private int protectionMode;
41  	private Date receivedTime;
42  	private boolean receiving;
43  	private int resolution;
44  	private String sender;
45  	private int signallingRate;
46  	private String subAddress;
47  	private int timeSpent; // seconds
48  	
49  	public String getCallerIDName()
50  	{
51  		return callerIDName;
52  	}
53  	
54  	public String getCallerIDNumber()
55  	{
56  		return callerIDNumber;
57  	}
58  	
59  	public String getDataFormat()
60  	{
61  		return dataFormat;
62  	}
63  	
64  	public String getDirectory()
65  	{
66  		return directory;
67  	}
68  	
69  	public String getFilename()
70  	{
71  		return filename;
72  	}
73  	
74  	public long getFilesize()
75  	{
76  		return filesize;
77  	}
78  	
79  	public String getLastError()
80  	{
81  		return lastError;
82  	}
83  	
84  	public String getOwner()
85  	{
86  		return owner;
87  	}
88  	
89  	public int getPageCount()
90  	{
91  		return pageCount;
92  	}
93  	
94  	public int getPageLength()
95  	{
96  		return pageLength;
97  	}
98  	
99  	public int getPageWidth()
100 	{
101 		return pageWidth;
102 	}
103 	
104 	public int getProtectionMode()
105 	{
106 		return protectionMode;
107 	}
108 	
109 	public Date getReceivedTime()
110 	{
111 		return receivedTime;
112 	}
113 	
114 	public int getResolution()
115 	{
116 		return resolution;
117 	}
118 	
119 	public String getSender()
120 	{
121 		return sender;
122 	}
123 	
124 	public int getSignallingRate()
125 	{
126 		return signallingRate;
127 	}
128 	
129 	public String getSubAddress()
130 	{
131 		return subAddress;
132 	}
133 	
134 	public int getTimeSpent()
135 	{
136 		return timeSpent;
137 	}
138 	
139 	public boolean isReceiving()
140 	{
141 		return receiving;
142 	}
143 	
144 	public void setCallerIDName(String callerIDName)
145 	{
146 		this.callerIDName = callerIDName;
147 	}
148 	
149 	public void setCallerIDNumber(String callerIDNumber)
150 	{
151 		this.callerIDNumber = callerIDNumber;
152 	}
153 	
154 	public void setDataFormat(String dataFormat)
155 	{
156 		this.dataFormat = dataFormat;
157 	}
158 	
159 	public void setDirectory(String directory)
160 	{
161 		this.directory = directory;
162 	}
163 	
164 	public void setFilename(String filename)
165 	{
166 		this.filename = filename;
167 	}
168 	
169 	public void setFilesize(long filesize)
170 	{
171 		this.filesize = filesize;
172 	}
173 	
174 	public void setLastError(String lastError)
175 	{
176 		this.lastError = lastError;
177 	}
178 	
179 	public void setOwner(String owner)
180 	{
181 		this.owner = owner;
182 	}
183 	
184 	public void setPageCount(int pageCount)
185 	{
186 		this.pageCount = pageCount;
187 	}
188 	
189 	public void setPageLength(int pageLength)
190 	{
191 		this.pageLength = pageLength;
192 	}
193 	
194 	public void setPageWidth(int pageWidth)
195 	{
196 		this.pageWidth = pageWidth;
197 	}
198 	
199 	public void setProtectionMode(int protectionMode)
200 	{
201 		this.protectionMode = protectionMode;
202 	}
203 	
204 	public void setReceivedTime(Date receivedTime)
205 	{
206 		this.receivedTime = receivedTime;
207 	}
208 	
209 	public void setReceiving(boolean receiving)
210 	{
211 		this.receiving = receiving;
212 	}
213 	
214 	public void setResolution(int resolution)
215 	{
216 		this.resolution = resolution;
217 	}
218 	
219 	public void setSender(String sender)
220 	{
221 		this.sender = sender;
222 	}
223 
224 	public void setSignallingRate(int signallingRate)
225 	{
226 		this.signallingRate = signallingRate;
227 	}
228 
229 	public void setSubAddress(String subAddress)
230 	{
231 		this.subAddress = subAddress;
232 	}
233 	
234 	public void setTimeSpent(int timeSpent)
235 	{
236 		this.timeSpent = timeSpent;
237 	}
238 
239 }