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); |