homescreenapp/examples/contentpublishclient/inc/contentpublishclient.h
branchRCL_3
changeset 82 5f0182e07bfb
equal deleted inserted replaced
79:f00a6757af32 82:5f0182e07bfb
       
     1 /*
       
     2 * Copyright (c) 2010 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: Example of home screen content publishing client
       
    15 *
       
    16 */
       
    17 
       
    18 #include <QObject>
       
    19 
       
    20 #include <qservicemanager.h>
       
    21 
       
    22 QTM_USE_NAMESPACE
       
    23 
       
    24 class ContentPublishClient: public QObject
       
    25 {
       
    26     Q_OBJECT
       
    27     
       
    28 public:
       
    29     ContentPublishClient(QServiceManager &manager, QObject *parent=0 );
       
    30     ~ContentPublishClient();
       
    31     bool load();
       
    32     
       
    33 public slots:
       
    34     void addHelloworldWidget();
       
    35     void addClockWidget();
       
    36     void setWallpaper1();
       
    37     void setWallpaper2();
       
    38 
       
    39 protected:
       
    40     bool addWidget(QString widgetUri);
       
    41     bool setWallpaper(QString fileName);
       
    42     
       
    43 private:
       
    44     QObject* mService;
       
    45     QServiceManager* mManager;    
       
    46 };