Changeset View
Changeset View
Standalone View
Standalone View
src/kmoretools/kmoretools.h
Show First 20 Lines • Show All 479 Lines • ▼ Show 20 Line(s) | 380 | public: | |||
---|---|---|---|---|---|
480 | /** | 480 | /** | ||
481 | * Will override the "Exec=" line of the service. Will only apply if the | 481 | * Will override the "Exec=" line of the service. Will only apply if the | ||
482 | * service is installed. | 482 | * service is installed. | ||
483 | * | 483 | * | ||
484 | * @see KService::setExec(...) | 484 | * @see KService::setExec(...) | ||
485 | */ | 485 | */ | ||
486 | void setExec(const QString& exec); | 486 | void setExec(const QString& exec); | ||
487 | 487 | | |||
488 | QUrl appstreamUrl() const; | ||||
dhaumann: API documentation is missing. Please also add @since 5.48, since this will be the next… | |||||
489 | | ||||
490 | void setAppstreamUrl(const QUrl& url); | ||||
What about this: /** * Returns the associated appstream id that was previously set with setAppstreamId(). * If no appstream id was set, an empty string is returned. * * @return The service's appstream id. * * @since 5.48 */ dhaumann: What about this:
/**
* Returns the associated appstream id that was previously set… | |||||
491 | | ||||
Please add a comment and add something like "@since 5.xx" (see elsewhere in the this file) to indicate since which frameworks version this will be available. gregormi: Please add a comment and add something like "@since 5.xx" (see elsewhere in the this file) to… | |||||
488 | private: | 492 | private: | ||
489 | /** | 493 | /** | ||
490 | * @param kmtDesktopfileSubdir where to find kmt-desktopfiles | 494 | * @param kmtDesktopfileSubdir where to find kmt-desktopfiles | ||
491 | * @param desktopEntryName name of the desktopfile without the .desktop extension | 495 | * @param desktopEntryName name of the desktopfile without the .desktop extension | ||
Please move @since down. The tags are usually the last part in the API documentation. dhaumann: Please move @since down. The tags are usually the last part in the API documentation. | |||||
492 | * @param isInstalled true if desktop file is installed | 496 | * @param isInstalled true if desktop file is installed | ||
493 | * @param installedService not nullptr if @p isInstalled is true | 497 | * @param installedService not nullptr if @p isInstalled is true | ||
494 | * @param kmtDesktopfile not null if app-local kmt-desktopfile is found and valid | 498 | * @param kmtDesktopfile not null if app-local kmt-desktopfile is found and valid | ||
495 | */ | 499 | */ | ||
496 | KMoreToolsService(const QString& kmtDesktopfileSubdir, | 500 | KMoreToolsService(const QString& kmtDesktopfileSubdir, | ||
I am not so familiar with appstream. Why not only setting the COMPONENT-ID instead of the whole URL? Then the method would be named setAppstreamComponentId. gregormi: I am not so familiar with appstream. Why not only setting the COMPONENT-ID instead of the whole… | |||||
This is also missing the parameter, which can be used for documentation: /** * Sets the appstream id of the service. This is used to create a * appstream url for installing the service via a software store * (e.g. Discover). For instance, the appstream id for filelight is * "org.kde.filelight.desktop". * * @param id the appstream id * * @since 5.48 */ void setAppstreamId(const QString& id); dhaumann: This is also missing the parameter, which can be used for documentation:
/**
* Sets… | |||||
497 | const QString& desktopEntryName, | 501 | const QString& desktopEntryName, | ||
498 | bool isInstalled, KService::Ptr installedService, | 502 | bool isInstalled, KService::Ptr installedService, | ||
499 | KService::Ptr kmtDesktopfile); | 503 | KService::Ptr kmtDesktopfile); | ||
500 | 504 | | |||
501 | /** | 505 | /** | ||
502 | * No copy semantic => private and no implementation | 506 | * No copy semantic => private and no implementation | ||
503 | */ | 507 | */ | ||
504 | KMoreToolsService(const KMoreTools&); | 508 | KMoreToolsService(const KMoreTools&); | ||
▲ Show 20 Lines • Show All 261 Lines • Show Last 20 Lines |
API documentation is missing. Please also add @since 5.48, since this will be the next frameworks release, see: https://community.kde.org/Schedules/Frameworks