summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/tests/google/googlesearch.cc
diff options
context:
space:
mode:
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 2e1374b4..5e26c769 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;