videofeeds/vcnsuiengine/inc/vcxnscontentsearchif.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 15 Jul 2010 18:41:27 +0300
branchRCL_3
changeset 20 2d690156cf8f
parent 0 96612d01cf9f
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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: 
*
*/




#ifndef M_VCXNSCONTENTSEARCHIF_H
#define M_VCXNSCONTENTSEARCHIF_H

// INCLUDES
#include <e32base.h>

class MVcxNsContentSearchObserver;

// CLASS DECLARATION

/**
* Class MVcxNsContentSearchIf 
* Interface for using search
*
* @lib vcxnsuiengine.lib
*/
class MVcxNsContentSearchIf
    {

public:

    /**
     * RegisterObserver.
     * @param aObserver Observer
     */
    virtual void RegisterObserver( MVcxNsContentSearchObserver* aObserver ) = 0;

    /**
     * DeRegisterObserver.
     * @param aObserver Observer
     */
    virtual void DeRegisterObserver( MVcxNsContentSearchObserver* aObserver ) = 0;
    
    /**
     * Starts the search with given keyword.
     * @param aSearchString Search string
     */
    virtual void SearchL( const TDesC& aSearchString ) = 0;
    
    /**
     * Cancel ongoing search.
     *
     */
    virtual void CancelSearchL( ) = 0;
    
    /**
     * Handle search related status messages.
     * @param aStatus Search status.
     * @param aInfo Information parameter.
     */
    virtual void HandleSearchMsgL( TInt aStatus, TInt aInfo ) = 0;
    
    /**
     * Handle search cancelled by user.
     */
    virtual void SearchCancelled() = 0;
    
    };

#endif // MVCXNSAPPCATEGORYPROVIDERIF_H