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,
22  Modified,
24  Deleted,
25  Reset, // Fires when the entire bookmark list is reset,
26  // loading entirely new ones.
27 };
28 
30 {
31 public:
32 
34  : myBookmarkId(id), myEvent(action)
35  {
36  }
37 
38  int64 getBookmarkId() const { return myBookmarkId; }
39  CH_BookmarkEvent getEvent() const { return myEvent; }
40 
41 private:
42  // Id of the bookmark that was modified. If -1, the entire list was swapped out/reset.
43  // Event should be 'Reset' in this case.
44  int64 myBookmarkId;
45  // Event which was taken on the bookmark
46  CH_BookmarkEvent myEvent;
47 };
48 
49 
50 #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)