homescreenapp/serviceproviders/hsmenuserviceprovider/inc/hsmenuservice.h
changeset 85 35368b604b28
parent 77 4b195f3bea29
child 86 e4f038c420f7
equal deleted inserted replaced
77:4b195f3bea29 85:35368b604b28
    37 
    37 
    38 public:
    38 public:
    39 
    39 
    40     // Function declarations
    40     // Function declarations
    41     static HsMenuItemModel *getAllApplicationsModel(
    41     static HsMenuItemModel *getAllApplicationsModel(
    42         HsSortAttribute sortAttribute = DescendingNameHsSortAttribute);
    42         Hs::HsSortAttribute sortAttribute = Hs::DescendingNameHsSortAttribute);
    43     static HsMenuItemModel *getAllCollectionsModel();
    43     static HsMenuItemModel *getAllCollectionsModel();
    44     static HsMenuItemModel *getInstalledModel(
    44     static HsMenuItemModel *getInstalledModel(
    45         HsSortAttribute sortAttribute = DescendingNameHsSortAttribute);
    45         Hs::HsSortAttribute sortAttribute = Hs::DescendingNameHsSortAttribute);
    46     static HsMenuItemModel *getCollectionModel(int collectionId,
    46     static HsMenuItemModel *getCollectionModel(int collectionId,
    47             HsSortAttribute sortAttribute = LatestOnTopHsSortAttribute,
    47             Hs::HsSortAttribute sortAttribute = Hs::LatestOnTopHsSortAttribute,
    48             const QString &collectionType = collectionTypeName());
    48             const QString &collectionType = Hs::collectionTypeName);
    49     static QStringList getCollectionNames();
    49     static QStringList getCollectionNames();
    50     static QString getName(int entryId);
    50     static QString getName(int entryId);
    51     static int executeAction(int entryId, const QString &actionName =
    51     static int executeAction(int entryId, const QString &actionName =
    52                                   openActionIdentifier());
    52                                   Hs::openActionIdentifier);
    53     static bool launchTaskSwitcher();
    53     static bool launchTaskSwitcher();
    54 
    54 
    55     static int createCollection(const QString &name);
    55     static int createCollection(const QString &name);
    56     static bool renameCollection(int collectionId,
    56     static bool renameCollection(int collectionId,
    57                                  const QString &newCollectionName);
    57                                  const QString &newCollectionName);
    65 
    65 
    66     static int allCollectionsId();
    66     static int allCollectionsId();
    67     
    67     
    68     static int collectionIdByType(const QString& collectionType);
    68     static int collectionIdByType(const QString& collectionType);
    69 
    69 
    70     static bool touch(int entryId);
    70     static void touch(int entryId);
       
    71     
       
    72     static void touch(const QList<int> &entryIdList);
    71     
    73     
    72     static int launchSoftwareUpdate();
    74     static int launchSoftwareUpdate();
    73 
    75 
    74 private:
    76 private:
    75     // data
    77     // data