homescreenapp/hsmenuclientplugin/inc/hsmenuclient.h
changeset 39 4e8ebe173323
child 60 30f14686fb04
equal deleted inserted replaced
36:cdae8c6c3876 39:4e8ebe173323
       
     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 const QString hsitemLaunchUri("item:launchuri");
       
    30 const QString hsitemPublisherId("item:publisherId");
       
    31 
       
    32 //not mandatory
       
    33 const QString hsItemWidgetUri("widget:uri");
       
    34 const QString hsItemDescription("item:description");
       
    35 
       
    36 //for icon - not mandatory
       
    37 const QString hsIconFileName("icon:filename");//to display specific icon from file
       
    38 const QString hsIconName("icon:name");// HbIcon
       
    39 const QString hsIconApplicationId("icon:applicationid"); // icon from associated application
       
    40 
       
    41 
       
    42 class HsMenuClientPrivate;
       
    43 
       
    44 class HsMenuClient : public QObject
       
    45 {
       
    46     Q_OBJECT
       
    47 
       
    48 public:
       
    49     HsMenuClient(QObject *parent = 0);
       
    50     ~HsMenuClient();
       
    51 public slots:
       
    52    bool add(const QVariantMap &entryPreference = QVariantMap());
       
    53    bool remove(const QVariantMap &queryPreference = QVariantMap()) const;
       
    54    
       
    55    QList<QVariantMap > getList(const QVariantMap &queryPreference = QVariantMap());
       
    56   
       
    57 private:
       
    58    Q_DISABLE_COPY(HsMenuClient)
       
    59     /**
       
    60      * Pointer to a private implementation.
       
    61      */
       
    62    HsMenuClientPrivate * const m_d;
       
    63 };
       
    64 
       
    65 
       
    66 
       
    67 #endif // HSMENUCLIENT_H