Interface MediaLibraryUIDelegate

    • Method Detail

      • showOutOfMemoryMessage

        void showOutOfMemoryMessage()
        Shows appropriate out of memory error message.
      • showSeriousErrorMessage

        void showSeriousErrorMessage​(Throwable t)
        Shows appropriate serious error message.
        Parameters:
        t - throwable
      • showRetryCommunicationDialog

        boolean showRetryCommunicationDialog()
        Makes the user aware of the fact that communication with iTunes failed and ask, whether it should be tried again.
        Returns:
        true, if communication should be retried.
      • createSynchronizationProgressDialog

        JDialog createSynchronizationProgressDialog()
        Returns:
        a dialog that should implement the ProgressListener interface, if it wants to be notified of whatever progress is being made
      • metadataSources

        org.hibernate.boot.MetadataSources metadataSources​(org.hibernate.boot.MetadataSources metadataSources)
        Gives the delegate the chance to modify or replace the given configuration.
        Parameters:
        metadataSources - hibernate configuration.
        Returns:
        modified or replaced configuration
      • createDatabaseUpdateDialog

        JDialog createDatabaseUpdateDialog()
        Database update dialog.
        Returns:
        a dialog that can be shown, while we are updating the database.
      • createRebuildSearchIndexDialog

        JDialog createRebuildSearchIndexDialog()
        Full text index rebuild dialog.
        Returns:
        a dialog that can be shown, while we are rebuilding the full text index
      • createDatabaseRecoveryDialog

        JDialog createDatabaseRecoveryDialog()
        Database recovery dialog.
        Returns:
        a dialog that can be shown, while we are recovering the database.
      • showDatabaseIsCorruptDialog

        void showDatabaseIsCorruptDialog()
        Database is corrupt-dialog. To be displayed, when we
      • showSchemaEvolutionErrorMessage

        void showSchemaEvolutionErrorMessage​(Exception e)
        Display error message about a failed schema evolution.
        Parameters:
        e - exception
      • showDatabaseMigrationErrorMessage

        void showDatabaseMigrationErrorMessage​(Exception e)
        Display error message about a failed database migration.
        Parameters:
        e - exception
      • showDatabaseRecoveryErrorMessage

        boolean showDatabaseRecoveryErrorMessage​(Exception e)
        Display error message about a failed database recovery.
        Parameters:
        e - exception
        Returns:
        true, if the user wants us to delete the database
      • showSchemasDontMatchMessage

        void showSchemasDontMatchMessage​(String expected,
                                         String actual)
        Display error message about mismatching schemas.
        Parameters:
        expected - expected schema version
        actual - schema version
      • getApplicationVersion

        String getApplicationVersion()
        Version String used for the settings table.
        Returns:
        a version string for this version of the application