1 | /** |
---|
2 | * @copyright |
---|
3 | * ==================================================================== |
---|
4 | * Copyright (c) 2003-2005, 2007 CollabNet. All rights reserved. |
---|
5 | * |
---|
6 | * This software is licensed as described in the file COPYING, which |
---|
7 | * you should have received as part of this distribution. The terms |
---|
8 | * are also available at http://subversion.tigris.org/license-1.html. |
---|
9 | * If newer versions of this license are posted there, you may use a |
---|
10 | * newer version instead, at your option. |
---|
11 | * |
---|
12 | * This software consists of voluntary contributions made by many |
---|
13 | * individuals. For exact contribution history, see the revision |
---|
14 | * history and logs, available at http://subversion.tigris.org/. |
---|
15 | * ==================================================================== |
---|
16 | * @endcopyright |
---|
17 | * |
---|
18 | * @file EnumMapper.h |
---|
19 | * @brief Interface of the class EnumMapper |
---|
20 | */ |
---|
21 | |
---|
22 | #ifndef ENUM_MAPPER_H |
---|
23 | #define ENUM_MAPPER_H |
---|
24 | |
---|
25 | #include <jni.h> |
---|
26 | #include "svn_client.h" |
---|
27 | #include "svn_wc.h" |
---|
28 | #include "svn_types.h" |
---|
29 | |
---|
30 | /** |
---|
31 | * This class contains all the mappers between the C enum's and the |
---|
32 | * matching Java int's. |
---|
33 | */ |
---|
34 | class EnumMapper |
---|
35 | { |
---|
36 | public: |
---|
37 | static jint mapCommitMessageStateFlags(apr_byte_t flags); |
---|
38 | static jint mapNotifyState(svn_wc_notify_state_t state); |
---|
39 | static jint mapNotifyAction(svn_wc_notify_action_t action); |
---|
40 | static jint mapNodeKind(svn_node_kind_t nodeKind); |
---|
41 | static jint mapNotifyLockState(svn_wc_notify_lock_state_t state); |
---|
42 | static jint mapStatusKind(svn_wc_status_kind svnKind); |
---|
43 | static jint mapScheduleKind(svn_wc_schedule_t schedule); |
---|
44 | static jint mapConflictKind(svn_wc_conflict_kind_t kind); |
---|
45 | static jint mapConflictAction(svn_wc_conflict_action_t action); |
---|
46 | static jint mapConflictReason(svn_wc_conflict_reason_t reason); |
---|
47 | static jint mapDepth(svn_depth_t depth); |
---|
48 | static jint mapOperation(svn_wc_operation_t); |
---|
49 | }; |
---|
50 | |
---|
51 | #endif // ENUM_MAPPER_H |
---|