2 * DEBUG: section 16 Cache Manager API
6 #ifndef SQUID_MGR_ACTION_PROFILE_H
7 #define SQUID_MGR_ACTION_PROFILE_H
9 #include "mgr/ActionCreator.h"
10 #include "mgr/forward.h"
15 /// hard-coded Cache Manager action configuration, including Action creator
16 class ActionProfile
: public RefCountable
19 typedef RefCount
<ActionProfile
> Pointer
;
22 ActionProfile(const char* aName
, const char* aDesc
, bool aPwReq
,
23 bool anAtomic
, const ActionCreatorPointer
&aCreator
):
24 name(aName
), desc(aDesc
), isPwReq(aPwReq
), isAtomic(anAtomic
),
29 const char *name
; ///< action label to uniquely identify this action
30 const char *desc
; ///< action description to build an action menu list
31 bool isPwReq
; ///< whether password is required to perform the action
32 bool isAtomic
; ///< whether action dumps everything in one dump() call
33 ActionCreatorPointer creator
; ///< creates Action objects with this profile
39 operator <<(std::ostream
&os
, const Mgr::ActionProfile
&profile
)
41 return os
<< profile
.name
;
44 #endif /* SQUID_MGR_ACTION_PROFILE_H */