searchui/runtimeproviders/searchruntimeprovider/inc/searchruntimeprovider.h
changeset 2 208a4ba3894c
parent 0 ccd0fd43f247
equal deleted inserted replaced
0:ccd0fd43f247 2:208a4ba3894c
    16  */
    16  */
    17 
    17 
    18 #ifndef SEARCH_RUNTIMEPROVIDERS_DEFAULTRUNTIMEPROVIDER_H
    18 #ifndef SEARCH_RUNTIMEPROVIDERS_DEFAULTRUNTIMEPROVIDER_H
    19 #define SEARCH_RUNTIMEPROVIDERS_DEFAULTRUNTIMEPROVIDER_H
    19 #define SEARCH_RUNTIMEPROVIDERS_DEFAULTRUNTIMEPROVIDER_H
    20 
    20 
    21 #include "hsiruntimeprovider.h"
    21 #include <qobject.h>
    22 #include "hsistateprovider.h"
    22 
       
    23 #ifdef BUILD_SEARCHRUNTIMEPROVIDER
       
    24 #define SEARCH_RUNTIMEPROVIDER Q_DECL_EXPORT
       
    25 #else
       
    26 #define SEARCH_RUNTIMEPROVIDER Q_DECL_IMPORT
       
    27 #endif
       
    28 
       
    29 
       
    30 class SearchRuntime;
    23 
    31 
    24 /**
    32 /**
    25  * @ingroup group_Searchruntimeprovider
    33  * @ingroup group_Searchruntimeprovider
    26  * @brief Provides a default implementation of the SEARCH runtime.
    34  * @brief Provides a default implementation of the SEARCH runtime.
    27  *
    35  *
    28  * This provider includes a default implementation of the SEARCH runtime.
    36  * This provider includes a default implementation of the SEARCH runtime.
    29  * The runtime is described in the Searchruntimeprovider.manifest file.
    37  * The runtime is described in the Searchruntimeprovider.manifest file.
    30  *
    38  *
    31  * @since S60 ?S60_version.
    39  * @since S60 ?S60_version.
    32  */
    40  */
    33 class SearchRuntimeProvider : public QObject, public IHsRuntimeProvider
    41 class SEARCH_RUNTIMEPROVIDER  SearchRuntimeProvider : public QObject
    34     {
    42     {
    35 Q_OBJECT
    43 Q_OBJECT
    36 
    44 
    37 Q_INTERFACES(IHsRuntimeProvider)
       
    38 
       
    39 public:
    45 public:
    40 
    46     SearchRuntime* createPlugin() const;    
    41     /**
    47 };
    42      * Default constructor.
       
    43      *
       
    44      * @since S60 ?S60_version.
       
    45      */
       
    46     SearchRuntimeProvider();
       
    47 
       
    48 public:
       
    49 
       
    50     /**
       
    51      * Returns contained runtimes as a list of tokens.
       
    52      *
       
    53      * @return Contained runtimes as a list of tokens.
       
    54      * @since S60 ?S60_version.
       
    55      */
       
    56     QList<HsRuntimeToken> runtimes();
       
    57 
       
    58     /**
       
    59      * Creates a runtime based on the given token.
       
    60      *
       
    61      * @param aToken Identifies the runtime to be created.
       
    62      * @since S60 ?S60_version.
       
    63      */
       
    64     HsRuntime* createRuntime(const HsRuntimeToken& aToken);
       
    65 
       
    66 private:
       
    67 
       
    68     /**
       
    69      * Token that describes the default runtime.
       
    70      */
       
    71     HsRuntimeToken mRuntimeToken;
       
    72 
       
    73     };
       
    74 
    48 
    75 #endif //SEARCH_RUNTIMEPROVIDERS_DEFAULTRUNTIMEPROVIDER_H
    49 #endif //SEARCH_RUNTIMEPROVIDERS_DEFAULTRUNTIMEPROVIDER_H