Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.filehistory
Class FileRecord

java.lang.Object
  extended by net.java.sip.communicator.service.filehistory.FileRecord

public class FileRecord
extends Object

Structure used for encapsulating data when writing or reading File History Data.

Author:
Damian Minkov

Field Summary
static String CANCELED
          Status indicating that the file transfer has been canceled.
static String COMPLETED
          Status indicating that the file transfer has been completed.
static String FAILED
          Status indicating that the file transfer has failed.
static String IN
           
static String OUT
          Possible directions of the transfer
static String REFUSED
          Status indicating that the file transfer has been refused.
 
Constructor Summary
FileRecord(String id, Contact contact, String direction, long date, File file, String status)
          Constructs new FileRecord
 
Method Summary
 Contact getContact()
          The contact.
 long getDate()
          The date of the record.
 String getDirection()
          The direction of the transfer.
 File getFile()
          The file that was transfered.
 String getID()
          The id.
 String getStatus()
          The status of the transfer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUT

public static final String OUT
Possible directions of the transfer

See Also:
Constant Field Values

IN

public static final String IN
See Also:
Constant Field Values

COMPLETED

public static final String COMPLETED
Status indicating that the file transfer has been completed.

See Also:
Constant Field Values

CANCELED

public static final String CANCELED
Status indicating that the file transfer has been canceled.

See Also:
Constant Field Values

FAILED

public static final String FAILED
Status indicating that the file transfer has failed.

See Also:
Constant Field Values

REFUSED

public static final String REFUSED
Status indicating that the file transfer has been refused.

See Also:
Constant Field Values
Constructor Detail

FileRecord

public FileRecord(String id,
                  Contact contact,
                  String direction,
                  long date,
                  File file,
                  String status)
Constructs new FileRecord

Parameters:
direction -
date -
file -
status -
Method Detail

getDirection

public String getDirection()
The direction of the transfer.

Returns:
the direction

getDate

public long getDate()
The date of the record.

Returns:
the date

getFile

public File getFile()
The file that was transfered.

Returns:
the file

getStatus

public String getStatus()
The status of the transfer.

Returns:
the status

getContact

public Contact getContact()
The contact.

Returns:
the contact

getID

public String getID()
The id.

Returns:
id.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.