searchui/stateproviders/searchstateprovider/inc/searchstateprovider.h
author hgs
Mon, 28 Jun 2010 11:03:15 +0530
changeset 9 4a2987baf8f7
parent 2 208a4ba3894c
permissions -rw-r--r--
201025

/*
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
 *
 * Description:  Declaration of the Search state provider
 *
 */

#ifndef SEARCH_STATEPROVIDERS_STATEPROVIDER_H
#define SEARCH_STATEPROVIDERS_STATEPROVIDER_H

#include "search_global.h"

SEARCH_CLASS( SearchStateProviderTest)

#ifdef BUILD_SEARCHSTATEPROVIDER
#define SEARCH_STATEPROVIDER Q_DECL_EXPORT
#else
#define SEARCH_STATEPROVIDER Q_DECL_IMPORT
#endif

class QState;

/**
 * @ingroup group_Searchstateprovider
 * @brief Provides a default implementation for each Search state.
 *
 * This provider includes a default implementation for each Search state
 * States are described in the Searchstateprovider.manifest file.
 *
 * @lib Searchstateprovider
 * @since S60 ?S60_version.
 */
class SEARCH_STATEPROVIDER SearchStateProvider : public QObject
    {

Q_OBJECT

public:

    /**
     * Default constructor.
     *
     * @since S60 ?S60_version.
     */
    SearchStateProvider(QObject *parent=NULL);    
    

public:   

    /**
     * Creates a state based on the given token.
     *
     * @param aToken Identifies the state to be created.
     * @since S60 ?S60_version.
     */
    QState* createState(const QString& uri);

private:   

    SEARCH_FRIEND_CLASS    ( SearchStateProviderTest)
    };

#endif //SEARCH_STATEPROVIDERS_STATEPROVIDER_H