MagicSmoke  $VERSION$
configdialog.h
Go to the documentation of this file.
1 //
2 // C++ Interface: mainwindow
3 //
4 // Description:
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2007-2011
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MAGICSMOKE_CONFIGDIALOG_H
14 #define MAGICSMOKE_CONFIGDIALOG_H
15 
16 #include <QDialog>
17 #include <QList>
18 #include <QSslError>
19 
20 class QCheckBox;
21 class QLineEdit;
22 class QListView;
23 class QNetworkReply;
24 class QSpinBox;
25 class QStandardItemModel;
26 class QTableView;
27 
28 class MSslExceptions;
29 
30 #include "commonexport.h"
31 
34 {
35  Q_OBJECT
36  public:
37  MConfigDialog();
38  ~MConfigDialog();
39 
40  private:
41  QCheckBox*useproxy,*abiscript,*ausscript,*asrscript;
42  QLineEdit*hostname,*hostkey,*serverurl,*proxyname,*username,
43  *userhint,*proxyuser,*proxypass,*usrscript;
44  QSpinBox*proxyport,*pbiscript,*pusscript,*psrscript;
45  QListView*profiles;
46  QStandardItemModel*profilemodel,*sslmodel;
47  QTableView*ssltable;
48 
49  MSslExceptions*sslexcept;
50 
51  int oldrow;
52 
53  //helper for exportKey and generateKey
54  void saveKey(QString hostname,QString hostkey);
55 
56  private slots:
57  //handling of login/profile screen
58  void initProfiles(QString idx=QString());
59  void loadProfile();
60  void saveProfile();
61  void newProfile();
62  void deleteProfile();
63  void renameProfile();
64  void cloneProfile();
65  void defaultProfile();
66  //settings
67  void changeLang();
68  void exportKey();
69  void importKey();
70  void generateKey();
71  void openOfficeCfg();
72  void setDefaultFont();
73  void setAppStyle();
74  //ssl server probe
75  void serverProbe();
76  void sslErrors(QNetworkReply*,QList<QSslError>);
77  void clearSslExceptions();
78  void sslFillModel();
79 };
80 
81 class QComboBox;
82 class QLineEdit;
83 
85 {
86  Q_OBJECT
87  public:
88  MAppStyleDialog(QWidget*);
89  private slots:
90  void selectCSS();
91  void save();
92  private:
93  QComboBox*style;
94  QLineEdit*css;
95 };
96 
97 #endif
#define MAGICSMOKE_COMMON_EXPORT
Definition: commonexport.h:7
Definition: configdialog.h:84
Helper class: stores and compares SSL-Exceptions.
Definition: sslexception.h:31
login and profile configuration window
Definition: configdialog.h:33