1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.io;
|
---|
3 |
|
---|
4 | import java.util.Map;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.io.UploadStrategySpecification;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * Upload dialog super interface.
|
---|
10 | * @since 9685
|
---|
11 | */
|
---|
12 | public interface IUploadDialog {
|
---|
13 |
|
---|
14 | /**
|
---|
15 | * Returns true if the dialog was canceled
|
---|
16 | *
|
---|
17 | * @return true if the dialog was canceled
|
---|
18 | */
|
---|
19 | boolean isCanceled();
|
---|
20 |
|
---|
21 | /**
|
---|
22 | * Remembers the user input in the preference settings
|
---|
23 | */
|
---|
24 | void rememberUserInput();
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * Returns the current value for the upload comment
|
---|
28 | *
|
---|
29 | * @return the current value for the upload comment
|
---|
30 | */
|
---|
31 | String getUploadComment();
|
---|
32 |
|
---|
33 | /**
|
---|
34 | * Returns the current value for the changeset source
|
---|
35 | *
|
---|
36 | * @return the current value for the changeset source
|
---|
37 | */
|
---|
38 | String getUploadSource();
|
---|
39 |
|
---|
40 | /**
|
---|
41 | * Replies the {@link UploadStrategySpecification} the user entered in the dialog.
|
---|
42 | *
|
---|
43 | * @return the {@link UploadStrategySpecification} the user entered in the dialog.
|
---|
44 | */
|
---|
45 | UploadStrategySpecification getUploadStrategySpecification();
|
---|
46 |
|
---|
47 | /**
|
---|
48 | * Replies the map with the current tags in the tag editor model.
|
---|
49 | * @param keepEmpty {@code true} to keep empty tags
|
---|
50 | * @return the map with the current tags in the tag editor model.
|
---|
51 | */
|
---|
52 | Map<String, String> getTags(boolean keepEmpty);
|
---|
53 |
|
---|
54 | /**
|
---|
55 | * Handles missing comment.
|
---|
56 | */
|
---|
57 | void handleMissingComment();
|
---|
58 |
|
---|
59 | /**
|
---|
60 | * Handles missing source.
|
---|
61 | */
|
---|
62 | void handleMissingSource();
|
---|
63 |
|
---|
64 | /**
|
---|
65 | * Handles illegal chunk size.
|
---|
66 | */
|
---|
67 | void handleIllegalChunkSize();
|
---|
68 | }
|
---|