X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/3515ab160c2b99c2d8099f0cdc67b036ef11a752..115268008e337fa9aa82a8b769ca0da4586412f8:/src/com/owncloud/android/datamodel/OCFile.java diff --git a/src/com/owncloud/android/datamodel/OCFile.java b/src/com/owncloud/android/datamodel/OCFile.java index cf25d278..222746b5 100644 --- a/src/com/owncloud/android/datamodel/OCFile.java +++ b/src/com/owncloud/android/datamodel/OCFile.java @@ -70,6 +70,9 @@ public class OCFile implements Parcelable, Comparable { private boolean mNeedsUpdateThumbnail; + private boolean mIsDownloading; + private boolean mIsUploading; + /** * Create new {@link OCFile} with given path. @@ -112,6 +115,8 @@ public class OCFile implements Parcelable, Comparable { mPermissions = source.readString(); mRemoteId = source.readString(); mNeedsUpdateThumbnail = source.readInt() == 0; + mIsDownloading = source.readInt() == 0; + mIsUploading = source.readInt() == 0; } @@ -136,6 +141,8 @@ public class OCFile implements Parcelable, Comparable { dest.writeString(mPermissions); dest.writeString(mRemoteId); dest.writeInt(mNeedsUpdateThumbnail ? 1 : 0); + dest.writeInt(mIsDownloading ? 1 : 0); + dest.writeInt(mIsUploading ? 1 : 0); } /** @@ -348,6 +355,8 @@ public class OCFile implements Parcelable, Comparable { mPermissions = null; mRemoteId = null; mNeedsUpdateThumbnail = false; + mIsDownloading = false; + mIsUploading = false; } /** @@ -562,4 +571,20 @@ public class OCFile implements Parcelable, Comparable { this.mRemoteId = remoteId; } + public boolean isDownloading() { + return mIsDownloading; + } + + public boolean isUploading() { + return mIsUploading; + } + + public void setUploading(boolean isUploading) { + this.mIsUploading = isUploading; + } + + public void setDownloading(boolean isDownloading) { + this.mIsDownloading = isDownloading; + } + }