summaryrefslogtreecommitdiffstats
path: root/kode/kwsdl/tests/google/main.cpp
blob: 130a9cc6a18fe3756997843e7fe8dc0059b3d6d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <tdeaboutdata.h>
#include <tdeapplication.h>
#include <tdecmdlineargs.h>
#include <kmdcodec.h>

#include "googlesearch.h"

int main( int argc, char **argv )
{
  TDEAboutData aboutData( "kgooglesearch", "TDE Google Search", "0.1", "", TDEAboutData::License_GPL );
  aboutData.addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" );

  TDECmdLineArgs::init( argc, argv, &aboutData );

  TDEApplication app( false, false );

  GoogleSearch search;

  search.googleSearch( "foobar", 0, 10, true, "", false, "", "latin1", "latin1" );
  search.spellingSuggestion( "guugel" );

  return app.exec();
}