@ -84,7 +84,7 @@ typedef KGenericFactory<LDAPController, TQWidget> ldapFactory;
K_EXPORT_COMPONENT_FACTORY ( kcm_ldapcontroller , ldapFactory ( " kcmldapcontroller " ) )
LDAPController : : LDAPController ( TQWidget * parent , const char * name , const TQStringList & )
: K CModule( parent , name ) , myAboutData ( 0 )
: TDE CModule( parent , name ) , myAboutData ( 0 )
{
TQVBoxLayout * layout = new TQVBoxLayout ( this , KDialog : : marginHint ( ) , KDialog : : spacingHint ( ) ) ;
m_systemconfig = new KSimpleConfig ( TQString : : fromLatin1 ( KDE_CONFDIR " /ldap/ldapconfigrc " ) ) ;
@ -503,8 +503,8 @@ void LDAPController::btncaExportKey() {
KURL src = KERBEROS_PKI_PEMKEY_FILE ;
KURL dest = KFileDialog : : getSaveURL ( TQString : : null , " *.key|Private Key (*.key) " , this , i18n ( " Select a location to save a copy of the private key... " ) ) ;
if ( ! dest . isEmpty ( ) ) {
KIO: : CopyJob * job = K IO: : copy ( src , dest , true ) ;
connect ( job , TQT_SIGNAL ( result ( K IO: : Job * ) ) , this , TQT_SLOT ( slotCertCopyResult ( K IO: : Job * ) ) ) ;
TDEIO: : CopyJob * job = TDE IO: : copy ( src , dest , true ) ;
connect ( job , TQT_SIGNAL ( result ( TDE IO: : Job * ) ) , this , TQT_SLOT ( slotCertCopyResult ( TDE IO: : Job * ) ) ) ;
}
}
@ -512,8 +512,8 @@ void LDAPController::btncaExportCert() {
KURL src = KERBEROS_PKI_PEM_FILE ;
KURL dest = KFileDialog : : getSaveURL ( TQString : : null , " *.pem|PKI Certificate Files (*.pem) " , this , i18n ( " Select a location to save a copy of the certificate... " ) ) ;
if ( ! dest . isEmpty ( ) ) {
KIO: : CopyJob * job = K IO: : copy ( src , dest , true ) ;
connect ( job , TQT_SIGNAL ( result ( K IO: : Job * ) ) , this , TQT_SLOT ( slotCertCopyResult ( K IO: : Job * ) ) ) ;
TDEIO: : CopyJob * job = TDE IO: : copy ( src , dest , true ) ;
connect ( job , TQT_SIGNAL ( result ( TDE IO: : Job * ) ) , this , TQT_SLOT ( slotCertCopyResult ( TDE IO: : Job * ) ) ) ;
}
}
@ -530,8 +530,8 @@ void LDAPController::btnkrbExportKey() {
KURL src = kdc_keyfile ;
KURL dest = KFileDialog : : getSaveURL ( TQString : : null , " *.key|Private Key (*.key) " , this , i18n ( " Select a location to save a copy of the private key... " ) ) ;
if ( ! dest . isEmpty ( ) ) {
KIO: : CopyJob * job = K IO: : copy ( src , dest , true ) ;
connect ( job , TQT_SIGNAL ( result ( K IO: : Job * ) ) , this , TQT_SLOT ( slotCertCopyResult ( K IO: : Job * ) ) ) ;
TDEIO: : CopyJob * job = TDE IO: : copy ( src , dest , true ) ;
connect ( job , TQT_SIGNAL ( result ( TDE IO: : Job * ) ) , this , TQT_SLOT ( slotCertCopyResult ( TDE IO: : Job * ) ) ) ;
}
}
@ -542,8 +542,8 @@ void LDAPController::btnkrbExportCert() {
KURL src = kdc_certfile ;
KURL dest = KFileDialog : : getSaveURL ( TQString : : null , " *.pem|PKI Certificate Files (*.pem) " , this , i18n ( " Select a location to save a copy of the certificate... " ) ) ;
if ( ! dest . isEmpty ( ) ) {
KIO: : CopyJob * job = K IO: : copy ( src , dest , true ) ;
connect ( job , TQT_SIGNAL ( result ( K IO: : Job * ) ) , this , TQT_SLOT ( slotCertCopyResult ( K IO: : Job * ) ) ) ;
TDEIO: : CopyJob * job = TDE IO: : copy ( src , dest , true ) ;
connect ( job , TQT_SIGNAL ( result ( TDE IO: : Job * ) ) , this , TQT_SLOT ( slotCertCopyResult ( TDE IO: : Job * ) ) ) ;
}
}
@ -569,8 +569,8 @@ void LDAPController::btnldapExportKey() {
KURL src = ldap_keyfile ;
KURL dest = KFileDialog : : getSaveURL ( TQString : : null , " *.key|Private Key (*.key) " , this , i18n ( " Select a location to save a copy of the private key... " ) ) ;
if ( ! dest . isEmpty ( ) ) {
KIO: : CopyJob * job = K IO: : copy ( src , dest , true ) ;
connect ( job , TQT_SIGNAL ( result ( K IO: : Job * ) ) , this , TQT_SLOT ( slotCertCopyResult ( K IO: : Job * ) ) ) ;
TDEIO: : CopyJob * job = TDE IO: : copy ( src , dest , true ) ;
connect ( job , TQT_SIGNAL ( result ( TDE IO: : Job * ) ) , this , TQT_SLOT ( slotCertCopyResult ( TDE IO: : Job * ) ) ) ;
}
}
@ -581,12 +581,12 @@ void LDAPController::btnldapExportCert() {
KURL src = ldap_certfile ;
KURL dest = KFileDialog : : getSaveURL ( TQString : : null , " *.pem|PKI Certificate Files (*.pem) " , this , i18n ( " Select a location to save a copy of the certificate... " ) ) ;
if ( ! dest . isEmpty ( ) ) {
KIO: : CopyJob * job = K IO: : copy ( src , dest , true ) ;
connect ( job , TQT_SIGNAL ( result ( K IO: : Job * ) ) , this , TQT_SLOT ( slotCertCopyResult ( K IO: : Job * ) ) ) ;
TDEIO: : CopyJob * job = TDE IO: : copy ( src , dest , true ) ;
connect ( job , TQT_SIGNAL ( result ( TDE IO: : Job * ) ) , this , TQT_SLOT ( slotCertCopyResult ( TDE IO: : Job * ) ) ) ;
}
}
void LDAPController : : slotCertCopyResult ( K IO: : Job * job ) {
void LDAPController : : slotCertCopyResult ( TDE IO: : Job * job ) {
if ( job - > error ( ) ) {
job - > showErrorDialog ( this ) ;
}
@ -1795,7 +1795,7 @@ int LDAPController::createNewLDAPRealm(TQWidget* dialogparent, LDAPRealmConfig r
}
int LDAPController : : buttons ( ) {
return KCModule: : Apply | K CModule: : Help ;
return TDECModule: : Apply | TDE CModule: : Help ;
}
TQString LDAPController : : quickHelp ( ) const