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
|
// Callers are encouraged to use the setters provided which take care of
|
||||||
// setting |options| as desired.
|
// setting |options| as desired.
|
||||||
struct BASE_EXPORT ShortcutProperties {
|
struct BASE_EXPORT ShortcutProperties {
|
||||||
enum IndividualProperties {
|
using IndividualProperties = uint32_t;
|
||||||
PROPERTIES_TARGET = 1U << 0,
|
static constexpr IndividualProperties PROPERTIES_TARGET = 1U << 0;
|
||||||
PROPERTIES_WORKING_DIR = 1U << 1,
|
static constexpr IndividualProperties PROPERTIES_WORKING_DIR = 1U << 1;
|
||||||
PROPERTIES_ARGUMENTS = 1U << 2,
|
static constexpr IndividualProperties PROPERTIES_ARGUMENTS = 1U << 2;
|
||||||
PROPERTIES_DESCRIPTION = 1U << 3,
|
static constexpr IndividualProperties PROPERTIES_DESCRIPTION = 1U << 3;
|
||||||
PROPERTIES_ICON = 1U << 4,
|
static constexpr IndividualProperties PROPERTIES_ICON = 1U << 4;
|
||||||
PROPERTIES_APP_ID = 1U << 5,
|
static constexpr IndividualProperties PROPERTIES_APP_ID = 1U << 5;
|
||||||
PROPERTIES_DUAL_MODE = 1U << 6,
|
static constexpr IndividualProperties PROPERTIES_DUAL_MODE = 1U << 6;
|
||||||
PROPERTIES_TOAST_ACTIVATOR_CLSID = 1U << 7,
|
static constexpr IndividualProperties PROPERTIES_TOAST_ACTIVATOR_CLSID = 1U
|
||||||
// Be sure to update the values below when adding a new property.
|
<< 7;
|
||||||
PROPERTIES_ALL = PROPERTIES_TARGET | PROPERTIES_WORKING_DIR |
|
// Be sure to update the values below when adding a new property.
|
||||||
PROPERTIES_ARGUMENTS | PROPERTIES_DESCRIPTION |
|
static constexpr IndividualProperties PROPERTIES_ALL =
|
||||||
PROPERTIES_ICON | PROPERTIES_APP_ID |
|
PROPERTIES_TARGET | PROPERTIES_WORKING_DIR | PROPERTIES_ARGUMENTS |
|
||||||
PROPERTIES_DUAL_MODE | PROPERTIES_TOAST_ACTIVATOR_CLSID
|
PROPERTIES_DESCRIPTION | PROPERTIES_ICON | PROPERTIES_APP_ID |
|
||||||
|
PROPERTIES_DUAL_MODE | PROPERTIES_TOAST_ACTIVATOR_CLSID;
|
||||||
};
|
};
|
||||||
|
|
||||||
ShortcutProperties();
|
ShortcutProperties();
|
||||||
|
|
Loading…
Reference in a new issue