mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-18 10:16:47 +02:00
LocationBookmarks JSDoc
This commit is contained in:
parent
d1199f9e1d
commit
c2b67f28d0
2 changed files with 15 additions and 4 deletions
|
@ -52,6 +52,7 @@ protected:
|
|||
|
||||
protected slots:
|
||||
/**jsdoc
|
||||
* Prompts the user to delete a bookmark: the user can select the bookmark to delete in the dialog that is opened.
|
||||
* @function LocationBookmarks.deleteBookmark
|
||||
*/
|
||||
virtual void deleteBookmark();
|
||||
|
|
|
@ -17,6 +17,9 @@
|
|||
#include "Bookmarks.h"
|
||||
|
||||
/**jsdoc
|
||||
* The <code>LocationBookmarks</code> API provides facilities for working with location bookmarks. A location bookmark
|
||||
* associates a name with a metaverse address.
|
||||
*
|
||||
* @namespace LocationBookmarks
|
||||
*
|
||||
* @hifi-client-entity
|
||||
|
@ -35,28 +38,35 @@ public:
|
|||
static const QString HOME_BOOKMARK;
|
||||
|
||||
/**jsdoc
|
||||
* Gets the metaverse address associated with a bookmark.
|
||||
* @function LocationBookmarks.getAddress
|
||||
* @param {string} bookmarkName Name of the bookmark to get the address for.
|
||||
* @returns {string} The url for the specified bookmark. If the bookmark does not exist, the empty string will be returned.
|
||||
* @param {string} bookmarkName - Name of the bookmark to get the metaverse address for. {Case sensitive.)
|
||||
* @returns {string} The metaverse address for the bookmark. If the bookmark does not exist, <code>""</code> is returned.
|
||||
* @example <caption>Report the "Home" bookmark's metaverse address.</caption>
|
||||
* print("Home bookmark's address: " + LocationBookmarks.getAddress("Home"));
|
||||
*/
|
||||
Q_INVOKABLE QString getAddress(const QString& bookmarkName);
|
||||
|
||||
public slots:
|
||||
|
||||
/**jsdoc
|
||||
* Prompts the user to bookmark their current location: the user can specify the name of the bookmark in the dialog that is
|
||||
* opened.
|
||||
* @function LocationBookmarks.addBookmark
|
||||
*/
|
||||
void addBookmark();
|
||||
|
||||
/**jsdoc
|
||||
* Sets the metaverse address associated with the "Home" bookmark.
|
||||
* @function LocationBookmarks.setHomeLocationToAddress
|
||||
* @param {string} address
|
||||
* @param {string} address - The metaverse address to set the "Home" bookmark to.
|
||||
*/
|
||||
void setHomeLocationToAddress(const QVariant& address);
|
||||
|
||||
/**jsdoc
|
||||
* Gets the metaverse address associated with the "Home" bookmark.
|
||||
* @function LocationBookmarks.getHomeLocationAddress
|
||||
* @returns {string} The url for the home location bookmark
|
||||
* @returns {string} The metaverse address for the "Home" bookmark.
|
||||
*/
|
||||
QString getHomeLocationAddress();
|
||||
|
||||
|
|
Loading…
Reference in a new issue