/* * This file is part of VLCJ. * * VLCJ is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VLCJ is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with VLCJ. If not, see <http://www.gnu.org/licenses/>. * * Copyright 2009-2016 Caprica Software Limited. */ package uk.co.caprica.vlcj.binding.internal; import com.sun.jna.Callback; import com.sun.jna.Pointer; /** * */ public interface display_progress extends Callback { /** * Called when a progress dialog needs to be displayed * <p> * If cancellable (psz_cancel != NULL), you can cancel this dialog by * calling libvlc_dialog_dismiss() * <p> * <em>to receive this callack, libvlc_dialog_cbs.pf_cancel and * libvlc_dialog_cbs.pf_update_progress should not be NULL.</em> * * @param p_data opaque pointer for the callback * @param p_id id used to interact with the dialog * @param psz_title title of the diaog * @param psz_text text of the dialog * @param b_indeterminate true if the progress dialog is indeterminate * @param f_position initial position of the progress bar (between 0.0 and 1.0) * @param psz_cancel text of the cancel button, if NULL the dialog is not cancellable */ void display_progress(Pointer p_data, Pointer p_id, String psz_title, String psz_text, int b_indeterminate, float f_position, String psz_cancel); }