Update shortcut.h
This commit is contained in:
parent
1f17cec81f
commit
61f51ef7da
1 changed files with 15 additions and 14 deletions
|
@ -32,20 +32,21 @@ enum class ShortcutOperation {
|
|||
// Callers are encouraged to use the setters provided which take care of
|
||||
// setting |options| as desired.
|
||||
struct BASE_EXPORT ShortcutProperties {
|
||||
enum IndividualProperties {
|
||||
PROPERTIES_TARGET = 1U << 0,
|
||||
PROPERTIES_WORKING_DIR = 1U << 1,
|
||||
PROPERTIES_ARGUMENTS = 1U << 2,
|
||||
PROPERTIES_DESCRIPTION = 1U << 3,
|
||||
PROPERTIES_ICON = 1U << 4,
|
||||
PROPERTIES_APP_ID = 1U << 5,
|
||||
PROPERTIES_DUAL_MODE = 1U << 6,
|
||||
PROPERTIES_TOAST_ACTIVATOR_CLSID = 1U << 7,
|
||||
// Be sure to update the values below when adding a new property.
|
||||
PROPERTIES_ALL = PROPERTIES_TARGET | PROPERTIES_WORKING_DIR |
|
||||
PROPERTIES_ARGUMENTS | PROPERTIES_DESCRIPTION |
|
||||
PROPERTIES_ICON | PROPERTIES_APP_ID |
|
||||
PROPERTIES_DUAL_MODE | PROPERTIES_TOAST_ACTIVATOR_CLSID
|
||||
using IndividualProperties = uint32_t;
|
||||
static constexpr IndividualProperties PROPERTIES_TARGET = 1U << 0;
|
||||
static constexpr IndividualProperties PROPERTIES_WORKING_DIR = 1U << 1;
|
||||
static constexpr IndividualProperties PROPERTIES_ARGUMENTS = 1U << 2;
|
||||
static constexpr IndividualProperties PROPERTIES_DESCRIPTION = 1U << 3;
|
||||
static constexpr IndividualProperties PROPERTIES_ICON = 1U << 4;
|
||||
static constexpr IndividualProperties PROPERTIES_APP_ID = 1U << 5;
|
||||
static constexpr IndividualProperties PROPERTIES_DUAL_MODE = 1U << 6;
|
||||
static constexpr IndividualProperties PROPERTIES_TOAST_ACTIVATOR_CLSID = 1U
|
||||
<< 7;
|
||||
// Be sure to update the values below when adding a new property.
|
||||
static constexpr IndividualProperties PROPERTIES_ALL =
|
||||
PROPERTIES_TARGET | PROPERTIES_WORKING_DIR | PROPERTIES_ARGUMENTS |
|
||||
PROPERTIES_DESCRIPTION | PROPERTIES_ICON | PROPERTIES_APP_ID |
|
||||
PROPERTIES_DUAL_MODE | PROPERTIES_TOAST_ACTIVATOR_CLSID;
|
||||
};
|
||||
|
||||
ShortcutProperties();
|
||||
|
|
Loading…
Reference in a new issue