5 kx
5 kx /**********************************************************************
5 kx
5 kx Copyright 2019 Andrey V.Kosteltsev
5 kx
9 kx Licensed under the Radix cross Linux License, Version 1.0 .
5 kx you may not use this file except in compliance with the License.
5 kx You may obtain a copy of the License at
5 kx
9 kx https://radix-linux.su/licenses/LICENSE-1.0-en_US.txt
5 kx
5 kx Unless required by applicable law or agreed to in writing, software
5 kx distributed under the License is distributed on an "AS IS" BASIS,
5 kx WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
5 kx implied.
5 kx
5 kx **********************************************************************/
5 kx
5 kx #ifndef _DIALOG_UI_H_
5 kx #define _DIALOG_UI_H_
5 kx
5 kx #include <dialog.h>
5 kx
5 kx #ifdef __cplusplus
5 kx extern "C" {
5 kx #endif
5 kx
5 kx /*************************************************
5 kx Ruler: 68 characters + 2 spaces left and right:
5 kx
5 kx | ----handy-ruler----------------------------------------------------- | */
5 kx
5 kx extern int info_box( const char *title, const char *message, int height, int sleep, int clear_screen );
5 kx
5 kx extern int info_pkg_box( const char *title, const char *pkgname, const char *pkgver, const char *priority,
5 kx const char *message, int height, int sleep, int clear_screen );
5 kx
5 kx extern int ask_install_box( const char *title, const char *pkgname, const char *pkgver, const char *priority,
5 kx const char *message, int height, int sleep, int clear_screen );
5 kx
5 kx extern int ask_remove_box( const char *title, const char *pkgname, const char *pkgver,
5 kx const char *message, int height, int sleep, int clear_screen );
5 kx
5 kx extern int ask_reinstall_box( const char *title, const char *pkgname, const char *pkgver,
5 kx const char *message, int height, int sleep, int clear_screen );
5 kx
5 kx extern int ask_update_box( const char *title, const char *pkgname, const char *pkgver, const char *priority,
5 kx const char *message, int height, int sleep, int clear_screen );
5 kx
5 kx extern int select_packages_box( DIALOG_LISTITEM *items, int items_num, int sleep, int clear_screen );
5 kx
5 kx extern void show_install_dlg_progress( int percent );
5 kx
5 kx
5 kx #ifdef __cplusplus
5 kx } /* ... extern "C" */
5 kx #endif
5 kx
5 kx #endif /* _DIALOG_UI_H_ */