homescreenapp/hsapplication/inc/hshomescreenclientserviceprovider.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 15:43:04 +0300
changeset 46 23b5d6a29cce
parent 39 4e8ebe173323
child 60 30f14686fb04
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* Copyright (c) 2010 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:
*
*/

#ifndef HSHOMESCREENCLIENTSERVICEPROVIDER_H
#define HSHOMESCREENCLIENTSERVICEPROVIDER_H

#include <QVariant>

#include <xqserviceprovider.h>
#include "hswidgetcomponentdescriptor.h"

class HsHomeScreenClientServiceProvider : public XQServiceProvider
{
    Q_OBJECT

public:
    HsHomeScreenClientServiceProvider(QObject *parent = 0);
    ~HsHomeScreenClientServiceProvider();
    
public slots:
    bool addWidget(const QString &uri,const QVariantHash &preferences);
    bool setWallpaper(const QString &fileName);
    bool widgetUninstalled(const QVariantHash &widgetDescriptor);
    
private:
    HsWidgetComponentDescriptor widgetComponentDescriptor(const QVariantHash& widgetDescriptor);
};

#endif // HSHOMESCREENCLIENTSERVICEPROVIDER_H