- public long getFileLength() {
- return length;
- }
-
- /**
- * Returns the ID of the parent Folder
- * @return The ID
- */
- public long getParentId() {
- return parentId;
- }
-
- /**
- * Check, if this file needs updating
- * @return
- */
- public boolean needsUpdatingWhileSaving() {
- return needsUpdating;
- }
+ public long getFileLength() {
+ return length;
+ }
+
+ /**
+ * Returns the ID of the parent Folder
+ *
+ * @return The ID
+ */
+ public long getParentId() {
+ return parentId;
+ }
+
+ /**
+ * Check, if this file needs updating
+ *
+ * @return
+ */
+ public boolean needsUpdatingWhileSaving() {
+ return needsUpdating;
+ }
+
+ @Override
+ public int describeContents() {
+ return this.hashCode();
+ }
+
+ @Override
+ public void writeToParcel(Parcel dest, int flags) {
+ dest.writeLong(id);
+ dest.writeLong(parentId);
+ dest.writeLong(length);
+ dest.writeLong(creationTimestamp);
+ dest.writeLong(modifiedTimestamp);
+ dest.writeString(remotePath);
+ dest.writeString(localPath);
+ dest.writeString(mimeType);
+ dest.writeInt(needsUpdating ? 0 : 1 ); // No writeBoolean method exists - yay :D
+ }
+