summaryrefslogtreecommitdiffstats
path: root/abs/core/mythinstall/MythVantage-app/mythinstall/installsettings.h
blob: 3a530482ee718230ff33183ab073d4cb5eab3f97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
#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;


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 *HostSoundOssAll;
    void fillossselection();
public slots:
    void soundossgathersettings();
    void loadossdriver();
};

class SoundALSAsettings: public TriggeredConfigurationGroup {
    Q_OBJECT
public:
    SoundALSAsettings();
    HostComboBox *HostSoundALSAAll;
    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 ThisHostSoundOSSAll;
    QString OLDHostSoundOSSAll;
    QString ThisHostSoundDevice;
    QString ThisHostSoundALSAAll;
    QString OLDHostSoundALSAAll;

    QString ThisHostLCDType;
    QString ThisHostRemoteBackup;
    QString ThisHostRemoteBackupDir;
    QString ThisHostpluginmytharchive;
    QString ThisHostpluginmythbrowser;
    QString ThisHostpluginmythnetvision;
    QString ThisHostpluginmythgallery;
    QString ThisHostpluginmythgame;
    QString ThisHostpluginmythmusic;
    QString ThisHostpluginmythnews;
    QString ThisHostpluginmythweather;
    QString ThisHostpluginmythzoneminder;

    QString ThisHostpluginmythvideo_dvdcss;
    QString ThisHostpluginmythappletrailers;

    QString ThisHostwebonlinhes;
    QString ThisHostXBMC;
    QString ThisHostPLEXHT;
    QString ThisHostPLEXMS;
    QString ThisHostHuluDesktop;

    QString ThisHostpluginmythgameMame;
    QString ThisHostpluginmythgamefceux;
    QString ThisHostpluginmythgamesnes9x;
    QString ThisHostpluginmythgameMednafen;
    QString ThisHostpluginmythgameROMDB;
    QString ThisHostpluginmythgameMupen64;
    QString ThisHostpluginmythgameDolphin;
    QString ThisHostpluginmythgameXe;

    QString ThisHostwebmin;
    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