homescreen_plat/homescreenclient_api/inc/hsmenuclient.h
changeset 97 66b5fe3c07fd
parent 71 1db7cc813a4e
equal deleted inserted replaced
95:32e56106abf2 97:66b5fe3c07fd
       
     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: hsmenuclient.h
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef HSMENUCLIENT_H
       
    19 #define HSMENUCLIENT_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QVariant>
       
    23 #include <qservicemanager.h>
       
    24 
       
    25 QTM_USE_NAMESPACE
       
    26 
       
    27 //mandatory keys
       
    28 const QString hsItemName("item:name");
       
    29 // or for localized name
       
    30 const QString hsItemLocName("item:locname");
       
    31 
       
    32 const QString hsitemLaunchUri("item:launchuri");
       
    33 const QString hsitemPublisherId("item:publisherId");
       
    34 
       
    35 //not mandatory
       
    36 const QString hsItemWidgetUri("widget:uri");
       
    37 const QString hsItemDescription("item:description");
       
    38 // or for localized name
       
    39 const QString hsItemLocDescription("item:locdescription");
       
    40 
       
    41 //for icon - not mandatory
       
    42 const QString hsIconFileName("icon:filename");//to display specific icon from file
       
    43 const QString hsIconName("icon:name");// HbIcon
       
    44 const QString hsIconApplicationId("icon:applicationid"); // icon from associated application
       
    45 
       
    46 
       
    47 class HsMenuClientPrivate;
       
    48 
       
    49 class HsMenuClient : public QObject
       
    50 {
       
    51     Q_OBJECT
       
    52 
       
    53 public:
       
    54     HsMenuClient(QObject *parent = 0);
       
    55     ~HsMenuClient();
       
    56 public slots:
       
    57    bool add(const QVariantMap &entryPreference = QVariantMap());
       
    58    bool remove(const QVariantMap &queryPreference = QVariantMap()) const;
       
    59    
       
    60    QList<QVariantMap > getList(const QVariantMap &queryPreference = QVariantMap());
       
    61   
       
    62 private:
       
    63    Q_DISABLE_COPY(HsMenuClient)
       
    64     /**
       
    65      * Pointer to a private implementation.
       
    66      */
       
    67    HsMenuClientPrivate * const m_d;
       
    68 };
       
    69 
       
    70 
       
    71 
       
    72 #endif // HSMENUCLIENT_H