@ -983,8 +983,8 @@ void tdeio_svnProtocol::popupMessage( const TQString& message ) {
// TQDataStream stream(params, IO_WriteOnly);
// TQDataStream stream(params, IO_WriteOnly);
// stream << message;
// stream << message;
//
//
// if ( !dcopClient()->send( "kded"," tde svnd","popupMessage(TQString)", params ) )
// if ( !dcopClient()->send( "kded"," k svnd","popupMessage(TQString)", params ) )
// kdWarning() << "Communication with KDED: TDev Svnd failed" << endl;
// kdWarning() << "Communication with KDED: K Svnd failed" << endl;
}
}
void tdeio_svnProtocol : : blame ( KURL url , UrlMode /*mode*/ , /* int pegRev, TQString pegRevKind,*/ int startRev , TQString startRevKind , int endRev , TQString endRevKind )
void tdeio_svnProtocol : : blame ( KURL url , UrlMode /*mode*/ , /* int pegRev, TQString pegRevKind,*/ int startRev , TQString startRevKind , int endRev , TQString endRevKind )
@ -1632,31 +1632,31 @@ TQString tdeio_svnProtocol::makeSvnURL ( const KURL& url ) const {
KURL tpURL = url ;
KURL tpURL = url ;
tpURL . cleanPath ( true ) ;
tpURL . cleanPath ( true ) ;
TQString svnUrl ;
TQString svnUrl ;
if ( kproto = = " t devsvn+http" ) {
if ( kproto = = " k devsvn+http" ) {
kdDebug ( 9036 ) < < " http:/ " < < url . url ( ) < < endl ;
kdDebug ( 9036 ) < < " http:/ " < < url . url ( ) < < endl ;
tpURL . setProtocol ( " http " ) ;
tpURL . setProtocol ( " http " ) ;
svnUrl = tpURL . url ( - 1 ) ;
svnUrl = tpURL . url ( - 1 ) ;
return svnUrl ;
return svnUrl ;
}
}
else if ( kproto = = " t devsvn+https" ) {
else if ( kproto = = " k devsvn+https" ) {
kdDebug ( 9036 ) < < " https:/ " < < url . url ( ) < < endl ;
kdDebug ( 9036 ) < < " https:/ " < < url . url ( ) < < endl ;
tpURL . setProtocol ( " https " ) ;
tpURL . setProtocol ( " https " ) ;
svnUrl = tpURL . url ( - 1 ) ;
svnUrl = tpURL . url ( - 1 ) ;
return svnUrl ;
return svnUrl ;
}
}
else if ( kproto = = " t devsvn+ssh" ) {
else if ( kproto = = " k devsvn+ssh" ) {
kdDebug ( 9036 ) < < " svn+ssh:/ " < < url . url ( ) < < endl ;
kdDebug ( 9036 ) < < " svn+ssh:/ " < < url . url ( ) < < endl ;
tpURL . setProtocol ( " svn+ssh " ) ;
tpURL . setProtocol ( " svn+ssh " ) ;
svnUrl = tpURL . url ( - 1 ) ;
svnUrl = tpURL . url ( - 1 ) ;
return svnUrl ;
return svnUrl ;
}
}
else if ( kproto = = " t devsvn+svn" ) {
else if ( kproto = = " k devsvn+svn" ) {
kdDebug ( 9036 ) < < " svn:/ " < < url . url ( ) < < endl ;
kdDebug ( 9036 ) < < " svn:/ " < < url . url ( ) < < endl ;
tpURL . setProtocol ( " svn " ) ;
tpURL . setProtocol ( " svn " ) ;
svnUrl = tpURL . url ( - 1 ) ;
svnUrl = tpURL . url ( - 1 ) ;
return svnUrl ;
return svnUrl ;
}
}
else if ( kproto = = " t devsvn+file" ) {
else if ( kproto = = " k devsvn+file" ) {
kdDebug ( 9036 ) < < " file:/ " < < url . url ( ) < < endl ;
kdDebug ( 9036 ) < < " file:/ " < < url . url ( ) < < endl ;
tpURL . setProtocol ( " file " ) ;
tpURL . setProtocol ( " file " ) ;
svnUrl = tpURL . url ( - 1 ) ;
svnUrl = tpURL . url ( - 1 ) ;
@ -1701,7 +1701,7 @@ svn_error_t *tdeio_svnProtocol::trustSSLPrompt(svn_auth_cred_ssl_server_trust_t
arg < < TQString : : fromLocal8Bit ( ci - > valid_from ) < < TQString : : fromLocal8Bit ( ci - > valid_until ) ;
arg < < TQString : : fromLocal8Bit ( ci - > valid_from ) < < TQString : : fromLocal8Bit ( ci - > valid_until ) ;
arg < < TQString : : fromLocal8Bit ( ci - > issuer_dname ) < < TQString : : fromLocal8Bit ( ci - > ascii_cert ) ;
arg < < TQString : : fromLocal8Bit ( ci - > issuer_dname ) < < TQString : : fromLocal8Bit ( ci - > ascii_cert ) ;
// call dcop
// call dcop
int ret = p - > dcopClient ( ) - > call ( " kded " , " t devsvnd" ,
int ret = p - > dcopClient ( ) - > call ( " kded " , " k devsvnd" ,
" sslServerTrustPrompt(TQString, TQString, TQString, TQString, TQString, TQString, TQString) " ,
" sslServerTrustPrompt(TQString, TQString, TQString, TQString, TQString, TQString, TQString) " ,
params , replyType , replyData ) ;
params , replyType , replyData ) ;
if ( ! ret ) {
if ( ! ret ) {
@ -1746,7 +1746,7 @@ svn_error_t *tdeio_svnProtocol::clientCertSSLPrompt(
// TQByteArray params;
// TQByteArray params;
// TQCString replyType;
// TQCString replyType;
// call dcop
// call dcop
// if (!p->dcopClient()->call("kded"," t devsvnd", "sslCertFile()",params,replyType,reply)) {
// if (!p->dcopClient()->call("kded"," k devsvnd", "sslCertFile()",params,replyType,reply)) {
// kdWarning()<<" Communication with dcop failed - fail to get certfile "<<endl;
// kdWarning()<<" Communication with dcop failed - fail to get certfile "<<endl;
// return SVN_NO_ERROR;
// return SVN_NO_ERROR;
// }
// }
@ -1779,7 +1779,7 @@ svn_error_t *tdeio_svnProtocol::clientCertPasswdPrompt(
// TQDataStream arg( params, IO_WriteOnly );
// TQDataStream arg( params, IO_WriteOnly );
// arg << i18n( "Enter password for subversion repository access" ) + "\n" + TQString(realm);
// arg << i18n( "Enter password for subversion repository access" ) + "\n" + TQString(realm);
// // call dcop
// // call dcop
// if (!p->dcopClient()->call("kded"," t devsvnd", "sslPasswdDlg(TQString)",params,replyType,reply)) {
// if (!p->dcopClient()->call("kded"," k devsvnd", "sslPasswdDlg(TQString)",params,replyType,reply)) {
// kdWarning()<<" Communication with dcop failed - fail to show passwd dlg"<<endl;
// kdWarning()<<" Communication with dcop failed - fail to show passwd dlg"<<endl;
// return SVN_NO_ERROR;
// return SVN_NO_ERROR;
// }
// }
@ -1860,17 +1860,17 @@ svn_error_t *tdeio_svnProtocol::commitLogPrompt( const char **log_msg, const cha
stream < < slist . join ( " \n " ) ;
stream < < slist . join ( " \n " ) ;
kdDebug ( 9036 ) < < " __TIME__ " < < __TIME__ < < endl ;
kdDebug ( 9036 ) < < " __TIME__ " < < __TIME__ < < endl ;
if ( ! p - > dcopClient ( ) - > call ( " kded " , " t devsvnd" , " commitDialog(TQString) " , params , replyType , reply ) ) {
if ( ! p - > dcopClient ( ) - > call ( " kded " , " k devsvnd" , " commitDialog(TQString) " , params , replyType , reply ) ) {
kdWarning ( ) < < " Communication with KDED:TDevSvnd failed " < < endl ;
kdWarning ( ) < < " Communication with KDED:TDevSvnd failed " < < endl ;
svn_error_t * err = svn_error_create ( SVN_ERR_EXTERNAL_PROGRAM , NULL ,
svn_error_t * err = svn_error_create ( SVN_ERR_EXTERNAL_PROGRAM , NULL ,
apr_pstrdup ( pool , " Fail to call kded_ tdevsvnd via DCOP. If this is your first problem, try to restart T DE" ) ) ;
apr_pstrdup ( pool , " Fail to call kded_ kdevsvnd via DCOP. If this is your first problem, try to restart K DE" ) ) ;
return err ;
return err ;
}
}
if ( replyType ! = TQSTRING_OBJECT_NAME_STRING ) {
if ( replyType ! = TQSTRING_OBJECT_NAME_STRING ) {
kdWarning ( ) < < " Unexpected reply type " < < endl ;
kdWarning ( ) < < " Unexpected reply type " < < endl ;
svn_error_t * err = svn_error_create ( SVN_ERR_EXTERNAL_PROGRAM , NULL ,
svn_error_t * err = svn_error_create ( SVN_ERR_EXTERNAL_PROGRAM , NULL ,
apr_pstrdup ( pool , " Fail to call kded_ t devsvnd via DCOP." ) ) ;
apr_pstrdup ( pool , " Fail to call kded_ k devsvnd via DCOP." ) ) ;
return err ;
return err ;
}
}
@ -2136,19 +2136,19 @@ void tdeio_svnProtocol::wc_resolve( const KURL& wc, bool recurse ) {
extern " C "
extern " C "
{
{
KDE_EXPORT int kdemain ( int argc , char * * argv ) {
KDE_EXPORT int kdemain ( int argc , char * * argv ) {
TDEInstance instance ( " tdeio_ t devsvn" ) ;
TDEInstance instance ( " tdeio_ k devsvn" ) ;
kdDebug ( 9036 ) < < " *** Starting tdeio_ t devsvn " < < endl ;
kdDebug ( 9036 ) < < " *** Starting tdeio_ k devsvn " < < endl ;
if ( argc ! = 4 ) {
if ( argc ! = 4 ) {
kdDebug ( 9036 ) < < " Usage: tdeio_ t devsvn protocol domain-socket1 domain-socket2" < < endl ;
kdDebug ( 9036 ) < < " Usage: tdeio_ k devsvn protocol domain-socket1 domain-socket2" < < endl ;
exit ( - 1 ) ;
exit ( - 1 ) ;
}
}
tdeio_svnProtocol slave ( argv [ 2 ] , argv [ 3 ] ) ;
tdeio_svnProtocol slave ( argv [ 2 ] , argv [ 3 ] ) ;
slave . dispatchLoop ( ) ;
slave . dispatchLoop ( ) ;
kdDebug ( 9036 ) < < " *** tdeio_ t devsvn Done" < < endl ;
kdDebug ( 9036 ) < < " *** tdeio_ k devsvn Done" < < endl ;
return 0 ;
return 0 ;
}
}
}
}