onlinesearchproviders/common/inc/serviceprovider.h
author hgs
Mon, 28 Jun 2010 11:03:15 +0530
changeset 9 4a2987baf8f7
permissions -rw-r--r--
201025
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description: 
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#ifndef SERVICEPROVIDER_H
hgs
parents:
diff changeset
    19
#define SERVICEPROVIDER_H
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
#include <QList>
hgs
parents:
diff changeset
    22
#include <QObject>
hgs
parents:
diff changeset
    23
#include <HbIcon>
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
class ServiceProvider
hgs
parents:
diff changeset
    27
{
hgs
parents:
diff changeset
    28
public:
hgs
parents:
diff changeset
    29
    ServiceProvider() {}
hgs
parents:
diff changeset
    30
    virtual ~ServiceProvider() {}
hgs
parents:
diff changeset
    31
    QString Name() const {return m_name;}
hgs
parents:
diff changeset
    32
    void SetName(const QString& aName) { m_name = aName; }
hgs
parents:
diff changeset
    33
    int Id() const {return m_providerId;}
hgs
parents:
diff changeset
    34
    void SetId(const int providerId) { m_providerId = providerId; }
hgs
parents:
diff changeset
    35
    HbIcon Icon() const {return m_icon;}
hgs
parents:
diff changeset
    36
    void SetIcon(const HbIcon& icon) { m_icon = icon; }
hgs
parents:
diff changeset
    37
    QString Description() const {return m_description;}
hgs
parents:
diff changeset
    38
    void SetDescription(const QString& description) { m_description = description; }
hgs
parents:
diff changeset
    39
    QString ProviderUrl() const {return m_providerUrl;}
hgs
parents:
diff changeset
    40
    void SetProviderUrl(const QString& providerUrl) { m_providerUrl = providerUrl; }
hgs
parents:
diff changeset
    41
    QString PluginName() const {return m_pluginName;}
hgs
parents:
diff changeset
    42
    void SetPluginName(const QString& pluginName) { m_pluginName = pluginName; }
hgs
parents:
diff changeset
    43
    
hgs
parents:
diff changeset
    44
private:
hgs
parents:
diff changeset
    45
	int m_providerId;
hgs
parents:
diff changeset
    46
    QString m_name;
hgs
parents:
diff changeset
    47
    HbIcon m_icon;
hgs
parents:
diff changeset
    48
    QString m_description;
hgs
parents:
diff changeset
    49
    QString m_providerUrl;
hgs
parents:
diff changeset
    50
    QString m_pluginName;
hgs
parents:
diff changeset
    51
};
hgs
parents:
diff changeset
    52
hgs
parents:
diff changeset
    53
#endif  // SERVICEPROVIDER_H