onlinesearchproviders/common/inc/serviceprovider.h
changeset 9 4a2987baf8f7
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 SERVICEPROVIDER_H
       
    19 #define SERVICEPROVIDER_H
       
    20 
       
    21 #include <QList>
       
    22 #include <QObject>
       
    23 #include <HbIcon>
       
    24 
       
    25 
       
    26 class ServiceProvider
       
    27 {
       
    28 public:
       
    29     ServiceProvider() {}
       
    30     virtual ~ServiceProvider() {}
       
    31     QString Name() const {return m_name;}
       
    32     void SetName(const QString& aName) { m_name = aName; }
       
    33     int Id() const {return m_providerId;}
       
    34     void SetId(const int providerId) { m_providerId = providerId; }
       
    35     HbIcon Icon() const {return m_icon;}
       
    36     void SetIcon(const HbIcon& icon) { m_icon = icon; }
       
    37     QString Description() const {return m_description;}
       
    38     void SetDescription(const QString& description) { m_description = description; }
       
    39     QString ProviderUrl() const {return m_providerUrl;}
       
    40     void SetProviderUrl(const QString& providerUrl) { m_providerUrl = providerUrl; }
       
    41     QString PluginName() const {return m_pluginName;}
       
    42     void SetPluginName(const QString& pluginName) { m_pluginName = pluginName; }
       
    43     
       
    44 private:
       
    45 	int m_providerId;
       
    46     QString m_name;
       
    47     HbIcon m_icon;
       
    48     QString m_description;
       
    49     QString m_providerUrl;
       
    50     QString m_pluginName;
       
    51 };
       
    52 
       
    53 #endif  // SERVICEPROVIDER_H