2 * Copyright (c) Martin R. Jones 1996
4 * Copyright (c) Torben Weis 1998
6 * Copyright (c) Daniel Molkentin 2000
16 #include "domainlistview.h"
27 /** policies with java-specific constructor
29 class JavaPolicies
: public Policies
{
33 * @param config configuration to initialize this instance from
34 * @param group config group to use if this instance contains the global
35 * policies (global == true)
36 * @param global true if this instance contains the global policy settings,
37 * false if this instance contains policies specific for a domain.
38 * @param domain name of the domain this instance is used to configure the
39 * policies for (case insensitive, ignored if global == true)
41 JavaPolicies(KSharedConfig::Ptr config
, const QString
&group
, bool global
,
42 const QString
&domain
= QString());
44 /** empty constructur to make QMap happy
45 * don't use for constructing a policies instance.
50 virtual ~JavaPolicies();
53 /** Java-specific enhancements to the domain list view
55 class JavaDomainListView
: public DomainListView
{
58 JavaDomainListView(KSharedConfig::Ptr config
,const QString
&group
,KJavaOptions
*opt
,
60 virtual ~JavaDomainListView();
62 /** remnant for importing pre KDE 3.2 settings
64 void updateDomainListLegacy(const QStringList
&domainConfig
);
67 virtual JavaPolicies
*createPolicies();
68 virtual JavaPolicies
*copyPolicies(Policies
*pol
);
69 virtual void setupPolicyDlg(PushButton trigger
,PolicyDialog
&pDlg
,
74 KJavaOptions
*options
;
77 class KJavaOptions
: public KCModule
82 KJavaOptions( KSharedConfig::Ptr config
, const QString
&group
, const KComponentData
&componentData
, QWidget
* parent
);
86 virtual void defaults();
88 bool _removeJavaScriptDomainAdvice
;
92 void toggleJavaControls();
96 KSharedConfig::Ptr m_pConfig
;
98 JavaPolicies java_global_policies
;
100 QCheckBox
* enableJavaGloballyCB
;
101 QCheckBox
* javaSecurityManagerCB
;
103 QCheckBox
* enableShutdownCB
;
104 KIntNumInput
* serverTimeoutSB
;
106 KUrlRequester
* pathED
;
107 bool _removeJavaDomainSettings
;
109 JavaDomainListView
*domainSpecific
;
111 friend class JavaDomainListView
;
114 #endif // HTML_OPTIONS_H