19 #ifndef GNASH_AS_PROP_FLAGS_H 20 #define GNASH_AS_PROP_FLAGS_H 69 PropFlags(
const bool read_only,
const bool dont_delete,
72 _flags(((read_only) ?
readOnly : 0) |
86 return (_flags == o._flags);
100 if (test<onlySWF6Up>() && swfVersion < 6)
return false;
101 if (test<ignoreSWF6>() && swfVersion == 6)
return false;
102 if (test<onlySWF7Up>() && swfVersion < 7)
return false;
103 if (test<onlySWF8Up>() && swfVersion < 8)
return false;
104 if (test<onlySWF9Up>() && swfVersion < 9)
return false;
109 if (swfVersion == 6) {
130 bool set_flags(std::uint16_t setTrue, std::uint16_t setFalse = 0) {
139 std::uint16_t _flags;
158 #endif // GNASH_AS_PROP_FLAGS_H Only visible by VM initialized for version 9 or higher.
Definition: PropFlags.h:57
bool set_flags(std::uint16_t setTrue, std::uint16_t setFalse=0)
Definition: PropFlags.h:130
bool test() const
Definition: PropFlags.h:94
Protect from deletion.
Definition: PropFlags.h:39
Only visible by VM initialized for version 7 or higher.
Definition: PropFlags.h:51
Only visible by VM initialized for version 6 or higher.
Definition: PropFlags.h:45
bool operator==(const PropFlags &o) const
Definition: PropFlags.h:85
Flags defining the level of protection of a member.
Definition: PropFlags.h:28
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
bool get_visible(int swfVersion) const
Get version-based visibility.
Definition: PropFlags.h:99
Definition: GnashKey.h:152
Definition: GnashKey.h:161
PropFlags()
Default constructor.
Definition: PropFlags.h:62
Ignore in SWF6-initialized VM.
Definition: PropFlags.h:48
std::uint16_t get_flags() const
accessor to the numerical flags value
Definition: PropFlags.h:120
std::ostream & operator<<(std::ostream &o, const URL &u)
Definition: URL.cpp:447
Flags
Actual flags.
Definition: PropFlags.h:33
Only visible by VM initialized for version 8 or higher.
Definition: PropFlags.h:54
bool operator!=(const PropFlags &o) const
Definition: PropFlags.h:89
PropFlags(const bool read_only, const bool dont_delete, const bool dont_enum)
Constructor.
Definition: PropFlags.h:69
PropFlags(std::uint16_t flags)
Constructor, from numerical value.
Definition: PropFlags.h:79
Protect from assigning a value.
Definition: PropFlags.h:42
void clear_visible(int swfVersion)
Definition: PropFlags.h:108
Protect from enumeration.
Definition: PropFlags.h:36