browsercore/appfw/Api/Managers/hsbookmarkpublishclient.h
changeset 15 73c48011b8c7
equal deleted inserted replaced
13:491a1d15372f 15:73c48011b8c7
       
     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: Homescreen bookmark publishing client
       
    15 *
       
    16 */
       
    17 #ifndef HSBOOKMARKPUBLISHCLIENT_H
       
    18 #define HSBOOKMARKPUBLISHCLIENT_H
       
    19 #include "brtglobal.h"
       
    20 #include <QObject>
       
    21 
       
    22 #include <qservicemanager.h>
       
    23 
       
    24 #include "singleton.h"
       
    25 
       
    26 QTM_USE_NAMESPACE
       
    27 
       
    28 namespace WRT {
       
    29 
       
    30 class WRT_BROWSER_EXPORT HsBookmarkPublishClient: public QObject
       
    31 {
       
    32     Q_OBJECT
       
    33     
       
    34 public:
       
    35 
       
    36     enum status {
       
    37             SUCCESS = 0,
       
    38             FAILURE = -1
       
    39     };
       
    40     
       
    41     HsBookmarkPublishClient(QObject *parent=0 );
       
    42     ~HsBookmarkPublishClient();
       
    43     
       
    44 public slots:
       
    45     int addWidget(QString Title, QString Url);
       
    46     
       
    47 private:
       
    48     bool saveFavicon(const QString Url, const QString iconFileName);
       
    49     QString getIconFileName(QString url) const;
       
    50 	  
       
    51     QString mWidgetUri;   
       
    52 };
       
    53 
       
    54 // Define the Meyer's singleton for HsBookmarkPublishClient 
       
    55 typedef Singleton<HsBookmarkPublishClient> HsBookmarkPublishClientSingleton;
       
    56 
       
    57 }
       
    58 
       
    59 #endif HSBOOKMARKPUBLISHCLIENT_H