X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/eaa0612bfaeeeddc5c4aaeda655d87a925ffcb6e..f28faf0c26d1c739d27b718690d31cd41a18046f:/src/com/owncloud/android/datamodel/OCFile.java?ds=inline diff --git a/src/com/owncloud/android/datamodel/OCFile.java b/src/com/owncloud/android/datamodel/OCFile.java index fcde054a..8c7101bb 100644 --- a/src/com/owncloud/android/datamodel/OCFile.java +++ b/src/com/owncloud/android/datamodel/OCFile.java @@ -76,6 +76,8 @@ public class OCFile implements Parcelable, Comparable { private String mEtagInConflict; // Save file etag in the server, when there is a conflict. No conflict = null + private boolean mShareWithUser; + /** * Create new {@link OCFile} with given path. @@ -120,6 +122,7 @@ public class OCFile implements Parcelable, Comparable { mNeedsUpdateThumbnail = source.readInt() == 1; mIsDownloading = source.readInt() == 1; mEtagInConflict = source.readString(); + mShareWithUser = source.readInt() == 1; } @@ -146,6 +149,7 @@ public class OCFile implements Parcelable, Comparable { dest.writeInt(mNeedsUpdateThumbnail ? 1 : 0); dest.writeInt(mIsDownloading ? 1 : 0); dest.writeString(mEtagInConflict); + dest.writeInt(mShareWithUser ? 1 : 0); } /** @@ -344,6 +348,7 @@ public class OCFile implements Parcelable, Comparable { mNeedsUpdateThumbnail = false; mIsDownloading = false; mEtagInConflict = null; + mShareWithUser = false; } /** @@ -591,4 +596,13 @@ public class OCFile implements Parcelable, Comparable { public void setEtagInConflict(String etagInConflict) { mEtagInConflict = etagInConflict; } + + public boolean isShareWithUser() { + return mShareWithUser; + } + + public void setShareWithUser(boolean shareWithUser) { + this.mShareWithUser = shareWithUser; + } + }