opkg_manager: add handling for wizard mode

Origin commit data
------------------
Branch: ni/coolstream
Commit: 1ce3d7a37f
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-04-10 (Sat, 10 Apr 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2021-04-10 22:14:39 +02:00
committed by vanhofen
parent 17358e84f7
commit b18cc3d17e
2 changed files with 34 additions and 21 deletions

View File

@@ -44,12 +44,13 @@ class COPKGManager : public CMenuTarget
{
private:
int width;
int is_wizard;
std::string tmp_str;
CConfigFile opkg_conf;
void saveConfig();
void loadConfig();
struct pkg;
void init();
void init(int wizard_mode);
bool silent; // Controls some screen messages, eg, avoids unintended or disturbing messages on update checks at background.
//config
std::string config_src[OPKG_MAX_FEEDS];
@@ -171,9 +172,10 @@ class COPKGManager : public CMenuTarget
int num_updates;
public:
COPKGManager();
COPKGManager(int wizard_mode = SNeutrinoSettings::WIZARD_OFF);
~COPKGManager();
void setWizardMode(int mode) {is_wizard = mode;}
int exec(CMenuTarget* parent, const std::string & actionKey);
static bool hasOpkgSupport();
bool checkUpdates(const std::string & package_name = std::string(), bool show_progress = false);