summaryrefslogtreecommitdiffstats
path: root/tools/testcon/mainwindow.h
diff options
context:
space:
mode:
authorFredrik Orderud <fredrik.orderud@ge.com>2018-10-14 20:46:48 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2018-10-19 13:50:44 +0000
commited59e85a6d1a12d6192c6c4bab54382f2fdb643d (patch)
tree12b6de1dad2a9abbd98cbb3de29d23bd0c9e2292 /tools/testcon/mainwindow.h
parentd36d6ca320125ea5dd0e3dd451616e97c568b907 (diff)
Implement sandboxing support in TestCon
Leverage QAxWidget::setClassContext and integrity level impersonation to require the ActiveX control to either be started in a separate process, or in a separate "low integrity" process. Based on "Designing Applications to Run at a Low Integrity Level" https://msdn.microsoft.com/en-us/library/bb625960.aspx Task-number: QTBUG-70983 Change-Id: Ic71a076c9d54b433e7b0285e958bb86a6ff163bb Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tools/testcon/mainwindow.h')
-rw-r--r--tools/testcon/mainwindow.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/testcon/mainwindow.h b/tools/testcon/mainwindow.h
index 7e6575b..14dbff4 100644
--- a/tools/testcon/mainwindow.h
+++ b/tools/testcon/mainwindow.h
@@ -29,6 +29,8 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
+#include <ActiveQt/QAxSelect>
+
#include "ui_mainwindow.h"
QT_BEGIN_NAMESPACE
@@ -54,7 +56,7 @@ public:
static MainWindow *instance() { return m_instance; }
- bool addControlFromClsid(const QString &clsid);
+ bool addControlFromClsid(const QString &clsid, QAxSelect::SandboxingLevel sandboxing);
bool addControlFromFile(const QString &fileName);
bool loadScript(const QString &file);