11c606a6 (kx 2023-04-11 01:18:34 +0300 1)
11c606a6 (kx 2023-04-11 01:18:34 +0300 2) /**********************************************************************
11c606a6 (kx 2023-04-11 01:18:34 +0300 3)
11c606a6 (kx 2023-04-11 01:18:34 +0300 4) Copyright 2019 Andrey V.Kosteltsev
11c606a6 (kx 2023-04-11 01:18:34 +0300 5)
11c606a6 (kx 2023-04-11 01:18:34 +0300 6) Licensed under the Radix.pro License, Version 1.0 (the "License");
11c606a6 (kx 2023-04-11 01:18:34 +0300 7) you may not use this file except in compliance with the License.
11c606a6 (kx 2023-04-11 01:18:34 +0300 8) You may obtain a copy of the License at
11c606a6 (kx 2023-04-11 01:18:34 +0300 9)
11c606a6 (kx 2023-04-11 01:18:34 +0300 10) https://radix.pro/licenses/LICENSE-1.0-en_US.txt
11c606a6 (kx 2023-04-11 01:18:34 +0300 11)
11c606a6 (kx 2023-04-11 01:18:34 +0300 12) Unless required by applicable law or agreed to in writing, software
11c606a6 (kx 2023-04-11 01:18:34 +0300 13) distributed under the License is distributed on an "AS IS" BASIS,
11c606a6 (kx 2023-04-11 01:18:34 +0300 14) WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
11c606a6 (kx 2023-04-11 01:18:34 +0300 15) implied.
11c606a6 (kx 2023-04-11 01:18:34 +0300 16)
11c606a6 (kx 2023-04-11 01:18:34 +0300 17) **********************************************************************/
11c606a6 (kx 2023-04-11 01:18:34 +0300 18)
11c606a6 (kx 2023-04-11 01:18:34 +0300 19) #ifndef _DIALOG_UI_H_
11c606a6 (kx 2023-04-11 01:18:34 +0300 20) #define _DIALOG_UI_H_
11c606a6 (kx 2023-04-11 01:18:34 +0300 21)
11c606a6 (kx 2023-04-11 01:18:34 +0300 22) #include <dialog.h>
11c606a6 (kx 2023-04-11 01:18:34 +0300 23)
11c606a6 (kx 2023-04-11 01:18:34 +0300 24) #ifdef __cplusplus
11c606a6 (kx 2023-04-11 01:18:34 +0300 25) extern "C" {
11c606a6 (kx 2023-04-11 01:18:34 +0300 26) #endif
11c606a6 (kx 2023-04-11 01:18:34 +0300 27)
11c606a6 (kx 2023-04-11 01:18:34 +0300 28) /*************************************************
11c606a6 (kx 2023-04-11 01:18:34 +0300 29) Ruler: 68 characters + 2 spaces left and right:
11c606a6 (kx 2023-04-11 01:18:34 +0300 30)
11c606a6 (kx 2023-04-11 01:18:34 +0300 31) | ----handy-ruler----------------------------------------------------- | */
11c606a6 (kx 2023-04-11 01:18:34 +0300 32)
11c606a6 (kx 2023-04-11 01:18:34 +0300 33) extern int info_box( const char *title, const char *message, int height, int sleep, int clear_screen );
11c606a6 (kx 2023-04-11 01:18:34 +0300 34)
11c606a6 (kx 2023-04-11 01:18:34 +0300 35) extern int info_pkg_box( const char *title, const char *pkgname, const char *pkgver, const char *priority,
11c606a6 (kx 2023-04-11 01:18:34 +0300 36) const char *message, int height, int sleep, int clear_screen );
11c606a6 (kx 2023-04-11 01:18:34 +0300 37)
11c606a6 (kx 2023-04-11 01:18:34 +0300 38) extern int ask_install_box( const char *title, const char *pkgname, const char *pkgver, const char *priority,
11c606a6 (kx 2023-04-11 01:18:34 +0300 39) const char *message, int height, int sleep, int clear_screen );
11c606a6 (kx 2023-04-11 01:18:34 +0300 40)
11c606a6 (kx 2023-04-11 01:18:34 +0300 41) extern int ask_remove_box( const char *title, const char *pkgname, const char *pkgver,
11c606a6 (kx 2023-04-11 01:18:34 +0300 42) const char *message, int height, int sleep, int clear_screen );
11c606a6 (kx 2023-04-11 01:18:34 +0300 43)
11c606a6 (kx 2023-04-11 01:18:34 +0300 44) extern int ask_reinstall_box( const char *title, const char *pkgname, const char *pkgver,
11c606a6 (kx 2023-04-11 01:18:34 +0300 45) const char *message, int height, int sleep, int clear_screen );
11c606a6 (kx 2023-04-11 01:18:34 +0300 46)
11c606a6 (kx 2023-04-11 01:18:34 +0300 47) extern int ask_update_box( const char *title, const char *pkgname, const char *pkgver, const char *priority,
11c606a6 (kx 2023-04-11 01:18:34 +0300 48) const char *message, int height, int sleep, int clear_screen );
11c606a6 (kx 2023-04-11 01:18:34 +0300 49)
11c606a6 (kx 2023-04-11 01:18:34 +0300 50) extern int select_packages_box( DIALOG_LISTITEM *items, int items_num, int sleep, int clear_screen );
11c606a6 (kx 2023-04-11 01:18:34 +0300 51)
11c606a6 (kx 2023-04-11 01:18:34 +0300 52) extern void show_install_dlg_progress( int percent );
11c606a6 (kx 2023-04-11 01:18:34 +0300 53)
11c606a6 (kx 2023-04-11 01:18:34 +0300 54)
11c606a6 (kx 2023-04-11 01:18:34 +0300 55) #ifdef __cplusplus
11c606a6 (kx 2023-04-11 01:18:34 +0300 56) } /* ... extern "C" */
11c606a6 (kx 2023-04-11 01:18:34 +0300 57) #endif
11c606a6 (kx 2023-04-11 01:18:34 +0300 58)
11c606a6 (kx 2023-04-11 01:18:34 +0300 59) #endif /* _DIALOG_UI_H_ */