HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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
27
class
CH_API
CH_BookmarkPropagateData
:
public
DEP_PropagateData
28
{
29
public
:
30
31
CH_BookmarkPropagateData
(
CH_BookmarkEvent
action,
int64
id
)
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_BookmarkPropagateData::getEvent
CH_BookmarkEvent getEvent() const
Definition:
CH_BookmarkPropagateData.h:37
CH_BookmarkEvent::Reset
CH_BookmarkEvent::Created
CH_BookmarkEvent::Deleted
CH_BookmarkPropagateData::getBookmarkId
int64 getBookmarkId() const
Definition:
CH_BookmarkPropagateData.h:36
CH_BookmarkPropagateData
Definition:
CH_BookmarkPropagateData.h:27
DEP_MicroNode.h
int64
long long int64
Definition:
SYS_Types.h:116
CH_API.h
CH_BookmarkEvent
CH_BookmarkEvent
Definition:
CH_BookmarkPropagateData.h:19
CH_API
#define CH_API
Definition:
CH_API.h:10
CH_BookmarkEvent::Modified
DEP_PropagateData
Propagation info for a dep micro node.
Definition:
DEP_MicroNode.h:36
CH_BookmarkPropagateData::CH_BookmarkPropagateData
CH_BookmarkPropagateData(CH_BookmarkEvent action, int64 id)
Definition:
CH_BookmarkPropagateData.h:31
CH
CH_BookmarkPropagateData.h
Generated on Thu May 2 2024 03:15:30 for HDK by
1.8.6