summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/tests/google/googlesearch.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kode/kwsdl/tests/google/googlesearch.cc
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kode/kwsdl/tests/google/googlesearch.cc')
-rw-r--r--kode/kwsdl/tests/google/googlesearch.cc42
1 files changed, 21 insertions, 21 deletions
diff --git a/kode/kwsdl/tests/google/googlesearch.cc b/kode/kwsdl/tests/google/googlesearch.cc
index 2e1374b47..5e26c769a 100644
--- a/kode/kwsdl/tests/google/googlesearch.cc
+++ b/kode/kwsdl/tests/google/googlesearch.cc
@@ -27,38 +27,38 @@
#include "resultelementarray.h"
GoogleSearch::GoogleSearch()
- : QObject( 0, "" )
+ : TQObject( 0, "" )
{
- connect( &mService, SIGNAL( doGetCachedPageResponse( QByteArray* ) ),
- this, SLOT( cachedPageResult( QByteArray* ) ) );
- connect( &mService, SIGNAL( doSpellingSuggestionResponse( QString* ) ),
- this, SLOT( spellingSuggestionResult( QString* ) ) );
- connect( &mService, SIGNAL( doGoogleSearchResponse( GoogleSearchResult* ) ),
- this, SLOT( googleSearchResult( GoogleSearchResult* ) ) );
+ connect( &mService, TQT_SIGNAL( doGetCachedPageResponse( TQByteArray* ) ),
+ this, TQT_SLOT( cachedPageResult( TQByteArray* ) ) );
+ connect( &mService, TQT_SIGNAL( doSpellingSuggestionResponse( TQString* ) ),
+ this, TQT_SLOT( spellingSuggestionResult( TQString* ) ) );
+ connect( &mService, TQT_SIGNAL( doGoogleSearchResponse( GoogleSearchResult* ) ),
+ this, TQT_SLOT( googleSearchResult( GoogleSearchResult* ) ) );
mKey = "";
}
-void GoogleSearch::cachedPage( const QString &url )
+void GoogleSearch::cachedPage( const TQString &url )
{
- mService.doGetCachedPage( new QString( mKey ), new QString( url ) );
+ mService.doGetCachedPage( new TQString( mKey ), new TQString( url ) );
}
-void GoogleSearch::spellingSuggestion( const QString &phrase )
+void GoogleSearch::spellingSuggestion( const TQString &phrase )
{
- mService.doSpellingSuggestion( new QString( mKey ), new QString( phrase ) );
+ mService.doSpellingSuggestion( new TQString( mKey ), new TQString( phrase ) );
}
-void GoogleSearch::googleSearch( const QString &query, int start, int maxResults, bool filter,
- const QString &restrict, bool safeSearch, const QString &lr, const QString &ie,
- const QString &oe )
+void GoogleSearch::googleSearch( const TQString &query, int start, int maxResults, bool filter,
+ const TQString &restrict, bool safeSearch, const TQString &lr, const TQString &ie,
+ const TQString &oe )
{
- mService.doGoogleSearch( new QString( mKey ), new QString( query ), new int( start ), new int( maxResults ),
- new bool( filter ), new QString( restrict ), new bool( safeSearch ), new QString( lr ),
- new QString( ie ), new QString( oe ) );
+ mService.doGoogleSearch( new TQString( mKey ), new TQString( query ), new int( start ), new int( maxResults ),
+ new bool( filter ), new TQString( restrict ), new bool( safeSearch ), new TQString( lr ),
+ new TQString( ie ), new TQString( oe ) );
}
-void GoogleSearch::cachedPageResult( QByteArray *array )
+void GoogleSearch::cachedPageResult( TQByteArray *array )
{
qDebug( "--------------- Cached Page Results ---------------------" );
qDebug( "%s", array->data() );
@@ -67,7 +67,7 @@ void GoogleSearch::cachedPageResult( QByteArray *array )
delete array;
}
-void GoogleSearch::spellingSuggestionResult( QString *word )
+void GoogleSearch::spellingSuggestionResult( TQString *word )
{
qDebug( "--------------- Spelling Suggestion ---------------------" );
qDebug( "%s", word->latin1() );
@@ -80,8 +80,8 @@ void GoogleSearch::googleSearchResult( GoogleSearchResult *result )
{
qDebug( "--------------------- Search Results ---------------------" );
ResultElementArray *array = result->resultElements();
- QPtrList<ResultElement> *list = array->items();
- QPtrListIterator<ResultElement> it( *list );
+ TQPtrList<ResultElement> *list = array->items();
+ TQPtrListIterator<ResultElement> it( *list );
while ( it.current() != 0 ) {
qDebug( "%s: %s", it.current()->summary()->latin1(), it.current()->uRL()->latin1() );
++it;