Home | History | Annotate | Download | only in ui

Lines Matching refs:folder

20 import com.android.mail.providers.Folder;
32 * Object that contains a list of folder operations (application/removals of folders)
39 * The key is the canonical name of the Folder, and the value is a boolean,
40 * when true, the Folder should be added, and when false, the Folder
51 public FolderOperations(Folder folder, boolean add) {
53 if (folder != null) {
54 add(folder, add);
56 LogUtils.e(LOG_TAG, "FolderOperation created with null Folder object");
61 * Adds an operation to the list of folder operations to be applied. The last
62 * operation for a folder will be retained in the list of operations.
63 * @param folder Folder to be applied
64 * @param add True if the folder should be applied, or false if the folder should be removed
66 public void add(Folder folder, boolean add) {
67 Operation operation = new Operation(folder, add);
69 mOperations.put(folder.name, operation);
73 * Returns true if there is an operation for the specified folder
74 * @param folder Folder
76 * the specified folder
78 public boolean hasOperation(Folder folder) {
79 return hasOperation(folder.name);
83 * Returns true if there is an operation for the specified folder
84 * @param canonicalName Canonical name of the folder
86 * the specified folder
93 * Returns true if the specified folder will be applied
94 * @param folder Folder
95 * @return Returns true if there is an operation that will apply the folder
97 public boolean hasApplyOperation(Folder folder) {
98 return hasApplyOperation(folder.name);
102 * Returns true if the specified folder will be applied
103 * @param canonicalName Canonical name of the folder
104 * @return Returns true if there is an operation that will apply the folder
115 * Returns true if the specified folder will be removed
116 * @param folder folder
117 * @return Returns true if there is an operation that will remove the folder
119 public boolean hasRemoveOperation(Folder folder) {
120 return hasRemoveOperation(folder.name);
124 * Returns true if the specified folder will be removed
125 * @param canonicalName Canonical name of the folder
126 * @return Returns true if there is an operation that will remove the folder
141 * Return the number of folder operations
163 * Returns an array of the folder operations
164 * @return Array of the folder operations to perform
179 * @return Serialized representation of the folder operations
197 * An operation that can be performed on the folder.
202 * True if the action is to include in the folder, false if the action is to remove it
203 * from the folder.
208 * The name of the folder for which the operation is performed.
210 public final Folder mFolder;
213 * Create a new operation, which is to add the message to the given folder
214 * @param folder Name of the folder.
215 * @param add true if message has to be added to the folder. False if it has to be removed
216 * from the existing folder.
218 private Operation(Folder folder, boolean add) {
219 mFolder = folder;