Class PluginState
- java.lang.Object
-
- org.openstreetmap.josm.plugins.streetside.utils.PluginState
-
public final class PluginState extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static intimagesToUploadImages that have to be uploaded.private static intimagesUploadedImages that have been uploaded.(package private) static org.apache.log4j.Loggerloggerprivate static intrunningDownloadsprivate static booleansubmittingChangeset
-
Constructor Summary
Constructors Modifier Constructor Description privatePluginState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddImagesToUpload(int amount)Sets the amount of images that are going to be uploaded.static voidfinishDownload()Called when a download is finished.private static voidfinishedUploadDialog(int numImages)static intgetImagesToUpload()static intgetImagesUploaded()static java.lang.StringgetUploadString()Returns the text to be written in the status bar.static voidimageUploaded()Called when an image is uploaded.static booleanisDownloading()Checks if there is any running download.static booleanisSubmittingChangeset()Checks if there is a changeset being submitted.static booleanisUploading()Checks if there is any running upload.static voidnotLoggedInToMapillaryDialog()static voidsetSubmittingChangeset(boolean isSubmitting)static voidstartDownload()Called when a download is started.
-
-
-
Field Detail
-
logger
static final org.apache.log4j.Logger logger
-
submittingChangeset
private static boolean submittingChangeset
-
runningDownloads
private static int runningDownloads
-
imagesToUpload
private static int imagesToUpload
Images that have to be uploaded.
-
imagesUploaded
private static int imagesUploaded
Images that have been uploaded.
-
-
Constructor Detail
-
PluginState
private PluginState()
-
-
Method Detail
-
startDownload
public static void startDownload()
Called when a download is started.
-
finishDownload
public static void finishDownload()
Called when a download is finished.
-
isDownloading
public static boolean isDownloading()
Checks if there is any running download.- Returns:
- true if the plugin is downloading; false otherwise.
-
isSubmittingChangeset
public static boolean isSubmittingChangeset()
Checks if there is a changeset being submitted.- Returns:
- true if the plugin is submitting a changeset false otherwise.
-
isUploading
public static boolean isUploading()
Checks if there is any running upload.- Returns:
- true if the plugin is uploading; false otherwise.
-
addImagesToUpload
public static void addImagesToUpload(int amount)
Sets the amount of images that are going to be uploaded.- Parameters:
amount- The amount of images that are going to be uploaded.
-
getImagesToUpload
public static int getImagesToUpload()
-
getImagesUploaded
public static int getImagesUploaded()
-
imageUploaded
public static void imageUploaded()
Called when an image is uploaded.
-
finishedUploadDialog
private static void finishedUploadDialog(int numImages)
-
notLoggedInToMapillaryDialog
public static void notLoggedInToMapillaryDialog()
-
getUploadString
public static java.lang.String getUploadString()
Returns the text to be written in the status bar.- Returns:
- The
Stringthat is going to be written in the status bar.
-
setSubmittingChangeset
public static void setSubmittingChangeset(boolean isSubmitting)
-
-