diff options
Diffstat (limited to 'src/location/places/qplacemanagerengine.h')
-rw-r--r-- | src/location/places/qplacemanagerengine.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/location/places/qplacemanagerengine.h b/src/location/places/qplacemanagerengine.h index 9dfe084a..7335b452 100644 --- a/src/location/places/qplacemanagerengine.h +++ b/src/location/places/qplacemanagerengine.h @@ -75,12 +75,18 @@ public: virtual QPlaceTextPredictionReply *textPredictions(const QPlaceSearchRequest &request) = 0; virtual QPlaceIdReply *savePlace(const QPlace &place, QPlaceManager::VisibilityScope scope) = 0; + virtual QPlaceIdReply *removePlace(const QPlace &place) = 0; virtual QPlaceManager::VisibilityScopes supportedSaveVisibilityScopes() const = 0; - virtual QPlaceIdReply *removePlace(const QPlace &place) = 0; + virtual QPlaceIdReply *saveCategory(const QPlaceCategory &category, const QString &parentId) = 0; + virtual QPlaceIdReply *removeCategory(const QString &categoryId) = 0; virtual QPlaceReply *initializeCategories() = 0; - virtual QList<QPlaceCategory> categories(const QPlaceCategory &parent) const = 0; + virtual QString parentCategoryId(const QString &categoryId) const = 0; + virtual QStringList childrenCategoryIds(const QString &categoryId) const = 0; + virtual QPlaceCategory category(const QString &categoryId) const = 0; + + virtual QList<QPlaceCategory> childCategories(const QString &parentId) const = 0; virtual QLocale locale() const = 0; virtual void setLocale(const QLocale &locale) = 0; @@ -94,6 +100,10 @@ Q_SIGNALS: void placeUpdated(const QString &placeId); void placeRemoved(const QString &placeId); + void categoryAdded(const QPlaceCategory &category, const QString &parentCategoryId); + void categoryUpdated(const QPlaceCategory &category, const QString &parentCategoryId); + void categoryRemoved(const QString &categoryId, const QString &parentCategoryId); + private: void setManagerName(const QString &managerName); void setManagerVersion(int managerVersion); |