aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian S <christian@pix-art.de>2016-03-05 11:02:34 +0100
committerChristian S <christian@pix-art.de>2016-03-05 11:02:34 +0100
commit1f767b4425b113e18a12c62ac1f91e7a3bd604c9 (patch)
tree7ae2e65b4e7f9415ae933dec9967fba5f02d3548 /src
parent7412b0634fb62d9cf045c9e6d70c25cffaae57d0 (diff)
reformated code
Diffstat (limited to 'src')
-rw-r--r--src/main/java/eu/siacs/conversations/entities/Transferable.java128
1 files changed, 64 insertions, 64 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Transferable.java b/src/main/java/eu/siacs/conversations/entities/Transferable.java
index 383db7b6a..1ce4d8ccf 100644
--- a/src/main/java/eu/siacs/conversations/entities/Transferable.java
+++ b/src/main/java/eu/siacs/conversations/entities/Transferable.java
@@ -4,75 +4,75 @@ import java.util.Arrays;
import java.util.List;
public interface Transferable {
- List<String> VALID_IMAGE_EXTENSIONS = Arrays.asList(
- "webp",
- "jpeg",
- "jpg",
- "png",
- "jpe",
- "gif",
- "tif"
- );
- List<String> VALID_CRYPTO_EXTENSIONS = Arrays.asList(
- "pgp",
- "gpg",
- "otr"
- );
- List<String> WELL_KNOWN_EXTENSIONS = Arrays.asList(
- //documents
- "pdf",
- "doc",
- "docx",
- "txt",
- //audio
- "m4a",
- "m4b",
- "mp3",
- "mp2",
- "wav",
- "aac",
- "aif",
- "aiff",
- "aifc",
- "mid",
- "midi",
- "3gpp",
- //video
- "avi",
- "mp4",
- "mpeg",
- "mpg",
- "mpe",
- "mov",
- "3gp",
- //applications
- "apk",
- //contact
- "vcf",
- //calendar
- "ics",
- //compressed
- "zip",
- "rar",
- );
+ List<String> VALID_IMAGE_EXTENSIONS = Arrays.asList(
+ "webp",
+ "jpeg",
+ "jpg",
+ "png",
+ "jpe",
+ "gif",
+ "tif"
+ );
+ List<String> VALID_CRYPTO_EXTENSIONS = Arrays.asList(
+ "pgp",
+ "gpg",
+ "otr"
+ );
+ List<String> WELL_KNOWN_EXTENSIONS = Arrays.asList(
+ //documents
+ "pdf",
+ "doc",
+ "docx",
+ "txt",
+ //audio
+ "m4a",
+ "m4b",
+ "mp3",
+ "mp2",
+ "wav",
+ "aac",
+ "aif",
+ "aiff",
+ "aifc",
+ "mid",
+ "midi",
+ "3gpp",
+ //video
+ "avi",
+ "mp4",
+ "mpeg",
+ "mpg",
+ "mpe",
+ "mov",
+ "3gp",
+ //applications
+ "apk",
+ //contact
+ "vcf",
+ //calendar
+ "ics",
+ //compressed
+ "zip",
+ "rar"
+ );
- int STATUS_UNKNOWN = 0x200;
- int STATUS_CHECKING = 0x201;
- int STATUS_FAILED = 0x202;
- int STATUS_OFFER = 0x203;
- int STATUS_DOWNLOADING = 0x204;
- int STATUS_DELETED = 0x205;
- int STATUS_OFFER_CHECK_FILESIZE = 0x206;
- int STATUS_UPLOADING = 0x207;
+ int STATUS_UNKNOWN = 0x200;
+ int STATUS_CHECKING = 0x201;
+ int STATUS_FAILED = 0x202;
+ int STATUS_OFFER = 0x203;
+ int STATUS_DOWNLOADING = 0x204;
+ int STATUS_DELETED = 0x205;
+ int STATUS_OFFER_CHECK_FILESIZE = 0x206;
+ int STATUS_UPLOADING = 0x207;
- boolean start();
+ boolean start();
- int getStatus();
+ int getStatus();
- long getFileSize();
+ long getFileSize();
- int getProgress();
+ int getProgress();
- void cancel();
+ void cancel();
}