summaryrefslogtreecommitdiffstats
path: root/abs/core/mythinstall/MythVantage-app/mythinstall/installsettings.h
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2013-12-09 23:00:51 (GMT)
committerBritney Fransen <brfransen@gmail.com>2013-12-09 23:00:51 (GMT)
commit23b63734b90bb8c37d88673383002cbd210cdc99 (patch)
tree8179ce273843f1527fc515c1fd59df75d0d9c77d /abs/core/mythinstall/MythVantage-app/mythinstall/installsettings.h
parent9c7a9f742bbe8a69bdf50335e8218a45c3f28721 (diff)
downloadlinhes_pkgbuild-23b63734b90bb8c37d88673383002cbd210cdc99.zip
linhes_pkgbuild-23b63734b90bb8c37d88673383002cbd210cdc99.tar.gz
linhes_pkgbuild-23b63734b90bb8c37d88673383002cbd210cdc99.tar.bz2
mythinstall: pull in MythVantage src to LH tree.
more cleanup to many modules. access can now disable remotes and screensaver
Diffstat (limited to 'abs/core/mythinstall/MythVantage-app/mythinstall/installsettings.h')
-rwxr-xr-xabs/core/mythinstall/MythVantage-app/mythinstall/installsettings.h589
1 files changed, 589 insertions, 0 deletions
diff --git a/abs/core/mythinstall/MythVantage-app/mythinstall/installsettings.h b/abs/core/mythinstall/MythVantage-app/mythinstall/installsettings.h
new file mode 100755
index 0000000..23c00f0
--- /dev/null
+++ b/abs/core/mythinstall/MythVantage-app/mythinstall/installsettings.h
@@ -0,0 +1,589 @@
+#ifndef WELCOMESETTINGS_H
+#define WELCOMESETTINGS_H
+
+#include <settings.h>
+#include "mythdialogs.h"
+#include "libmyth/mythdialogs.h"
+#include "libmyth/mythwidgets.h"
+#include "compat-mv.h"
+
+class SystemtypeGroup: public TriggeredConfigurationGroup {
+ Q_OBJECT
+public:
+ SystemtypeGroup();
+ HostComboBox *HostSystemType;
+public slots:
+ void SystemtypeHelp();
+};
+
+//-------------------------------------------
+class NetworkSettingseth0:
+ public TriggeredConfigurationGroup {
+ Q_OBJECT
+public:
+ NetworkSettingseth0();
+
+ HostLineEdit *HostIPeth0;
+ HostComboBox *HostNETMASKeth0;
+ HostLineEdit *HostGWeth0;
+ HostLineEdit *HostDNSeth0;
+ HostCheckBox *HostActiveonbooteth0;
+ HostCheckBox *HostUseDHCPeth0 ;
+ HostCheckBox *HostDefaulteth0;
+ TransButtonSetting *wirelessbuttoneth0;
+
+signals:
+ void eth0_is_default(void);
+public slots:
+ void eth0_wireless_settings();
+ void eth0_disable_others();
+ void eth0_disabled();
+ void eth0_wireless_disable();
+};
+
+class eth0options : public ConfigurationWizard
+{
+public:
+ eth0options();
+};
+
+
+class NetworkSettingseth1:
+ public TriggeredConfigurationGroup {
+ Q_OBJECT
+public:
+ NetworkSettingseth1();
+
+ HostLineEdit *HostIPeth1;
+ HostComboBox *HostNETMASKeth1;
+ HostLineEdit *HostGWeth1;
+ HostLineEdit *HostDNSeth1;
+ HostCheckBox *HostActiveonbooteth1;
+ HostCheckBox *HostUseDHCPeth1 ;
+ HostCheckBox *HostDefaulteth1;
+ TransButtonSetting *wirelessbuttoneth1;
+signals:
+ void eth1_is_default(void);
+public slots:
+ void eth1_wireless_settings();
+ void eth1_disable_others();
+ void eth1_disabled();
+ void eth1_wireless_disable();
+};
+
+class eth1options : public ConfigurationWizard
+{
+public:
+ eth1options();
+};
+
+
+
+class NetworkSettingswlan0:
+ public TriggeredConfigurationGroup {
+ Q_OBJECT
+public:
+ NetworkSettingswlan0();
+
+ HostLineEdit *HostIPwlan0;
+ HostComboBox *HostNETMASKwlan0;
+ HostLineEdit *HostGWwlan0;
+ HostLineEdit *HostDNSwlan0;
+ HostCheckBox *HostActiveonbootwlan0;
+ HostCheckBox *HostUseDHCPwlan0 ;
+ HostCheckBox *HostDefaultwlan0;
+ TransButtonSetting *wirelessbuttonwlan0;
+signals:
+ void wlan0_is_default(void);
+public slots:
+ void wlan0_wireless_settings();
+ void wlan0_disable_others();
+ void wlan0_disabled();
+ void wlan0_wireless_disable();
+};
+
+class Wlan0options : public ConfigurationWizard
+{
+public:
+ Wlan0options();
+};
+
+
+class NetworkSettingswlan1:
+ public TriggeredConfigurationGroup {
+ Q_OBJECT
+public:
+ NetworkSettingswlan1();
+
+ HostLineEdit *HostIPwlan1;
+ HostComboBox *HostNETMASKwlan1;
+ HostLineEdit *HostGWwlan1;
+ HostLineEdit *HostDNSwlan1;
+ HostCheckBox *HostActiveonbootwlan1;
+ HostCheckBox *HostUseDHCPwlan1 ;
+ HostCheckBox *HostDefaultwlan1;
+ TransButtonSetting *wirelessbuttonwlan1;
+signals:
+ void wlan1_is_default(void);
+public slots:
+ void wlan1_wireless_settings();
+ void wlan1_disable_others();
+ void wlan1_disabled();
+ void wlan1_wireless_disable();
+};
+
+class wlan1options : public ConfigurationWizard
+{
+public:
+ wlan1options();
+};
+
+
+
+class NetworkSettingsath0:
+ public TriggeredConfigurationGroup {
+ Q_OBJECT
+public:
+ NetworkSettingsath0();
+
+ HostLineEdit *HostIPath0;
+ HostComboBox *HostNETMASKath0;
+ HostLineEdit *HostGWath0;
+ HostLineEdit *HostDNSath0;
+ HostCheckBox *HostActiveonbootath0;
+ HostCheckBox *HostUseDHCPath0 ;
+ HostCheckBox *HostDefaultath0;
+ TransButtonSetting *wirelessbuttonath0;
+signals:
+ void ath0_is_default(void);
+public slots:
+ void ath0_wireless_settings();
+ void ath0_disable_others();
+ void ath0_disabled();
+ void ath0_wireless_disable();
+};
+
+class ath0options : public ConfigurationWizard
+{
+public:
+ ath0options();
+};
+
+class NetworkOptionsFrame: public VerticalConfigurationGroup {
+ Q_OBJECT
+public:
+ NetworkOptionsFrame();
+ TransButtonSetting *FetchDhcpHostnameButton;
+ TransLabelSetting *networklabel;
+ HostComboBox *HostMyhostname;
+ QString find_hostname();
+public slots:
+ void fetch_hostname();
+};
+
+
+//--------------------------------------------
+
+
+class SoundSettings: public TriggeredConfigurationGroup {
+ Q_OBJECT
+public:
+ SoundSettings();
+ HostComboBox *HostAudiotype;
+ HostCheckBox *HostsyncXine;
+ HostCheckBox *HostsyncMplayer;
+ HostCheckBox *HostsyncMythMusic;
+ HostCheckBox *HostsyncMythFrontend;
+
+
+signals:
+ void oss_sig(void);
+ void alsa_sig(void);
+public slots:
+ void soundossgathersettings_1();
+ void soundalsagathersettings_1();
+
+};
+
+
+class SoundOSSsettings: public TriggeredConfigurationGroup {
+ Q_OBJECT
+public:
+ SoundOSSsettings();
+ HostComboBox *HostSoundOssAnalog;
+ HostComboBox *HostSoundOssDigital;
+ HostComboBox *HostSoundTypeout;
+ void fillossselection();
+public slots:
+ void soundossgathersettings();
+ void loadossdriver();
+};
+
+class SoundALSAsettings: public TriggeredConfigurationGroup {
+ Q_OBJECT
+public:
+ SoundALSAsettings();
+ HostComboBox *HostSoundALSAAnalog;
+ HostComboBox *HostSoundALSADigital;
+ HostComboBox *HostSoundALSATypeout;
+ void fillALSAselection();
+public slots:
+ void soundalsagathersettings();
+ void loadalsadriver();
+
+};
+
+
+//############################################
+class MythInstallSettings: public ConfigurationWizard
+{
+
+public:
+ MythInstallSettings();
+ void testme();
+private:
+ MythPopupBox *popup;
+
+};
+/*
+#include "mythstorage.h"
+
+class MPUBLIC ImageSelectSetting: public SelectSetting {
+ Q_OBJECT
+public:
+ ImageSelectSetting(Storage *_storage) :
+ SelectSetting(_storage),
+ bxwidget(NULL), imagelabel(NULL), combo(NULL),
+ m_hmult(1.0f), m_wmult(1.0f) { }
+ virtual QWidget* configWidget(ConfigurationGroup *cg, QWidget* parent,
+ const char* widgetName = 0);
+ virtual void widgetInvalid(QObject *obj);
+ virtual void deleteLater(void);
+ virtual void setHelpText(const QString &str);
+
+ virtual void addImageSelection(const QString& label,
+ QImage* image,
+ QString value=QString::null,
+ bool select=false);
+
+protected slots:
+ void imageSet(int);
+
+protected:
+ void Teardown(void);
+ virtual ~ImageSelectSetting();
+
+protected:
+ vector<QImage*> images;
+ QWidget *bxwidget;
+ QLabel *imagelabel;
+ MythComboBox *combo;
+ float m_hmult, m_wmult;
+};
+
+
+class MPUBLIC HostImageSelect : public ImageSelectSetting, public HostDBStorage
+{
+public:
+ HostImageSelect(const QString &name) :
+ ImageSelectSetting(this), HostDBStorage(this, name) { }
+};*/
+
+
+class HostRemoteType: public HostImageSelect {
+public:
+ HostRemoteType();
+};
+
+
+
+#define MV_ROOT "/usr/MythVantage/"
+int runsettings(bool = false , bool = false , bool = false ,bool = false ,bool = false, bool = false,bool = false,bool = false , bool = false , bool = false , bool = false, bool = false , bool = false , bool = false , bool = false, bool = false , bool = false , bool = false , bool = false, bool = false);
+//void ReadDDCifno(void);
+void run_systemconfig(QString,bool = false,QString = "");
+void writesettings();
+
+//void testXconfiguration();
+
+
+
+
+
+struct HostParms
+{
+
+ QString language;
+ QString ThisHostName;
+ //QString ThisHostDHCPhostname;
+
+ QString ThisHostIP;
+ QString ThisNETMASK;
+ QString ThisGW;
+ QString ThisDNS;
+ QString ThisDHCP;
+ QString ThisHostnetOLD;
+ QString ThisHostnetActiveOLD;
+
+ QString ThisHostDefaultInterface;
+ QString ThisHostIPeth0;
+ QString ThisHostNETMASKeth0;
+ QString ThisHostDNSeth0;
+ QString ThisHostUSEDHCPeth0;
+ QString ThisHostGWeth0;
+ QString ThisHOST_iswirelesseth0;
+ QString ThisHostActiveonbooteth0;
+ QString ThisHOSTESSIDeth0;
+ QString ThisHostUseEncryptioneth0;
+ QString ThisHostkeyeth0;
+ QString ThisHostMTUeth0;
+
+
+ QString ThisHostIPeth1;
+ QString ThisHostNETMASKeth1;
+ QString ThisHostDNSeth1;
+ QString ThisHostUSEDHCPeth1;
+ QString ThisHostGWeth1;
+ QString ThisHostActiveonbooteth1 ;
+ QString ThisHOST_iswirelesseth1;
+ QString ThisHOSTESSIDeth1;
+ QString ThisHostUseEncryptioneth1;
+ QString ThisHostkeyeth1;
+ QString ThisHostMTUeth1;
+
+ QString ThisHostIPwlan0;
+ QString ThisHostNETMASKwlan0;
+ QString ThisHostDNSwlan0;
+ QString ThisHostUSEDHCPwlan0;
+ QString ThisHostGWwlan0;
+ QString ThisHostActiveonbootwlan0;
+ QString ThisHOST_iswirelesswlan0;
+ QString ThisHOSTESSIDwlan0;
+ QString ThisHostUseEncryptionwlan0;
+ QString ThisHostkeywlan0;
+ QString ThisHostMTUwlan0;
+
+
+ QString ThisHostIPwlan1;
+ QString ThisHostNETMASKwlan1;
+ QString ThisHostDNSwlan1;
+ QString ThisHostUSEDHCPwlan1;
+ QString ThisHostGWwlan1;
+ QString ThisHostActiveonbootwlan1;
+ QString ThisHOST_iswirelesswlan1;
+ QString ThisHOSTESSIDwlan1;
+ QString ThisHostUseEncryptionwlan1;
+ QString ThisHostkeywlan1;
+ QString ThisHostMTUwlan1;
+
+ QString ThisHostIPath0;
+ QString ThisHostNETMASKath0;
+ QString ThisHostDNSath0;
+ QString ThisHostUSEDHCPath0;
+ QString ThisHostGWath0;
+ QString ThisHostActiveonbootath0;
+ QString ThisHOST_iswirelessath0;
+ QString ThisHOSTESSIDath0;
+ QString ThisHostUseEncryptionath0;
+ QString ThisHostkeyath0;
+ QString ThisHostMTUath0;
+
+
+ QString ThisRemote;
+ QString ThisHostRemotebucket;
+
+ QString ThisTimeZone;
+ QString ThisSamba;
+ QString ThisHostServiceSamba_media;
+ QString ThisHostServiceSamba_home;
+ QString ThisHostServiceSamba_writehome;
+ QString ThisHostServiceSamba_write;
+ QString ThisHostServiceSamba_domain;
+ QString ThisNFS;
+ QString ThisMythWEB;
+ QString ThisHostwebauth;
+ // QString ThisHostServiceHobbit;
+ // QString ThisHostServiceRRD;
+
+ QString ThisHostRunDHCP;
+ QString ThisSystemType;
+// QString ThisBlaster;
+
+ QString ThisHostTransmitproto_1;
+ QString ThisHostTransmitproto_2;
+ QString ThisHostTransmitproto_3;
+ QString ThisHostTransmitproto_4;
+ QString ThisHostBlasterType;
+ QString ThisHostSerialPort_blasterlirc;
+ QString ThisHostnumblaster;
+ QString ThisHostTransmitDelay_1;
+ QString ThisHostTransmitSend_after_1;
+ QString ThisHostTransmitDelay_2;
+ QString ThisHostTransmitSend_after_2;
+ QString ThisHostTransmitDelay_3;
+ QString ThisHostTransmitSend_after_3;
+ QString ThisHostTransmitDelay_4;
+ QString ThisHostTransmitSend_after_4;
+
+
+
+
+
+
+
+ QString ThisReceiverType;
+ QString ThisHDHRlirc_device;
+ QString ThisHostLircWait;
+ QString ThisHostSerialPortlirc;
+ QString ThisHostUseEvrouter;
+ QString ThisHostEvrouterConfig;
+ QString ThisDBhost;
+ QString ThisXres;
+
+
+
+ QString ThisHostBEWait;
+ QString ThisHostUseXLargeMouse;
+ QString ThisShutdowntime;
+ QString ThisShutdowntime2;
+ QString ThisWakeuptime;
+ QString ThisAutodown;
+ QString ThisUseNVRAM;
+ QString ThisUseWOL;
+ QString ThisKeepPackage;
+ QString ThisMythWelcome;
+ QString ThisHaveNFS;
+ QString ThisNFSserver;
+ QString ThisNFSmountpoint;
+ QString ThisHostCentralNFSallhosts;
+ QString ThisHostupdateplan;
+ // QString ThisOSS;
+ QString ThisShowToolTips;
+ // QString ThisHostPKG_MIRROR;
+ QString ThisRunfrontend;
+ QString ThisHostZipcode;
+ QString ThisHostncidClient;
+ QString ThisHostncidDaemon;
+ QString ThisHostSerialPortncid;
+ QString ThisHostNcidDeviceNetCallerID;
+
+ QString ThisHostbootsplash;
+ QString ThisXIgnoreConfig;
+ QString ThisXcardtype;
+ QString ThisXUseAdvanced;
+ QString ThisXIgnoreEDID;
+ QString ThisXconnection;
+ QString ThisXHsync;
+ QString ThisXVrefresh;
+ QString ThisXresadvanced;
+ QString ThisXTVstandard;
+ QString ThisXTVconnection;
+ QString ThisXDisplaysize ;
+
+ QString ThisHostXNvidia1080p;
+ QString ThisHostXNvidia1080i;
+ QString ThisHostXNvidia720p;
+ QString ThisHostXNvidia480p;
+ QString ThisHostAudiotype;
+
+ QString ThisHostSoundTypeout;
+ QString ThisHostSoundOSSAnalog;
+ QString OLDHostSoundOSSAnalog;
+ QString ThisHostSoundOSSDigital;
+ QString OLDHostSoundOSSDigital;
+
+ QString ThisHostSoundDigital;
+ QString ThisHostSoundDevice;
+
+ QString ThisHostSoundALSAAnalog;
+ QString OLDHostSoundALSAAnalog;
+ QString ThisHostSoundALSADigital;
+ QString OLDHostSoundALSADigital;
+ QString ThisHostSoundALSATypeout;
+
+
+ QString ThisHostsyncXine;
+ QString ThisHostsyncMplayer;
+ QString ThisHostsyncMythMusic;
+ QString ThisHostsyncMythFrontend;
+ QString ThisHostLCDType;
+ QString ThisHostRemoteBackup;
+ QString ThisHostRemoteBackupDir;
+ QString ThisHostpluginmytharchive;
+ QString ThisHostpluginmythbrowser;
+ QString ThisHostpluginmythcontrols;
+ QString ThisHostpluginmythnetvision;
+ QString ThisHostpluginmythgallery;
+ QString ThisHostpluginmythgame;
+ QString ThisHostpluginmythmovietime;
+ QString ThisHostpluginmythmusic;
+ QString ThisHostpluginmythnews;
+ QString ThisHostpluginmythphone;
+ QString ThisHostpluginmythsmolt;
+ QString ThisHostpluginmythvideo;
+ QString ThisHostpluginmythweather;
+ QString ThisHostpluginmythzoneminder;
+
+
+
+ QString ThisHostpluginmythvideo_dvdcss;
+ QString ThisHostpluginmythappletrailers;
+ QString ThisHostpluginmythstream;
+ QString ThisHostpluginmythvodka;
+
+ QString ThisHostMiro;
+ QString ThisHostwebonlinhes;
+ QString ThisHostHuluDesktop;
+
+ QString ThisHostpluginmythgameMame;
+ QString ThisHostpluginmythgamefceux;
+ QString ThisHostpluginmythgamesnes9x;
+ QString ThisHostpluginmythgameMednafen;
+ QString ThisHostpluginmythgameROMDB;
+ QString ThisHostpluginmythgameMupen64;
+ QString ThisHostpluginmythgameDolphin;
+ QString ThisHostpluginmythgameXe;
+
+// QString ThisHostXine;
+// QString ThisHostwebmin;
+// QString ThisHostfuppes;
+ QString ThisHostfoldingathome;
+ QString ThisHostfoldingusername;
+ QString ThisHostfoldingworksize;
+
+ QString ThisHostDDnslogin;
+ QString ThisHostDDnspassword;
+ QString ThisHostDDnshostname;
+ QString ThisHostDDnsEnable;
+ QString ThisHostscreensavertype;
+ QString ThisHostscreensaveridle;
+ QString ThisHostscreensavertheme;
+ QString ThisHOSTrootSSH;
+ bool displayshowadvancedX;
+
+ // supplemental
+ QString ThisHostSupplemental;
+ QString ThisHostWindowManager;
+ QString ThisHostEnhancedWMStyle;
+
+ //VNC
+ QString ThisHostVNCEnable;
+ QString ThisHostVNCpassword;
+ QString ThisHostXVNCEnable;
+ QString ThisHostXVNCpassword;
+
+};
+
+struct DDCinfo
+{
+ QString XVrefresh;
+ QString XHsync;
+ QString Displaysize;
+};
+
+
+
+
+
+
+
+#endif