HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CH_BookmarkPropagateData.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: CH Bookmark (C++)
7  *
8  * COMMENTS: Propagation data used by CH_Manager when a bookmark is changed
9  *
10  */
11 
12 #ifndef __CH_BookmarkPropagateData_h__
13 #define __CH_BookmarkPropagateData_h__
14 
15 #include "CH_API.h"
16 
17 #include <DEP/DEP_MicroNode.h>
18 
19 enum class CH_BookmarkEvent {
20  Created,
21  Modified,
22  Deleted,
23  Reset, // Fires when the entire bookmark list is reset,
24  // loading entirely new ones.
25 };
26 
28 {
29 public:
30 
32  : myBookmarkId(id), myEvent(action)
33  {
34  }
35 
36  int64 getBookmarkId() const { return myBookmarkId; }
37  CH_BookmarkEvent getEvent() const { return myEvent; }
38 
39 private:
40  // Id of the bookmark that was modified. If -1, the entire list was swapped out/reset.
41  // Event should be 'Reset' in this case.
42  int64 myBookmarkId;
43  // Event which was taken on the bookmark
44  CH_BookmarkEvent myEvent;
45 };
46 
47 
48 #endif
CH_BookmarkEvent getEvent() const
long long int64
Definition: SYS_Types.h:116
#define CH_API
Definition: CH_API.h:10
Propagation info for a dep micro node.
Definition: DEP_MicroNode.h:36
CH_BookmarkPropagateData(CH_BookmarkEvent action, int64 id)