aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/org/openintents/intents/FileManagerIntents.java
blob: 8ff10c80cb38d6f79db87ac2f6e892823fa1d27c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/* 
 * Copyright (C) 2008 OpenIntents.org
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.openintents.intents;

/**
 * Provides OpenIntents actions, extras, and categories used by providers. 
 * <p>These specifiers extend the standard Android specifiers.</p>
 */
public final class FileManagerIntents {

	/**
	 * Activity Action: Pick a file through the file manager, or let user
	 * specify a custom file name.
	 * Data is the current file name or file name suggestion.
	 * Returns a new file name as file URI in data.
	 * 
	 * <p>Constant Value: "org.openintents.action.PICK_FILE"</p>
	 */
	public static final String ACTION_PICK_FILE = "org.openintents.action.PICK_FILE";

	/**
	 * Activity Action: Pick a directory through the file manager, or let user
	 * specify a custom file name.
	 * Data is the current directory name or directory name suggestion.
	 * Returns a new directory name as file URI in data.
	 * 
	 * <p>Constant Value: "org.openintents.action.PICK_DIRECTORY"</p>
	 */
	public static final String ACTION_PICK_DIRECTORY = "org.openintents.action.PICK_DIRECTORY";
	
	/**
	 * Activity Action: Move, copy or delete after select entries.
     * Data is the current directory name or directory name suggestion.
     * 
     * <p>Constant Value: "org.openintents.action.MULTI_SELECT"</p>
	 */
	public static final String ACTION_MULTI_SELECT = "org.openintents.action.MULTI_SELECT";

	public static final String ACTION_SEARCH_STARTED = "org.openintents.action.SEARCH_STARTED";
	
	public static final String ACTION_SEARCH_FINISHED = "org.openintens.action.SEARCH_FINISHED";
	
	/**
	 * The title to display.
	 * 
	 * <p>This is shown in the title bar of the file manager.</p>
	 * 
	 * <p>Constant Value: "org.openintents.extra.TITLE"</p>
	 */
	public static final String EXTRA_TITLE = "org.openintents.extra.TITLE";

	/**
	 * The text on the button to display.
	 * 
	 * <p>Depending on the use, it makes sense to set this to "Open" or "Save".</p>
	 * 
	 * <p>Constant Value: "org.openintents.extra.BUTTON_TEXT"</p>
	 */
	public static final String EXTRA_BUTTON_TEXT = "org.openintents.extra.BUTTON_TEXT";

	/**
	 * Flag indicating to show only writeable files and folders.
     *
	 * <p>Constant Value: "org.openintents.extra.WRITEABLE_ONLY"</p>
	 */
	public static final String EXTRA_WRITEABLE_ONLY = "org.openintents.extra.WRITEABLE_ONLY";

	/**
	 * The path to prioritize in search. Usually denotes the path the user was on when the search was initiated.
	 * 
     * <p>Constant Value: "org.openintents.extra.SEARCH_INIT_PATH"</p>
	 */
	public static final String EXTRA_SEARCH_INIT_PATH = "org.openintents.extra.SEARCH_INIT_PATH";

	/**
	 * The search query as sent to SearchService.
	 * 
     * <p>Constant Value: "org.openintents.extra.SEARCH_QUERY"</p>
	 */
	public static final String EXTRA_SEARCH_QUERY = "org.openintents.extra.SEARCH_QUERY";

	/**
     * <p>Constant Value: "org.openintents.extra.DIR_PATH"</p>
	 */
	public static final String EXTRA_DIR_PATH = "org.openintents.extra.DIR_PATH";

	/**
	 * Extension by which to filter.
	 * 
     * <p>Constant Value: "org.openintents.extra.FILTER_FILETYPE"</p>
	 */
	public static final String EXTRA_FILTER_FILETYPE = "org.openintents.extra.FILTER_FILETYPE";
	
	/**
	 * Mimetype by which to filter.
	 * 
     * <p>Constant Value: "org.openintents.extra.FILTER_MIMETYPE"</p>
	 */
	public static final String EXTRA_FILTER_MIMETYPE = "org.openintents.extra.FILTER_MIMETYPE";
	
	/**
	 * Only show directories.
	 * 
     * <p>Constant Value: "org.openintents.extra.DIRECTORIES_ONLY"</p>
	 */
	public static final String EXTRA_DIRECTORIES_ONLY = "org.openintents.extra.DIRECTORIES_ONLY";

	public static final String EXTRA_DIALOG_FILE_HOLDER = "org.openintents.extra.DIALOG_FILE";

	public static final String EXTRA_IS_GET_CONTENT_INITIATED = "org.openintents.extra.ENABLE_ACTIONS";

	public static final String EXTRA_FILENAME = "org.openintents.extra.FILENAME";
}