X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/eaa0612bfaeeeddc5c4aaeda655d87a925ffcb6e..8e3d7bdc8f3820b15d32a722737b4e063036b1b6:/src/com/owncloud/android/datamodel/OCFile.java?ds=sidebyside diff --git a/src/com/owncloud/android/datamodel/OCFile.java b/src/com/owncloud/android/datamodel/OCFile.java index fcde054a..4b689860 100644 --- a/src/com/owncloud/android/datamodel/OCFile.java +++ b/src/com/owncloud/android/datamodel/OCFile.java @@ -75,6 +75,7 @@ public class OCFile implements Parcelable, Comparable { private boolean mIsDownloading; private String mEtagInConflict; // Save file etag in the server, when there is a conflict. No conflict = null + private boolean mShareWithUser; /** @@ -120,6 +121,7 @@ public class OCFile implements Parcelable, Comparable { mNeedsUpdateThumbnail = source.readInt() == 1; mIsDownloading = source.readInt() == 1; mEtagInConflict = source.readString(); + mShareWithUser = source.readInt() == 1; } @@ -146,6 +148,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 +347,7 @@ public class OCFile implements Parcelable, Comparable { mNeedsUpdateThumbnail = false; mIsDownloading = false; mEtagInConflict = null; + mShareWithUser = false; } /** @@ -591,4 +595,12 @@ 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; + } }