添加注释

Signed-off-by: wangqing <wangqing136@huawei.com>
This commit is contained in:
wangqing 2022-03-25 11:32:41 +08:00
parent 2bf95bc094
commit 71db38e8c3
3 changed files with 11 additions and 7 deletions

View File

@ -43,18 +43,21 @@ public:
/**
* @brief Called back when a transient task start.
*
* @param info Transient task app info.
*/
virtual void OnTransientTaskStart(const std::shared_ptr<TransientTaskAppInfo>& info) = 0;
/**
* @brief Called back when a transient task end.
*
* @param info Transient task app info.
*/
virtual void OnTransientTaskEnd(const std::shared_ptr<TransientTaskAppInfo>& info) = 0;
/**
* @brief Called back when a continuous task start.
*
* @param continuousTaskCallbackInfo Continuous task app info.
*/
virtual void OnContinuousTaskStart(
@ -62,6 +65,7 @@ public:
/**
* @brief Called back when a continuous task stop.
*
* @param continuousTaskCallbackInfo Continuous task app info.
*/
virtual void OnContinuousTaskStop(

View File

@ -129,7 +129,7 @@ private:
/**
* @brief Called back when a continuous task start.
*
* @param continuousTaskCallbackInfo continuous task app info.
* @param continuousTaskCallbackInfo Continuous task app info.
*/
void OnContinuousTaskStart(
const std::shared_ptr<ContinuousTaskCallbackInfo> &continuousTaskCallbackInfo) override;
@ -144,7 +144,7 @@ private:
/**
* @brief get managed proxy of background tasks.
*
* @return Returns true if success,else false.
* @return true if success, else false.
*/
bool GetBackgroundTaskMgrProxy();

View File

@ -30,28 +30,28 @@ public:
/**
* @brief Get the id of type.
*
* @returns Returns the id of type
* @return the id of type.
*/
int32_t GetTypeId() const;
/**
* @brief Get the uid of notification crector.
*
* @returns Returns the uid of the notification creator.
* @return the uid of the notification creator.
*/
int32_t GetCreatorUid() const;
/**
* @brief Get the pid of notification crector.
*
* @returns Returns the pid of the notification creator.
* @return the pid of the notification creator.
*/
pid_t GetCreatorPid() const;
/**
* @brief Get the name of ability.
*
* @returns Returns the name of ability.
* @return the name of ability.
*/
std::string GetAbilityName() const;
@ -59,7 +59,7 @@ public:
* @brief Marshals an Intent into a Parcel.
*
* @param parcel Indicates the Parcel object for marshalling.
* @return Returns true if success,else false.
* @return true if success, else false.
*/
bool Marshalling(Parcel &parcel) const;
static ContinuousTaskCallbackInfo *Unmarshalling(Parcel &parcel);