17 #ifndef __NUGU_DIRECTIVE_SEQUENCER_INTERFACE_H__
18 #define __NUGU_DIRECTIVE_SEQUENCER_INTERFACE_H__
25 namespace NuguClientKit {
140 virtual bool cancel(
const std::string& dialog_id,
bool cancel_active_directive =
true) = 0;
151 virtual bool cancel(
const std::string& dialog_id, std::set<std::string> groups) = 0;
161 virtual bool cancelAll(
bool cancel_active_directive =
true) = 0;
IDirectiveSequencerListener.
Definition: directive_sequencer_interface.hh:61
virtual bool onPreHandleDirective(NuguDirective *ndir)=0
Notify the directive to handle in advance.
virtual void onCancelDirective(NuguDirective *ndir)=0
Notify the directive to cancel.
virtual bool onHandleDirective(NuguDirective *ndir)=0
Notify the directive to handle.
IDirectiveSequencer.
Definition: directive_sequencer_interface.hh:94
virtual bool addPolicy(const std::string &name_space, const std::string &name, BlockingPolicy policy)=0
Add the BlockingPolicy.
virtual const std::string & getCanceledDialogId()=0
Get the last canceled dialog_id.
virtual bool cancelAll(bool cancel_active_directive=true)=0
Cancels all pending directives. The canceled directives are freed.
virtual BlockingPolicy getPolicy(const std::string &name_space, const std::string &name)=0
Get the BlockingPolicy for namespace.name.
virtual bool complete(NuguDirective *ndir)=0
Complete the blocking directive. The NuguDirective object will be destroyed. If there are pending dir...
virtual bool cancel(const std::string &dialog_id, std::set< std::string > groups)=0
Cancels specific pending directives related to the dialog_id. The canceled directives are freed.
virtual void removeListener(const std::string &name_space, IDirectiveSequencerListener *listener)=0
Remove the Listener object.
virtual void addListener(const std::string &name_space, IDirectiveSequencerListener *listener)=0
Add the Listener object.
virtual bool add(NuguDirective *ndir)=0
Add new directive to sequencer.
virtual bool cancel(const std::string &dialog_id, bool cancel_active_directive=true)=0
Cancel all pending directives related to the dialog_id. The canceled directives are freed.
virtual const NuguDirective * findPending(const std::string &name_space, const std::string &name)=0
Find directive from pending list.
BlockingMedium
BlockingMedium.
Definition: directive_sequencer_interface.hh:42
struct NuguClientKit::_BlockingPolicy BlockingPolicy
BlockingPolicy.
struct _nugu_directive NuguDirective
Directive object.
Definition: nugu_directive.h:48
@ NUGU_DIRECTIVE_MEDIUM_ANY
Definition: nugu_directive.h:57
@ NUGU_DIRECTIVE_MEDIUM_NONE
Definition: nugu_directive.h:56
@ NUGU_DIRECTIVE_MEDIUM_VISUAL
Definition: nugu_directive.h:55
@ NUGU_DIRECTIVE_MEDIUM_AUDIO
Definition: nugu_directive.h:54
BlockingPolicy.
Definition: directive_sequencer_interface.hh:52
BlockingMedium medium
Definition: directive_sequencer_interface.hh:53
bool isBlocking
Definition: directive_sequencer_interface.hh:54