X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/a4ba6170ea7696e085b07adfef73eeb8b77cb8e2..5dc43aab3cc1243f9989dd6a0c7dd3350c3f709b:/src/com/owncloud/android/datamodel/DataStorageManager.java diff --git a/src/com/owncloud/android/datamodel/DataStorageManager.java b/src/com/owncloud/android/datamodel/DataStorageManager.java index a73ab66c..31515a1a 100644 --- a/src/com/owncloud/android/datamodel/DataStorageManager.java +++ b/src/com/owncloud/android/datamodel/DataStorageManager.java @@ -1,10 +1,10 @@ /* ownCloud Android client application * Copyright (C) 2012 Bartek Przybylski + * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -23,6 +23,8 @@ import java.util.Vector; public interface DataStorageManager { + public static final int ROOT_PARENT_ID = 0; + public OCFile getFileByPath(String path); public OCFile getFileById(long id); @@ -37,5 +39,11 @@ public interface DataStorageManager { public Vector getDirectoryContent(OCFile f); - public void removeFile(OCFile file); + public void removeFile(OCFile file, boolean removeLocalCopy); + + public void removeDirectory(OCFile dir, boolean removeDBData, boolean removeLocalContent); + + public void moveDirectory(OCFile dir, String newPath); + + public Vector getDirectoryImages(OCFile mParentFolder); }