mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 10:21:10 +02:00
Imageinfo: prepare functionality to show privacy policy
Note: Contents of policy files are not available with this commit. This should be done related to own conditions by provider himself. Providers are required by law to do this for their users as well. Files must be installed in: installdir = $(DATADIR)/neutrino/policy Providers should modify their buildsystem to install these files. Filename sheme is <locale>.policy. eg 'english.policy' If you want to add a policy file, take a look into sample file locale.policy.sample
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
|
||||
#include <gui/widget/menue.h>
|
||||
#include <gui/components/cc.h>
|
||||
#include <gui/buildinfo.h>
|
||||
#include <configfile.h>
|
||||
|
||||
typedef struct image_info_t
|
||||
@@ -47,7 +46,7 @@ class CImageInfo : public CMenuTarget
|
||||
{
|
||||
private:
|
||||
int item_offset; //distance between items and to boarder
|
||||
std::string license_txt;
|
||||
std::string license_txt, policy_txt, build_info_txt;
|
||||
Font* item_font;
|
||||
int item_height;
|
||||
int y_tmp;
|
||||
@@ -61,6 +60,7 @@ class CImageInfo : public CMenuTarget
|
||||
void InitBuildInfos();
|
||||
void InitInfoText(const std::string& text);
|
||||
std::string getLicenseText();
|
||||
std::string getPolicyText();
|
||||
void ShowWindow();
|
||||
void ScrollLic(bool scrollDown);
|
||||
std::string getYWebVersion();
|
||||
@@ -69,9 +69,8 @@ class CImageInfo : public CMenuTarget
|
||||
CComponentsForm *cc_info;
|
||||
CComponentsPIP *cc_tv;
|
||||
CComponentsInfoBox *cc_lic;
|
||||
CBuildInfo *b_info;
|
||||
CConfigFile config;
|
||||
CComponentsButtonRed *btn_red;
|
||||
CComponentsButton *btn_red, *btn_green;
|
||||
CComponentsLabel *cc_sub_caption;
|
||||
|
||||
public:
|
||||
@@ -81,6 +80,7 @@ class CImageInfo : public CMenuTarget
|
||||
|
||||
void hide();
|
||||
int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||
static std::string getManifest(const std::string& directory, const std::string& language, const std::string& manifest_type);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user