homescreenapp/hshomescreenclientplugin/inc/hshomescreenclient.h
branchRCL_3
changeset 82 5f0182e07bfb
equal deleted inserted replaced
79:f00a6757af32 82:5f0182e07bfb
       
     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: Homescreen client api.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HSHOMESCREENCLIENT_H
       
    19 #define HSHOMESCREENCLIENT_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QVariant>
       
    23 
       
    24 #include "hstest_global.h"
       
    25 
       
    26 HOMESCREEN_TEST_CLASS(HsHomescreenClientPluginTest)
       
    27 
       
    28 class XQServiceRequest;
       
    29 
       
    30 class HsHomescreenClient : public QObject
       
    31 {
       
    32     Q_OBJECT
       
    33 
       
    34 public:
       
    35     HsHomescreenClient(QObject *parent = 0);
       
    36     virtual ~HsHomescreenClient();
       
    37  
       
    38 public slots:
       
    39     bool addWidget(const QString &uri, const QVariantHash &preferences);
       
    40     bool setWallpaper(const QString &fileName);
       
    41 private slots:
       
    42     void onRequestCompleted(const QVariant &result);
       
    43     void onRequestError(int error);
       
    44     void doAddWidget(const QString &uri, const QVariantHash &preferences);
       
    45     void doSetWallpaper(const QString &fileName);
       
    46 signals:
       
    47     void requestFinished();
       
    48 private:
       
    49     XQServiceRequest* mAsyncRequest;
       
    50     bool    mRequestResult;
       
    51     
       
    52     HOMESCREEN_TEST_FRIEND_CLASS(HsHomescreenClientPluginTest)
       
    53 };
       
    54 
       
    55 #endif