diff options
Diffstat (limited to 'src/svnqt/tests')
-rw-r--r-- | src/svnqt/tests/ckpath.cpp | 4 | ||||
-rw-r--r-- | src/svnqt/tests/crepo.cpp | 14 | ||||
-rw-r--r-- | src/svnqt/tests/lsdir.cpp | 16 | ||||
-rw-r--r-- | src/svnqt/tests/testlistener.h | 18 |
4 files changed, 26 insertions, 26 deletions
diff --git a/src/svnqt/tests/ckpath.cpp b/src/svnqt/tests/ckpath.cpp index ca4fe3e..64a57ca 100644 --- a/src/svnqt/tests/ckpath.cpp +++ b/src/svnqt/tests/ckpath.cpp @@ -4,12 +4,12 @@ int main(int,char**) { svn::Path pa("/test/foo/bar/"); - if (pa.path()!=QString("/test/foo/bar")) { + if (pa.path()!=TQString("/test/foo/bar")) { std::cout << "No cleanup of components" << std::endl; return -1; } pa.removeLast(); - if (pa.path()!=QString("/test/foo")) { + if (pa.path()!=TQString("/test/foo")) { std::cout<<"removeLast didn't work." << std::endl; return -1; } diff --git a/src/svnqt/tests/crepo.cpp b/src/svnqt/tests/crepo.cpp index 604e4e9..fa43d90 100644 --- a/src/svnqt/tests/crepo.cpp +++ b/src/svnqt/tests/crepo.cpp @@ -8,18 +8,18 @@ #include <iostream> #include <unistd.h> -#include <qstringlist.h> +#include <tqstringlist.h> class Listener:public svn::repository::RepositoryListener { public: Listener(){} virtual ~Listener(){} - virtual void sendWarning(const QString&msg) + virtual void sendWarning(const TQString&msg) { std::cout << msg << std::endl; } - virtual void sendError(const QString&msg) + virtual void sendError(const TQString&msg) { std::cout << msg << std::endl; } @@ -28,13 +28,13 @@ class Listener:public svn::repository::RepositoryListener int main(int,char**) { - QString p = TESTREPOPATH; + TQString p = TESTREPOPATH; Listener ls; svn::repository::Repository rp(&ls); try { rp.CreateOpen(p,"fsfs"); } catch (svn::ClientException e) { - QString ex = e.msg(); + TQString ex = e.msg(); std::cout << ex.TOUTF8() << std::endl; return -1; } @@ -48,13 +48,13 @@ int main(int,char**) p = "file://"+p; m_Svnclient->setContext(m_CurrentContext); - QStringList s; s.append(p+"/trunk"); s.append(p+"/branches"); s.append(p+"/tags"); + TQStringList s; s.append(p+"/trunk"); s.append(p+"/branches"); s.append(p+"/tags"); try { m_Svnclient->mkdir(svn::Targets(s),"Test mkdir"); m_Svnclient->checkout(p,TESTCOPATH,svn::Revision::HEAD,svn::Revision::HEAD,svn::DepthInfinity,false); } catch (svn::ClientException e) { - QString ex = e.msg(); + TQString ex = e.msg(); std::cout << ex.TOUTF8() << std::endl; return -1; } diff --git a/src/svnqt/tests/lsdir.cpp b/src/svnqt/tests/lsdir.cpp index c458f31..1ac0140 100644 --- a/src/svnqt/tests/lsdir.cpp +++ b/src/svnqt/tests/lsdir.cpp @@ -15,19 +15,19 @@ int main(int,char**) m_Svnclient->setContext(m_CurrentContext); svn::DirEntries dlist; - QString p = QString("file://%1").arg(TESTREPOPATH); - QString l = QString("%1").arg(TESTCOPATH); + TQString p = TQString("file://%1").tqarg(TESTREPOPATH); + TQString l = TQString("%1").tqarg(TESTCOPATH); try { dlist = m_Svnclient->list(svn::Path(p),svn::Revision::HEAD,svn::Revision::HEAD,svn::DepthInfinity,true); } catch (svn::ClientException e) { - QString ex = e.msg(); + TQString ex = e.msg(); std::cout << ex.TOUTF8() << std::endl; return -1; } std::cout << "List 1 "<<dlist.size()<<std::endl; for (unsigned int i=0; i < dlist.size();++i) { - QDateTime dt = svn::DateTime(dlist[i]->time()); + TQDateTime dt = svn::DateTime(dlist[i]->time()); std::cout << dlist[i]->name() << " " << dlist[i]->lastAuthor() << " " << dlist[i]->size() << " " @@ -36,14 +36,14 @@ int main(int,char**) try { dlist = m_Svnclient->list(svn::Path(p),svn::Revision::HEAD,svn::Revision::HEAD,svn::DepthImmediates,false); } catch (svn::ClientException e) { - QString ex = e.msg(); + TQString ex = e.msg(); std::cout << ex.TOUTF8() << std::endl; return -1; } std::cout << "================"<<std::endl; std::cout << "List 2 "<<dlist.size()<<std::endl; for (unsigned int i=0; i < dlist.size();++i) { - QDateTime dt = svn::DateTime(dlist[i]->time()); + TQDateTime dt = svn::DateTime(dlist[i]->time()); std::cout << dlist[i]->name() << " " << dlist[i]->lastAuthor() << " " << dlist[i]->size() << " " @@ -54,7 +54,7 @@ int main(int,char**) try { slist = m_Svnclient->status(svn::Path(p),svn::DepthInfinity,true,true,true,svn::Revision::HEAD,true,false); } catch (svn::ClientException e) { - QString ex = e.msg(); + TQString ex = e.msg(); std::cout << ex.TOUTF8() << std::endl; return -1; } @@ -66,7 +66,7 @@ int main(int,char**) try { slist = m_Svnclient->status(svn::Path(l),svn::DepthInfinity,true,true,true,svn::Revision::WORKING,true,false); } catch (svn::ClientException e) { - QString ex = e.msg(); + TQString ex = e.msg(); std::cout << ex.TOUTF8() << std::endl; return -1; } diff --git a/src/svnqt/tests/testlistener.h b/src/svnqt/tests/testlistener.h index 0c38a43..3efa96d 100644 --- a/src/svnqt/tests/testlistener.h +++ b/src/svnqt/tests/testlistener.h @@ -10,13 +10,13 @@ class TestListener:public svn::ContextListener virtual ~TestListener(){} virtual void contextProgress(long long int current, long long int max){}; - virtual bool contextSslClientCertPwPrompt (QString &,const QString &, bool &){return false;} - virtual bool contextLoadSslClientCertPw(QString&,const QString&){return false;} - virtual bool contextSslClientCertPrompt (QString &){return false;} + virtual bool contextSslClientCertPwPrompt (TQString &,const TQString &, bool &){return false;} + virtual bool contextLoadSslClientCertPw(TQString&,const TQString&){return false;} + virtual bool contextSslClientCertPrompt (TQString &){return false;} virtual svn::ContextListener::SslServerTrustAnswer contextSslServerTrustPrompt (const SslServerTrustData &, apr_uint32_t & ){return svn::ContextListener::SslServerTrustAnswer();} - virtual bool contextGetLogMessage (QString &,const svn::CommitItemList&){return false;} + virtual bool contextGetLogMessage (TQString &,const svn::CommitItemList&){return false;} virtual bool contextCancel(){return false;} virtual void contextNotify (const svn_wc_notify_t *){} virtual void contextNotify (const char *,svn_wc_notify_action_t, @@ -25,11 +25,11 @@ class TestListener:public svn::ContextListener svn_wc_notify_state_t, svn_wc_notify_state_t, svn_revnum_t){} - virtual bool contextGetSavedLogin (const QString & realm,QString & username,QString & password){return false;} - virtual bool contextGetCachedLogin (const QString & realm,QString & username,QString & password){return false;} - virtual bool contextGetLogin (const QString & realm, - QString & username, - QString & password, + virtual bool contextGetSavedLogin (const TQString & realm,TQString & username,TQString & password){return false;} + virtual bool contextGetCachedLogin (const TQString & realm,TQString & username,TQString & password){return false;} + virtual bool contextGetLogin (const TQString & realm, + TQString & username, + TQString & password, bool & maySave){maySave=false;return false;} }; |