Changeset 78095 in vbox for trunk/src/VBox
- Timestamp:
- Apr 10, 2019 3:23:03 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestDnDPrivate.h
r78093 r78095 369 369 }; 370 370 371 /** Initial state. */371 /** Initial object context state / no state set. */ 372 372 #define DND_OBJCTX_STATE_NONE 0 373 /** The header was received /sent. */373 /** The header was received / sent. */ 374 374 #define DND_OBJCTX_STATE_HAS_HDR RT_BIT(0) 375 /** Validation mask for object context state. */ 376 #define DND_OBJCTX_STATE_VALID_MASK UINT32_C(0x00000001) 375 377 376 378 /** … … 435 437 bool isValid(void) const { return (pObjURI != NULL); } 436 438 439 /** Returns the current state. */ 437 440 uint32_t getState(void) const { return fState; } 438 441 … … 444 447 445 448 fIntermediate = false; 446 fState = 0;449 fState = DND_OBJCTX_STATE_NONE; 447 450 } 448 451 … … 456 459 } 457 460 461 /** 462 * Sets the new state. 463 * 464 * @returns The new state, if set. 465 * @param fStateNew New state to set. 466 */ 458 467 uint32_t setState(uint32_t fStateNew) 459 468 { 460 /** @todo Add validation. */469 AssertReturn(!(fStateNew & ~DND_OBJCTX_STATE_VALID_MASK), fState /* Return old state */); 461 470 fState = fStateNew; 462 471 return fState;
Note:
See TracChangeset
for help on using the changeset viewer.