diff options
author | Timothy Pearson <[email protected]> | 2012-06-11 15:34:51 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-06-11 15:34:51 -0500 |
commit | e2d9b461c364c36b12c713b20658ab9444587d43 (patch) | |
tree | 4b03ba42db37fe1443f3bf23593de1bb47478d50 /src/primaryrealmwizard | |
parent | a74f58160a68cc658f32037cb4e9a06391759bd6 (diff) | |
download | kcmldapcontroller-e2d9b461c364c36b12c713b20658ab9444587d43.tar.gz kcmldapcontroller-e2d9b461c364c36b12c713b20658ab9444587d43.zip |
Add skeleton secondary realm wizard
Diffstat (limited to 'src/primaryrealmwizard')
-rw-r--r-- | src/primaryrealmwizard/Makefile.am | 2 | ||||
-rw-r--r-- | src/primaryrealmwizard/certconfigpage.cpp | 12 | ||||
-rw-r--r-- | src/primaryrealmwizard/certconfigpage.h | 6 | ||||
-rw-r--r-- | src/primaryrealmwizard/certconfigpagedlg.ui | 4 | ||||
-rw-r--r-- | src/primaryrealmwizard/primaryrealmwizard.cpp (renamed from src/primaryrealmwizard/realmwizard.cpp) | 34 | ||||
-rw-r--r-- | src/primaryrealmwizard/primaryrealmwizard.h (renamed from src/primaryrealmwizard/realmwizard.h) | 28 | ||||
-rw-r--r-- | src/primaryrealmwizard/realmconfigpage.cpp | 8 | ||||
-rw-r--r-- | src/primaryrealmwizard/realmconfigpage.h | 6 | ||||
-rw-r--r-- | src/primaryrealmwizard/realmconfigpagedlg.ui | 4 | ||||
-rw-r--r-- | src/primaryrealmwizard/realmfinishpage.cpp | 6 | ||||
-rw-r--r-- | src/primaryrealmwizard/realmfinishpage.h | 6 | ||||
-rw-r--r-- | src/primaryrealmwizard/realmfinishpagedlg.ui | 4 | ||||
-rw-r--r-- | src/primaryrealmwizard/realmintropage.cpp | 4 | ||||
-rw-r--r-- | src/primaryrealmwizard/realmintropage.h | 6 | ||||
-rw-r--r-- | src/primaryrealmwizard/realmintropagedlg.ui | 4 |
15 files changed, 67 insertions, 67 deletions
diff --git a/src/primaryrealmwizard/Makefile.am b/src/primaryrealmwizard/Makefile.am index fd2c48a..8f61131 100644 --- a/src/primaryrealmwizard/Makefile.am +++ b/src/primaryrealmwizard/Makefile.am @@ -2,4 +2,4 @@ INCLUDES = $(all_includes) $(KDE_INCLUDES)/tde -I$(top_srcdir)/src METASOURCES = AUTO noinst_LTLIBRARIES = libprimaryrealmwizard.la -libprimaryrealmwizard_la_SOURCES = realmwizard.cpp realmintropagedlg.ui certconfigpagedlg.ui certconfigpage.cpp realmintropage.cpp realmconfigpagedlg.ui realmconfigpage.cpp realmfinishpagedlg.ui realmfinishpage.cpp
\ No newline at end of file +libprimaryrealmwizard_la_SOURCES = primaryrealmwizard.cpp realmintropagedlg.ui certconfigpagedlg.ui certconfigpage.cpp realmintropage.cpp realmconfigpagedlg.ui realmconfigpage.cpp realmfinishpagedlg.ui realmfinishpage.cpp
\ No newline at end of file diff --git a/src/primaryrealmwizard/certconfigpage.cpp b/src/primaryrealmwizard/certconfigpage.cpp index 2a5b6e6..c126b8a 100644 --- a/src/primaryrealmwizard/certconfigpage.cpp +++ b/src/primaryrealmwizard/certconfigpage.cpp @@ -40,7 +40,7 @@ #include "certconfigpage.h" -CertConfigPage::CertConfigPage(TQWidget *parent, const char *name ) : CertConfigPageDlg(parent,name) { +PrimaryCertConfigPage::PrimaryCertConfigPage(TQWidget *parent, const char *name ) : PrimaryCertConfigPageDlg(parent,name) { px_introSidebar->setPixmap(UserIcon("step2.png")); @@ -66,11 +66,11 @@ CertConfigPage::CertConfigPage(TQWidget *parent, const char *name ) : CertConfig m_parentDialog = dynamic_cast<KDialogBase*>(parent); } -CertConfigPage::~CertConfigPage() { +PrimaryCertConfigPage::~PrimaryCertConfigPage() { // } -void CertConfigPage::setUseGeneratedKeys(int state) { +void PrimaryCertConfigPage::setUseGeneratedKeys(int state) { if (state == TQButton::On) { generateKeysDisabled->setChecked(false); @@ -79,7 +79,7 @@ void CertConfigPage::setUseGeneratedKeys(int state) { } } -void CertConfigPage::setUseProvidedKeys(int state) { +void PrimaryCertConfigPage::setUseProvidedKeys(int state) { if (state == TQButton::On) { generateKeysEnabled->setChecked(false); @@ -88,7 +88,7 @@ void CertConfigPage::setUseProvidedKeys(int state) { } } -void CertConfigPage::processLockouts() { +void PrimaryCertConfigPage::processLockouts() { kerberosPEM->setEnabled(generateKeysDisabled->isOn()); kerberosPEMKEY->setEnabled(generateKeysDisabled->isOn()); kerberosCRT->setEnabled(generateKeysDisabled->isOn()); @@ -105,7 +105,7 @@ void CertConfigPage::processLockouts() { emailAddress->setEnabled(generateKeysEnabled->isOn()); } -void CertConfigPage::validateEntries() { +void PrimaryCertConfigPage::validateEntries() { if (m_parentWizard) { if (generateKeysEnabled->isOn()) { if ((organizationName->text() != "") && (orgUnitName->text() != "") && (commonName->text() != "") && (localityName->text() != "") && (stateOrProvinceName->text() != "") && (countryName->text() != "") && (emailAddress->text() != "")) { diff --git a/src/primaryrealmwizard/certconfigpage.h b/src/primaryrealmwizard/certconfigpage.h index 57259fc..f713c37 100644 --- a/src/primaryrealmwizard/certconfigpage.h +++ b/src/primaryrealmwizard/certconfigpage.h @@ -31,12 +31,12 @@ class TQStringList; *@author Timothy Pearson */ -class CertConfigPage : public CertConfigPageDlg { +class PrimaryCertConfigPage : public PrimaryCertConfigPageDlg { Q_OBJECT public: - CertConfigPage(TQWidget *parent=0, const char *name=0); - ~CertConfigPage(); + PrimaryCertConfigPage(TQWidget *parent=0, const char *name=0); + ~PrimaryCertConfigPage(); public slots: void validateEntries(); diff --git a/src/primaryrealmwizard/certconfigpagedlg.ui b/src/primaryrealmwizard/certconfigpagedlg.ui index 0fad03d..836cb59 100644 --- a/src/primaryrealmwizard/certconfigpagedlg.ui +++ b/src/primaryrealmwizard/certconfigpagedlg.ui @@ -1,8 +1,8 @@ <!DOCTYPE UI><UI version="3.0" stdsetdef="1"> - <class>CertConfigPageDlg</class> + <class>PrimaryCertConfigPageDlg</class> <widget class="TQWidget"> <property name="name"> - <cstring>CertConfigPageDlg</cstring> + <cstring>PrimaryCertConfigPageDlg</cstring> </property> <property name="geometry"> <rect> diff --git a/src/primaryrealmwizard/realmwizard.cpp b/src/primaryrealmwizard/primaryrealmwizard.cpp index 68c19c3..6dbf9bc 100644 --- a/src/primaryrealmwizard/realmwizard.cpp +++ b/src/primaryrealmwizard/primaryrealmwizard.cpp @@ -57,27 +57,27 @@ #include "certconfigpage.h" #include "realmfinishpage.h" -#include "realmwizard.h" -#include "realmwizard.moc" +#include "primaryrealmwizard.h" +#include "primaryrealmwizard.moc" -RealmWizard::RealmWizard(LDAPController* controller, TQString fqdn, LDAPCertConfig certinfo, TQWidget *parent, const char *name) +PrimaryRealmWizard::PrimaryRealmWizard(LDAPController* controller, TQString fqdn, LDAPCertConfig certinfo, TQWidget *parent, const char *name) : KWizard(parent, name, true), m_controller(controller), m_fqdn(fqdn), m_certconfig(certinfo) { setCaption(i18n("LDAP Realm Wizard")); - intropage = new RealmIntroPage(this); + intropage = new PrimaryRealmIntroPage(this); addPage (intropage, i18n( "Step 1: Introduction" ) ); setHelpEnabled(TQWizard::page(0), false); - realmpage = new RealmConfigPage(this); + realmpage = new PrimaryRealmConfigPage(this); addPage (realmpage, i18n( "Step 2: Set Up New Realm" ) ); setHelpEnabled(TQWizard::page(1), false); - certpage = new CertConfigPage(this); + certpage = new PrimaryCertConfigPage(this); addPage (certpage, i18n( "Step 3: Set Up Certificates" ) ); setHelpEnabled(TQWizard::page(2), false); - finishpage = new RealmFinishPage(this); + finishpage = new PrimaryRealmFinishPage(this); addPage (finishpage, i18n( "Step 4: Initialize New Realm" ) ); setHelpEnabled(TQWizard::page(3), false); @@ -121,11 +121,11 @@ RealmWizard::RealmWizard(LDAPController* controller, TQString fqdn, LDAPCertConf setPosition(); } -RealmWizard::~RealmWizard() { +PrimaryRealmWizard::~PrimaryRealmWizard() { } -void RealmWizard::next() { +void PrimaryRealmWizard::next() { if (currentPage()==intropage) { TQWizard::next(); realmpage->validateEntries(); @@ -222,15 +222,15 @@ void RealmWizard::next() { } } -void RealmWizard::slotNext() { +void PrimaryRealmWizard::slotNext() { TQWizard::next(); } -void RealmWizard::back() { +void PrimaryRealmWizard::back() { TQWizard::back(); } -bool RealmWizard::askClose(){ +bool PrimaryRealmWizard::askClose(){ TQString text; if (currentPage()==intropage) { return true; @@ -259,13 +259,13 @@ bool RealmWizard::askClose(){ * so we have to reimplement this here to add a dialogbox to ask if we * really want to quit the wizard. */ -void RealmWizard::reject() { +void PrimaryRealmWizard::reject() { if (askClose()){ done(-1); } } -void RealmWizard::closeEvent(TQCloseEvent* e){ +void PrimaryRealmWizard::closeEvent(TQCloseEvent* e){ if ( askClose() ) done(0); else @@ -273,7 +273,7 @@ void RealmWizard::closeEvent(TQCloseEvent* e){ } /** maybe call a dialog that the wizard has finished. */ -void RealmWizard::accept() { +void PrimaryRealmWizard::accept() { // Validate entries if (TQString(finishpage->ldapAdminPassword->password()) != TQString(finishpage->ldapConfirmAdminPassword->password())) { KMessageBox::error(this, i18n("<qt><b>Passwords do not match!</b><p>Please re-enter the new administration account password</qt>"), i18n("Input Error")); @@ -306,13 +306,13 @@ void RealmWizard::accept() { } /** calls all save functions after resetting all features/ OS/ theme selections to Trinity default */ -void RealmWizard::setDefaults() { +void PrimaryRealmWizard::setDefaults() { // if(realm_dirty) // realmpage->save(false); } /** there seems to be a bug in TQWizard, that makes this evil hack necessary */ -void RealmWizard::setPosition() { +void PrimaryRealmWizard::setPosition() { TQSize hint = intropage->sizeHint(); TQSize realm_size = realmpage->sizeHint(); TQSize finish_size = finishpage->sizeHint(); diff --git a/src/primaryrealmwizard/realmwizard.h b/src/primaryrealmwizard/primaryrealmwizard.h index 34de72b..c74f4a0 100644 --- a/src/primaryrealmwizard/realmwizard.h +++ b/src/primaryrealmwizard/primaryrealmwizard.h @@ -18,8 +18,8 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef BONDWIZARD_H -#define BONDWIZARD_H +#ifndef PRIMARYREALMWIZARD_H +#define PRIMARYREALMWIZARD_H #ifdef HAVE_CONFIG_H #include <config.h> @@ -32,19 +32,19 @@ /** prototypes */ class KLanguageCombo; -class RealmIntroPage; -class RealmConfigPage; -class CertConfigPage; -class RealmFinishPage; +class PrimaryRealmIntroPage; +class PrimaryRealmConfigPage; +class PrimaryCertConfigPage; +class PrimaryRealmFinishPage; -/** RealmWizard is the base class of the project */ -class RealmWizard : public KWizard { +/** PrimaryRealmWizard is the base class of the project */ +class PrimaryRealmWizard : public KWizard { Q_OBJECT public: /** construtor */ - RealmWizard(LDAPController* controller, TQString fqdn, LDAPCertConfig certinfo, TQWidget* parent=0, const char *name=0); + PrimaryRealmWizard(LDAPController* controller, TQString fqdn, LDAPCertConfig certinfo, TQWidget* parent=0, const char *name=0); /** destructor */ - ~RealmWizard(); + ~PrimaryRealmWizard(); virtual void next(); virtual void back(); @@ -68,10 +68,10 @@ private: void setPosition(); private: - RealmIntroPage* intropage; - RealmConfigPage* realmpage; - CertConfigPage* certpage; - RealmFinishPage* finishpage; + PrimaryRealmIntroPage* intropage; + PrimaryRealmConfigPage* realmpage; + PrimaryCertConfigPage* certpage; + PrimaryRealmFinishPage* finishpage; bool realm_dirty; LDAPController* m_controller; LDAPRealmConfig m_realmconfig; diff --git a/src/primaryrealmwizard/realmconfigpage.cpp b/src/primaryrealmwizard/realmconfigpage.cpp index 03df77d..a1806c3 100644 --- a/src/primaryrealmwizard/realmconfigpage.cpp +++ b/src/primaryrealmwizard/realmconfigpage.cpp @@ -38,7 +38,7 @@ #include "realmconfigpage.h" -RealmConfigPage::RealmConfigPage(TQWidget *parent, const char *name ) : RealmConfigPageDlg(parent,name) { +PrimaryRealmConfigPage::PrimaryRealmConfigPage(TQWidget *parent, const char *name ) : PrimaryRealmConfigPageDlg(parent,name) { px_introSidebar->setPixmap(UserIcon("step2.png")); @@ -52,11 +52,11 @@ RealmConfigPage::RealmConfigPage(TQWidget *parent, const char *name ) : RealmCon m_parentDialog = dynamic_cast<KDialogBase*>(parent); } -RealmConfigPage::~RealmConfigPage() { +PrimaryRealmConfigPage::~PrimaryRealmConfigPage() { // } -void RealmConfigPage::validateEntries() { +void PrimaryRealmConfigPage::validateEntries() { if (m_parentWizard) { if ((txtRealmName->text() != "") && (txtKDC->text() != "") && (txtAdminServer->text() != "")) { m_parentWizard->nextButton()->setEnabled(true); @@ -75,7 +75,7 @@ void RealmConfigPage::validateEntries() { } } -void RealmConfigPage::realmNameChanged() { +void PrimaryRealmConfigPage::realmNameChanged() { TQString realmName = txtRealmName->text(); txtRealmName->setText(realmName.upper()); diff --git a/src/primaryrealmwizard/realmconfigpage.h b/src/primaryrealmwizard/realmconfigpage.h index 99ff81f..17b376c 100644 --- a/src/primaryrealmwizard/realmconfigpage.h +++ b/src/primaryrealmwizard/realmconfigpage.h @@ -31,12 +31,12 @@ class TQStringList; *@author Timothy Pearson */ -class RealmConfigPage : public RealmConfigPageDlg { +class PrimaryRealmConfigPage : public PrimaryRealmConfigPageDlg { Q_OBJECT public: - RealmConfigPage(TQWidget *parent=0, const char *name=0); - ~RealmConfigPage(); + PrimaryRealmConfigPage(TQWidget *parent=0, const char *name=0); + ~PrimaryRealmConfigPage(); public slots: void validateEntries(); diff --git a/src/primaryrealmwizard/realmconfigpagedlg.ui b/src/primaryrealmwizard/realmconfigpagedlg.ui index 1661407..06fe256 100644 --- a/src/primaryrealmwizard/realmconfigpagedlg.ui +++ b/src/primaryrealmwizard/realmconfigpagedlg.ui @@ -1,8 +1,8 @@ <!DOCTYPE UI><UI version="3.0" stdsetdef="1"> - <class>RealmConfigPageDlg</class> + <class>PrimaryRealmConfigPageDlg</class> <widget class="TQWidget"> <property name="name"> - <cstring>RealmConfigPageDlg</cstring> + <cstring>PrimaryRealmConfigPageDlg</cstring> </property> <property name="geometry"> <rect> diff --git a/src/primaryrealmwizard/realmfinishpage.cpp b/src/primaryrealmwizard/realmfinishpage.cpp index ec5b8de..1976afd 100644 --- a/src/primaryrealmwizard/realmfinishpage.cpp +++ b/src/primaryrealmwizard/realmfinishpage.cpp @@ -38,7 +38,7 @@ #include "realmfinishpage.h" -RealmFinishPage::RealmFinishPage(TQWidget *parent, const char *name ) : RealmFinishPageDlg(parent,name) { +PrimaryRealmFinishPage::PrimaryRealmFinishPage(TQWidget *parent, const char *name ) : PrimaryRealmFinishPageDlg(parent,name) { px_introSidebar->setPixmap(UserIcon("step3.png")); @@ -51,11 +51,11 @@ RealmFinishPage::RealmFinishPage(TQWidget *parent, const char *name ) : RealmFin m_parentDialog = dynamic_cast<KDialogBase*>(parent); } -RealmFinishPage::~RealmFinishPage(){ +PrimaryRealmFinishPage::~PrimaryRealmFinishPage(){ // } -void RealmFinishPage::validateEntries() { +void PrimaryRealmFinishPage::validateEntries() { if (m_parentWizard) { if ((ldapAdminUsername->text() != "") && (ldapAdminGroupname->text() != "") && (ldapMachineAdminGroupname->text() != "") && (ldapStandardUserGroupname->text() != "")) { m_parentWizard->finishButton()->setEnabled(true); diff --git a/src/primaryrealmwizard/realmfinishpage.h b/src/primaryrealmwizard/realmfinishpage.h index 969d13b..cdb8d2b 100644 --- a/src/primaryrealmwizard/realmfinishpage.h +++ b/src/primaryrealmwizard/realmfinishpage.h @@ -31,12 +31,12 @@ class TQStringList; *@author Timothy Pearson */ -class RealmFinishPage : public RealmFinishPageDlg { +class PrimaryRealmFinishPage : public PrimaryRealmFinishPageDlg { Q_OBJECT public: - RealmFinishPage(TQWidget *parent=0, const char *name=0); - ~RealmFinishPage(); + PrimaryRealmFinishPage(TQWidget *parent=0, const char *name=0); + ~PrimaryRealmFinishPage(); public slots: void validateEntries(); diff --git a/src/primaryrealmwizard/realmfinishpagedlg.ui b/src/primaryrealmwizard/realmfinishpagedlg.ui index 514bbc7..46b16e2 100644 --- a/src/primaryrealmwizard/realmfinishpagedlg.ui +++ b/src/primaryrealmwizard/realmfinishpagedlg.ui @@ -1,8 +1,8 @@ <!DOCTYPE UI><UI version="3.0" stdsetdef="1"> - <class>RealmFinishPageDlg</class> + <class>PrimaryRealmFinishPageDlg</class> <widget class="TQWidget"> <property name="name"> - <cstring>RealmFinishPageDlg</cstring> + <cstring>PrimaryRealmFinishPageDlg</cstring> </property> <grid> <property name="name"> diff --git a/src/primaryrealmwizard/realmintropage.cpp b/src/primaryrealmwizard/realmintropage.cpp index a1f2450..597f7ce 100644 --- a/src/primaryrealmwizard/realmintropage.cpp +++ b/src/primaryrealmwizard/realmintropage.cpp @@ -33,12 +33,12 @@ #include "realmintropage.h" -RealmIntroPage::RealmIntroPage(TQWidget *parent, const char *name ) : RealmIntroPageDlg(parent,name) { +PrimaryRealmIntroPage::PrimaryRealmIntroPage(TQWidget *parent, const char *name ) : PrimaryRealmIntroPageDlg(parent,name) { px_introSidebar->setPixmap(UserIcon("step1.png")); } -RealmIntroPage::~RealmIntroPage(){ +PrimaryRealmIntroPage::~PrimaryRealmIntroPage(){ // } diff --git a/src/primaryrealmwizard/realmintropage.h b/src/primaryrealmwizard/realmintropage.h index 1c5a9e0..fa535af 100644 --- a/src/primaryrealmwizard/realmintropage.h +++ b/src/primaryrealmwizard/realmintropage.h @@ -29,11 +29,11 @@ class TQStringList; *@author Timothy Pearson */ -class RealmIntroPage : public RealmIntroPageDlg { +class PrimaryRealmIntroPage : public PrimaryRealmIntroPageDlg { Q_OBJECT public: - RealmIntroPage(TQWidget *parent=0, const char *name=0); - ~RealmIntroPage(); + PrimaryRealmIntroPage(TQWidget *parent=0, const char *name=0); + ~PrimaryRealmIntroPage(); }; #endif diff --git a/src/primaryrealmwizard/realmintropagedlg.ui b/src/primaryrealmwizard/realmintropagedlg.ui index fabd670..ee48ae8 100644 --- a/src/primaryrealmwizard/realmintropagedlg.ui +++ b/src/primaryrealmwizard/realmintropagedlg.ui @@ -1,8 +1,8 @@ <!DOCTYPE UI><UI version="3.0" stdsetdef="1"> -<class>RealmIntroPageDlg</class> +<class>PrimaryRealmIntroPageDlg</class> <widget class="TQWidget"> <property name="name"> - <cstring>RealmIntroPageDlg</cstring> + <cstring>PrimaryRealmIntroPageDlg</cstring> </property> <property name="geometry"> <rect> |