total reorganization: all but the main is now in the browserlib
@@ -6,28 +6,35 @@
|
||||
## 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
|
||||
|
||||
designerdir=${QT_PLUGIN_PATH}/designer
|
||||
designer_LTLIBRARIES = libqbrowserlib-swisswebview.la \
|
||||
libqbrowserlib-buttonlineedit.la \
|
||||
libqbrowserlib-swisswebwidget.la
|
||||
|
||||
lib_LTLIBRARIES = libqbrowserlib-swisswebview.la \
|
||||
libqbrowserlib-buttonlineedit.la \
|
||||
libqbrowserlib-swisswebwidget.la
|
||||
AM_CPPFLAGS = -I@top_srcdir@/src
|
||||
RESOURCES = qrc_resources.cxx
|
||||
|
||||
libqbrowserlib_swisswebview_la_MOCFILES = moc_webviewwidgetifc.cxx
|
||||
libqbrowserlib_swisswebview_la_SOURCES = webviewwidgetifc.cxx \
|
||||
${libqbrowserlib_swisswebview_la_MOCFILES}
|
||||
libqbrowserlib_swisswebview_la_SOURCES = webviewwidgetifc.cxx ${RESOURCES} \
|
||||
${libqbrowserlib_swisswebview_la_MOCFILES}
|
||||
libqbrowserlib_swisswebview_la_LIBADD = @top_builddir@/src/qbrowserlib/libqbrowserlib.la
|
||||
|
||||
libqbrowserlib_buttonlineedit_la_MOCFILES = moc_buttonlineeditwidgetifc.cxx
|
||||
libqbrowserlib_buttonlineedit_la_SOURCES = buttonlineeditwidgetifc.cxx \
|
||||
libqbrowserlib_buttonlineedit_la_SOURCES = buttonlineeditwidgetifc.cxx ${RESOURCES} \
|
||||
${libqbrowserlib_buttonlineedit_la_MOCFILES}
|
||||
libqbrowserlib_buttonlineedit_la_LIBADD = @top_builddir@/src/qbrowserlib/libqbrowserlib.la
|
||||
|
||||
libqbrowserlib_swisswebwidget_la_MOCFILES = moc_webwidgetifc.cxx
|
||||
libqbrowserlib_swisswebwidget_la_SOURCES = webwidgetifc.cxx \
|
||||
libqbrowserlib_swisswebwidget_la_SOURCES = webwidgetifc.cxx ${RESOURCES} \
|
||||
${libqbrowserlib_swisswebwidget_la_MOCFILES}
|
||||
libqbrowserlib_swisswebwidget_la_LIBADD = @top_builddir@/src/qbrowserlib/libqbrowserlib.la
|
||||
|
||||
BUILT_SOURCES = ${libqbrowserlib_swisswebview_la_MOCFILES} \
|
||||
${libqbrowserlib_buttonlineedit_la_MOCFILES} \
|
||||
${libqbrowserlib_swisswebwidget_la_MOCFILES}
|
||||
${libqbrowserlib_swisswebwidget_la_MOCFILES} \
|
||||
${RESOURCES}
|
||||
|
||||
EXTRA_DIST = buttonlineeditwidgetifc.hxx webviewwidgetifc.hxx \
|
||||
webwidgetifc.hxx
|
||||
webwidgetifc.hxx resources.qrc
|
||||
|
||||
MAINTAINERCLEANFILES = makefile.in
|
||||
|
||||
@@ -13,19 +13,22 @@
|
||||
#include <QDesignerExportWidget>
|
||||
#include <QtDesigner>
|
||||
|
||||
#include <iostream>
|
||||
#undef TRC
|
||||
#define TRC std::cout<<"********>>> "<<__FILE__<<" - "<<__PRETTY_FUNCTION__<<std::endl;
|
||||
|
||||
//! @defgroup designer
|
||||
//! @{
|
||||
|
||||
//! WebView widget for Qt Designer
|
||||
class SwissWebViewWidgetIfc: public QObject,
|
||||
public QDesignerCustomWidgetInterface {
|
||||
Q_OBJECT;
|
||||
Q_INTERFACES(QDesignerCustomWidgetInterface);
|
||||
class SwissWebViewWidgetIfc: public QObject, public QDesignerCustomWidgetInterface {
|
||||
Q_OBJECT
|
||||
#if QT_VERSION >= 0x050000
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface" FILE "webviewwidgetifc.json");
|
||||
#endif
|
||||
Q_INTERFACES(QDesignerCustomWidgetInterface);
|
||||
public:
|
||||
SwissWebViewWidgetIfc() {}
|
||||
SwissWebViewWidgetIfc(QObject *parent=0): QObject(parent), _initialized(false) {}
|
||||
bool isContainer() const {
|
||||
TRC;
|
||||
return true;
|
||||
@@ -84,10 +87,14 @@ class SwissWebViewWidgetIfc: public QObject,
|
||||
}
|
||||
bool isInitialized() {
|
||||
TRC;
|
||||
return true;
|
||||
return _initialized;
|
||||
}
|
||||
void initialize(QDesignerFormEditorInterface*) {
|
||||
_initialized = true;
|
||||
}
|
||||
private:
|
||||
QNetworkAccessManager _net;
|
||||
bool _initialized;
|
||||
};
|
||||
|
||||
//! @}
|
||||
|
||||
8
src/languages.qrc
Normal file
@@ -0,0 +1,8 @@
|
||||
<RCC>
|
||||
<qresource prefix="/language">
|
||||
<file>swisssurfer_de.qm</file>
|
||||
<file>swisssurfer_fr.qm</file>
|
||||
<file>swisssurfer_it.qm</file>
|
||||
<file>swisssurfer_en.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
13
src/main.cxx
@@ -9,7 +9,7 @@
|
||||
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
|
||||
#include <qbrowserlib/log.hxx>
|
||||
#include <browser.hxx>
|
||||
#include <qbrowserlib/browser.hxx>
|
||||
|
||||
#include <QApplication>
|
||||
#include <QtCore/QTranslator>
|
||||
@@ -46,8 +46,6 @@
|
||||
//! @addtogroup browser
|
||||
//! @{
|
||||
|
||||
QString TMP;
|
||||
|
||||
QMap<QString, QString>& env() {
|
||||
static QStringList l(QProcess::systemEnvironment());
|
||||
static QMap<QString, QString> env;
|
||||
@@ -119,7 +117,7 @@ int main(int argv, char** argc) try {
|
||||
appTranslator.load(":/language/swisssurfer_"+ QLocale().name());
|
||||
app.installTranslator(&appTranslator);
|
||||
//----------------------------------------------------------------------------
|
||||
TMP=QDir::toNativeSeparators(QDir::tempPath());
|
||||
QString tmp(QDir::toNativeSeparators(QDir::tempPath()));
|
||||
QStringList urls;
|
||||
QString actlib
|
||||
#ifdef Q_OS_LINUX
|
||||
@@ -152,7 +150,7 @@ int main(int argv, char** argc) try {
|
||||
} else if (*it=="-d" || *it=="--debug") {
|
||||
qbrowserlib::Log::DEBUG = true;
|
||||
} else if ((*it=="-t" || *it=="--tmp") && ++it!=args.end()) {
|
||||
TMP=*it;
|
||||
tmp=*it;
|
||||
} else if ((*it=="-k" || *it=="--kiosk")) {
|
||||
silent=true;
|
||||
settings.reset();
|
||||
@@ -241,8 +239,9 @@ int main(int argv, char** argc) try {
|
||||
<<"Hostname"<<QNetworkProxy::applicationProxy().hostName()
|
||||
<<"Port"<<QNetworkProxy::applicationProxy().port();
|
||||
//............................................................................
|
||||
Browser browser(actlib, urls, settings.get(), mimetypes, silent,
|
||||
login, quirks, bookmarks);
|
||||
qbrowserlib::Browser browser(actlib, urls, settings.get(), tmp, helptext(),
|
||||
mimetypes, silent,
|
||||
login, quirks, bookmarks);
|
||||
if (editbookmarks) browser.on_actionEditBookmarks_triggered();
|
||||
return app.exec();
|
||||
} catch (std::exception& x) {
|
||||
|
||||
@@ -6,20 +6,14 @@
|
||||
## 1 2 3 4 5 6 7 8
|
||||
## 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
|
||||
SUBDIRS = qbrowserlib #designer
|
||||
SUBDIRS = qbrowserlib designer
|
||||
|
||||
bin_PROGRAMS = swisssurfer
|
||||
LANGUAGE_FILE_BASE = swisssurfer
|
||||
|
||||
swisssurfer_MOCFILES = moc_authentication.cxx moc_certificate.cxx \
|
||||
moc_logincertificate.cxx moc_smartcardauth.cxx \
|
||||
moc_browser.cxx moc_editbookmarks.cxx \
|
||||
moc_pinentry.cxx \
|
||||
moc_sslclientnetworkmanager.cxx
|
||||
swisssurfer_UIFILES = ui_authentication.hxx ui_browser.hxx \
|
||||
ui_certificate.hxx ui_editbookmarks.hxx \
|
||||
ui_logincertificate.hxx ui_pinentry.hxx
|
||||
swisssurfer_RESOURCES = qrc_resources.cxx qrc_languages.cxx
|
||||
swisssurfer_MOCFILES =
|
||||
swisssurfer_UIFILES =
|
||||
swisssurfer_RESOURCES = qrc_languages.cxx
|
||||
swisssurfer_TRANSLATIONS = ${LANGUAGE_FILE_BASE}_en.qm \
|
||||
${LANGUAGE_FILE_BASE}_de.qm \
|
||||
${LANGUAGE_FILE_BASE}_fr.qm \
|
||||
@@ -37,8 +31,8 @@ BUILT_SOURCES = ${nodist_swisssurfer_SOURCES}
|
||||
EXTRA_DIST_TR = ${swisssurfer_MOCFILES:moc_%.cxx=%.hxx} \
|
||||
${swisssurfer_UIFILES:ui_%.hxx=%.ui}
|
||||
|
||||
EXTRA_DIST = ${EXTRA_DIST_TR} resources.qrc languages.qrc.in \
|
||||
${swisssurfer_TRANSLATIONS:%.qm=%.ts} resources
|
||||
EXTRA_DIST = ${EXTRA_DIST_TR} languages.qrc.in \
|
||||
${swisssurfer_TRANSLATIONS:%.qm=%.ts}
|
||||
|
||||
LANGUAGE_FILES = ${EXTRA_DIST_TR} ${swisssurfer_TR_FILES}
|
||||
DISTCLEANFILES = qrc_languages.cxx ${BUILT_SOURCES}
|
||||
|
||||
@@ -8,10 +8,12 @@
|
||||
#ifndef __AUTHENTICATION_HXX__
|
||||
#define __AUTHENTICATION_HXX__
|
||||
|
||||
#include <ui_authentication.hxx>
|
||||
#include <qbrowserlib/ui_authentication.hxx>
|
||||
#include <QDialog>
|
||||
#include <QtNetwork/QAuthenticator>
|
||||
|
||||
namespace qbrowserlib {
|
||||
|
||||
class Authentication: public QDialog, protected Ui::Authentication {
|
||||
Q_OBJECT;
|
||||
public:
|
||||
@@ -36,5 +38,5 @@ class Authentication: public QDialog, protected Ui::Authentication {
|
||||
private:
|
||||
QAuthenticator* _auth;
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
@@ -15,16 +15,16 @@
|
||||
#define BROWSER_HXX
|
||||
|
||||
#include <qbrowserlib/log.hxx>
|
||||
#include <smartcardauth.hxx>
|
||||
#include <logincertificate.hxx>
|
||||
#include <qbrowserlib/smartcardauth.hxx>
|
||||
#include <qbrowserlib/logincertificate.hxx>
|
||||
#include <qbrowserlib/errorlog.hxx>
|
||||
#include <qbrowserlib/downloadmanager.hxx>
|
||||
#include <authentication.hxx>
|
||||
#include <editbookmarks.hxx>
|
||||
#include <qbrowserlib/authentication.hxx>
|
||||
#include <qbrowserlib/editbookmarks.hxx>
|
||||
#include <proxyface/proxy.hxx>
|
||||
#include <sslclientnetworkmanager.hxx>
|
||||
#include <qbrowserlib/sslclientnetworkmanager.hxx>
|
||||
|
||||
#include <ui_browser.hxx>
|
||||
#include <qbrowserlib/ui_browser.hxx>
|
||||
|
||||
#include <qbrowserlib/buttonlineedit.hxx>
|
||||
#include <qbrowserlib/filestorage.hxx>
|
||||
@@ -54,8 +54,7 @@
|
||||
#include <cassert>
|
||||
#include <memory>
|
||||
|
||||
extern QString TMP;
|
||||
QString helptext(); // from main.cxx
|
||||
namespace qbrowserlib {
|
||||
|
||||
//! @addtogroup browser
|
||||
//! @{
|
||||
@@ -67,7 +66,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
|
||||
public:
|
||||
|
||||
Browser(const QString& actlib, const QStringList& urls = QStringList(),
|
||||
QSettings* settings=0,
|
||||
QSettings* settings=0, QString tmp=QString(), QString helptext=QString(),
|
||||
qbrowserlib::Settings::MimeTypes mimeTypes =
|
||||
qbrowserlib::Settings::MimeTypes(),
|
||||
bool kiosk = false, bool login = true, bool quirks=true,
|
||||
@@ -81,7 +80,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
|
||||
_startUrl(urls.size()),
|
||||
_quirks(quirks), _search(new qbrowserlib::ButtonLineEdit),
|
||||
_searchEngines(new QComboBox),
|
||||
_bookmarkfile(bookmarkfile) {
|
||||
_bookmarkfile(bookmarkfile), _tmp(tmp), _helptext(helptext) {
|
||||
TRC; LOG<<urls;
|
||||
qbrowserlib::Settings::instance(mimeTypes, this, settings, !kiosk);
|
||||
qbrowserlib::ErrorLog::instance(this);
|
||||
@@ -242,7 +241,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
|
||||
QMessageBox::critical(this, tr("SSL Not Supported"),
|
||||
tr("SSL is not supported on your system"));
|
||||
// temporary caching of favicons
|
||||
QWebSettings::setIconDatabasePath(TMP);
|
||||
QWebSettings::setIconDatabasePath(_tmp);
|
||||
}
|
||||
|
||||
~Browser() {
|
||||
@@ -842,7 +841,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
|
||||
}
|
||||
|
||||
void on_actionCommandline_triggered() {
|
||||
QMessageBox::information(this, tr("Commandline Arguments"), helptext());
|
||||
QMessageBox::information(this, tr("Commandline Arguments"), _helptext);
|
||||
}
|
||||
|
||||
void on_actionAbout_triggered() {
|
||||
@@ -1566,7 +1565,10 @@ class Browser: public QMainWindow, protected Ui::Browser {
|
||||
qbrowserlib::ButtonLineEdit* _search;
|
||||
QComboBox* _searchEngines;
|
||||
FileStorage _bookmarkfile;
|
||||
QString _helptext;
|
||||
QString _tmp;
|
||||
};
|
||||
|
||||
//! @}
|
||||
}
|
||||
#endif
|
||||
@@ -15,7 +15,7 @@
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/icons/32x32/swisssurfer.png</normaloff>:/icons/32x32/swisssurfer.png</iconset>
|
||||
<normaloff>:/icons/surfer.png</normaloff>:/icons/surfer.png</iconset>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
@@ -8,7 +8,7 @@
|
||||
#ifndef CERTIFICATE_HXX
|
||||
#define CERTIFICATE_HXX
|
||||
|
||||
#include <ui_certificate.hxx>
|
||||
#include <qbrowserlib/ui_certificate.hxx>
|
||||
#include <QtCore/QDateTime>
|
||||
#include <QTreeWidget>
|
||||
#include <QTreeWidgetItem>
|
||||
@@ -22,6 +22,8 @@ namespace QSsl {
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace qbrowserlib {
|
||||
|
||||
class Certificate: public QWidget, protected Ui::Certificate {
|
||||
Q_OBJECT;
|
||||
public:
|
||||
@@ -122,5 +124,5 @@ class Certificate: public QWidget, protected Ui::Certificate {
|
||||
return tr("error", "unknown certificate subject info");
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
@@ -9,6 +9,7 @@
|
||||
#define __DOWNLOAD_MANAGER_HXX
|
||||
|
||||
#include <qbrowserlib/log.hxx>
|
||||
#include <qbrowserlib/sslclientnetworkmanager.hxx>
|
||||
#include <QtNetwork/QNetworkReply>
|
||||
#include <QtNetwork/QSslError>
|
||||
#include <QtNetwork/QSslConfiguration>
|
||||
@@ -28,6 +29,14 @@ namespace qbrowserlib {
|
||||
|
||||
//! Append a Network Manager
|
||||
DownloadManager& operator+=(QNetworkAccessManager* n) {
|
||||
TRC;
|
||||
SslClientAuthNetworkAccessManager* n2
|
||||
(dynamic_cast<SslClientAuthNetworkAccessManager*>(n));
|
||||
return operator+=(n2);
|
||||
}
|
||||
|
||||
//! Append a Network Manager
|
||||
DownloadManager& operator+=(SslClientAuthNetworkAccessManager* n) {
|
||||
TRC;
|
||||
assert(connect(n, SIGNAL(created(QNetworkReply*)),
|
||||
SLOT(add(QNetworkReply*))));
|
||||
|
||||
@@ -11,10 +11,12 @@
|
||||
#include <QDialog>
|
||||
#include <QComboBox>
|
||||
#include <QLineEdit>
|
||||
#include <ui_editbookmarks.hxx>
|
||||
#include <qbrowserlib/ui_editbookmarks.hxx>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
namespace qbrowserlib {
|
||||
|
||||
class EditBookmarks: public QDialog, protected Ui::EditBookmarks {
|
||||
Q_OBJECT;
|
||||
Q_SIGNALS:
|
||||
@@ -73,5 +75,5 @@ class EditBookmarks: public QDialog, protected Ui::EditBookmarks {
|
||||
private:
|
||||
QComboBox* _url;
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
@@ -4,6 +4,8 @@
|
||||
*/
|
||||
// 1 2 3 4 5 6 7 8
|
||||
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
#ifndef FILESTORAGE_HXX
|
||||
#define FILESTORAGE_HXX
|
||||
|
||||
#include <qbrowserlib/log.hxx>
|
||||
#include <QtCore/QFile>
|
||||
@@ -16,6 +18,8 @@
|
||||
|
||||
#include <cassert>
|
||||
|
||||
namespace qbrowserlib {
|
||||
|
||||
//! Store string lists.
|
||||
/** Abstract storage interface to string lists, such as bookmarks. */
|
||||
class Storage: public QObject {
|
||||
@@ -111,3 +115,6 @@ class FileStorage: public Storage {
|
||||
QDateTime _modified;
|
||||
QTimer _timer;
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
#define LOGINCERTIFICATE_HXX
|
||||
|
||||
#include <qbrowserlib/log.hxx>
|
||||
#include <ui_logincertificate.hxx>
|
||||
#include <qbrowserlib/ui_logincertificate.hxx>
|
||||
|
||||
namespace qbrowserlib {
|
||||
|
||||
class LoginCertificate: public QDialog, protected Ui::LoginCertificate {
|
||||
public:
|
||||
@@ -33,4 +35,5 @@ class LoginCertificate: public QDialog, protected Ui::LoginCertificate {
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
@@ -28,7 +28,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="Certificate" name="_cert" native="true">
|
||||
<widget class="qbrowserlib::Certificate" name="_cert" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
||||
<horstretch>0</horstretch>
|
||||
@@ -41,9 +41,9 @@
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>Certificate</class>
|
||||
<class>qbrowserlib::Certificate</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>certificate.hxx</header>
|
||||
<header>qbrowserlib/certificate.hxx</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
@@ -23,11 +23,20 @@ libqbrowserlib_la_MOCFILES = moc_buttonlineedit.cxx moc_errorlog.cxx \
|
||||
moc_temporaryfile.cxx \
|
||||
moc_downloadmanager.cxx \
|
||||
moc_filestorage.cxx moc_saveorrun.cxx \
|
||||
moc_swisswebview.cxx
|
||||
libqbrowserlib_la_UIFILES = ui_errorlog.hxx ui_log.hxx \
|
||||
ui_saveorrun.hxx ui_settings.hxx \
|
||||
ui_swisswebwidget.hxx
|
||||
libqbrowserlib_la_RESOURCES = qrc_languages.cxx
|
||||
moc_swisswebview.cxx \
|
||||
moc_sslclientnetworkmanager.cxx \
|
||||
moc_authentication.cxx \
|
||||
moc_certificate.cxx \
|
||||
moc_logincertificate.cxx \
|
||||
moc_smartcardauth.cxx moc_browser.cxx \
|
||||
moc_editbookmarks.cxx moc_pinentry.cxx
|
||||
libqbrowserlib_la_UIFILES = ui_errorlog.hxx ui_log.hxx \
|
||||
ui_saveorrun.hxx ui_settings.hxx \
|
||||
ui_swisswebwidget.hxx \
|
||||
ui_authentication.hxx ui_browser.hxx \
|
||||
ui_certificate.hxx ui_editbookmarks.hxx \
|
||||
ui_logincertificate.hxx ui_pinentry.hxx
|
||||
libqbrowserlib_la_RESOURCES = qrc_resources.cxx qrc_languages.cxx
|
||||
libqbrowserlib_la_TRANSLATIONS = ${LANGUAGE_FILE_BASE}_en.qm \
|
||||
${LANGUAGE_FILE_BASE}_de.qm \
|
||||
${LANGUAGE_FILE_BASE}_fr.qm \
|
||||
@@ -44,8 +53,8 @@ BUILT_SOURCES = ${nodist_libqbrowserlib_la_SOURCES}
|
||||
EXTRA_DIST_TR = ${libqbrowserlib_la_MOCFILES:moc_%.cxx=%.hxx} \
|
||||
${libqbrowserlib_la_UIFILES:ui_%.hxx=%.ui}
|
||||
|
||||
EXTRA_DIST = ${EXTRA_DIST_TR} languages.qrc.in \
|
||||
${libqbrowserlib_la_TRANSLATIONS:%.qm=%.ts}
|
||||
EXTRA_DIST = ${EXTRA_DIST_TR} languages.qrc.in resources.qrc \
|
||||
resources ${libqbrowserlib_la_TRANSLATIONS:%.qm=%.ts}
|
||||
|
||||
LANGUAGE_FILES = ${EXTRA_DIST_TR} ${libqbrowserlib_la_TR_FILES}
|
||||
DISTCLEANFILES = qrc_languages.cxx ${BUILT_SOURCES}
|
||||
|
||||
@@ -10,13 +10,15 @@
|
||||
|
||||
#include <cryptoki.hxx>
|
||||
#include <qbrowserlib/log.hxx>
|
||||
#include <ui_pinentry.hxx>
|
||||
#include <qbrowserlib/ui_pinentry.hxx>
|
||||
#include <QDialog>
|
||||
#include <QtCore/QDateTime>
|
||||
#include <QtNetwork/QSslCertificate>
|
||||
|
||||
#include <cassert>
|
||||
|
||||
namespace qbrowserlib {
|
||||
|
||||
class PinEntry: public QDialog, public Ui::PinEntry {
|
||||
Q_OBJECT;
|
||||
public:
|
||||
@@ -116,5 +118,6 @@ class PinEntry: public QDialog, public Ui::PinEntry {
|
||||
unsigned long _maxPinLen;
|
||||
unsigned long _minPinLen;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
@@ -169,7 +169,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Certificate" name="_cert" native="true">
|
||||
<widget class="qbrowserlib::Certificate" name="_cert" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
|
||||
<horstretch>0</horstretch>
|
||||
@@ -192,9 +192,9 @@
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>Certificate</class>
|
||||
<class>qbrowserlib::Certificate</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>certificate.hxx</header>
|
||||
<header>qbrowserlib/certificate.hxx</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
@@ -37,6 +37,7 @@
|
||||
<file alias="addbookmark.svg">resources/icons/addbookmark.svg</file>
|
||||
<file alias="gg.png">resources/icons/gg.png</file>
|
||||
<file alias="error.svg">resources/icons/error.svg</file>
|
||||
<file alias="surfer.png">resources/icons/surfer.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="icons/48x48">
|
||||
<file alias="SW_SwissSurfer_48x48x32.png">resources/icons/48x48/SW_SwissSurfer_48x48x32.png</file>
|
||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 527 B After Width: | Height: | Size: 527 B |
|
Before Width: | Height: | Size: 591 B After Width: | Height: | Size: 591 B |
|
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 422 B |
|
Before Width: | Height: | Size: 425 B After Width: | Height: | Size: 425 B |
|
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 445 B |
|
Before Width: | Height: | Size: 521 B After Width: | Height: | Size: 521 B |
|
Before Width: | Height: | Size: 475 B After Width: | Height: | Size: 475 B |
|
Before Width: | Height: | Size: 546 B After Width: | Height: | Size: 546 B |
|
Before Width: | Height: | Size: 569 B After Width: | Height: | Size: 569 B |
|
Before Width: | Height: | Size: 521 B After Width: | Height: | Size: 521 B |
|
Before Width: | Height: | Size: 550 B After Width: | Height: | Size: 550 B |
|
Before Width: | Height: | Size: 512 B After Width: | Height: | Size: 512 B |
|
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 412 B |
|
Before Width: | Height: | Size: 577 B After Width: | Height: | Size: 577 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 942 B After Width: | Height: | Size: 942 B |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 651 B After Width: | Height: | Size: 651 B |
|
Before Width: | Height: | Size: 805 B After Width: | Height: | Size: 805 B |
|
Before Width: | Height: | Size: 433 B After Width: | Height: | Size: 433 B |
|
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 441 B |
|
Before Width: | Height: | Size: 518 B After Width: | Height: | Size: 518 B |
|
Before Width: | Height: | Size: 640 B After Width: | Height: | Size: 640 B |
|
Before Width: | Height: | Size: 628 B After Width: | Height: | Size: 628 B |
|
Before Width: | Height: | Size: 662 B After Width: | Height: | Size: 662 B |
|
Before Width: | Height: | Size: 798 B After Width: | Height: | Size: 798 B |
|
Before Width: | Height: | Size: 657 B After Width: | Height: | Size: 657 B |
|
Before Width: | Height: | Size: 729 B After Width: | Height: | Size: 729 B |
|
Before Width: | Height: | Size: 620 B After Width: | Height: | Size: 620 B |
|
Before Width: | Height: | Size: 482 B After Width: | Height: | Size: 482 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 126 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 993 B After Width: | Height: | Size: 993 B |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 146 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 345 KiB After Width: | Height: | Size: 345 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 573 B After Width: | Height: | Size: 573 B |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 699 B After Width: | Height: | Size: 699 B |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
@@ -10,13 +10,15 @@
|
||||
#include <QtNetwork/QSslKey>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include <pinentry.hxx>
|
||||
#include <qbrowserlib/pinentry.hxx>
|
||||
|
||||
#include <suisseid.hxx>
|
||||
#include <openssl-engine.hxx>
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace qbrowserlib {
|
||||
|
||||
class CryptokiEngine: public QObject, public openssl::Engine {
|
||||
|
||||
Q_OBJECT;
|
||||
@@ -231,4 +233,5 @@ class SmartCardAuth: public QObject {
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
#endif // SMARTCARDAUTH_H
|
||||
@@ -10,7 +10,9 @@
|
||||
#include <qbrowserlib/log.hxx>
|
||||
#include <QtNetwork/QNetworkReply>
|
||||
#include <QtNetwork/QNetworkAccessManager>
|
||||
#include <smartcardauth.hxx>
|
||||
#include <qbrowserlib/smartcardauth.hxx>
|
||||
|
||||
namespace qbrowserlib {
|
||||
|
||||
//! @addtogroup pkcs11
|
||||
//! @{
|
||||
@@ -59,4 +61,6 @@ class SslClientAuthNetworkAccessManager: public QNetworkAccessManager {
|
||||
};
|
||||
|
||||
//! @}
|
||||
|
||||
}
|
||||
#endif
|
||||
@@ -13,6 +13,8 @@
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
namespace qbrowserlib {
|
||||
|
||||
class TemporaryFile: public QFile {
|
||||
Q_OBJECT;
|
||||
|
||||
@@ -63,4 +65,5 @@ class TemporaryFile: public QFile {
|
||||
bool _autoRemove;
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||