search_plat/onlinesearchproviders_api/inc/isengine.h
changeset 9 4a2987baf8f7
child 26 367228f82b66
equal deleted inserted replaced
8:2f67eb14d003 9:4a2987baf8f7
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef ISENGINE_H
       
    19 #define ISENGINE_H
       
    20 
       
    21 #include <qglobal.h>
       
    22 #include <QObject>
       
    23 #include <QtCore/QStringList.h>
       
    24 
       
    25 #if defined(ISENGINESERVICES_LIB)
       
    26 #  define ISENGINELIB_EXPORT Q_DECL_EXPORT
       
    27 #else
       
    28 #  define ISENGINELIB_EXPORT Q_DECL_IMPORT
       
    29 #endif
       
    30 
       
    31 class ServiceProvider;
       
    32 class IsProviderDBManager;
       
    33 
       
    34 /*!
       
    35  * Internet Search Engine
       
    36  *
       
    37  */
       
    38 class ISENGINELIB_EXPORT IsEngine : public QObject
       
    39 {
       
    40     Q_OBJECT
       
    41 
       
    42     
       
    43 public:
       
    44 	IsEngine( QObject *parent = 0 );
       
    45 	~IsEngine();
       
    46 
       
    47 	ServiceProvider* SelectedProvider();
       
    48 	bool SetSelectedProvider(const int providerId);
       
    49     bool Providers(QList<ServiceProvider>& providers);
       
    50     void PerformWebSearch(const QString& searchParam);
       
    51     void PerformInDeviceSearch(const QString& searchParam) const;
       
    52 	
       
    53 private:
       
    54 	/*!< Provider database handler*/
       
    55 	IsProviderDBManager* m_dbHandler;
       
    56     /*!< Activity manager*/
       
    57     QObject *m_activityManager;
       
    58 	
       
    59 };
       
    60 
       
    61 #endif // ISENGINE_H