~svn/ubuntu/raring/subversion/ppa

« back to all changes in this revision

Viewing changes to subversion/bindings/java/javahl/native/Notify.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:26:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205012614-qom4xfypgtsqc2xq
Tags: 1.2.3dfsg1-3ubuntu1
Merge with the final Debian release of 1.2.3dfsg1-3, bringing in
fixes to the clean target, better documentation of the libdb4.3
upgrade and build fixes to work with swig1.3_1.3.27.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * @copyright
 
3
 * ====================================================================
 
4
 * Copyright (c) 2003-2004 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 Notify.h
 
19
 * @brief Interface of the class Notify
 
20
 */
 
21
 
 
22
#if !defined(AFX_NOTIFY_H__10E278E8_EA8C_4BD1_AF10_4DB1C0608F65__INCLUDED_)
 
23
#define AFX_NOTIFY_H__10E278E8_EA8C_4BD1_AF10_4DB1C0608F65__INCLUDED_
 
24
 
 
25
#if _MSC_VER > 1000
 
26
#pragma once
 
27
#endif // _MSC_VER > 1000
 
28
#include <jni.h>
 
29
#include <svn_wc.h>
 
30
/**
 
31
 *  this class passes notification from subversion to a java object
 
32
 */
 
33
class Notify
 
34
{
 
35
private:
 
36
    /**
 
37
     * the java object to receive the notifications. This is a global reference
 
38
     * because it has to live longer than the SVNClient.notification call
 
39
     */ 
 
40
    jobject m_notify;
 
41
    Notify(jobject p_notify);
 
42
public:
 
43
    static Notify * makeCNotify(jobject notify);
 
44
    ~Notify();
 
45
  /**
 
46
   * notification function passed as svn_wc_notify_func_t
 
47
   * @param baton notification instance is passed using this parameter
 
48
   * @param path on which action happen
 
49
   * @param action subversion action, see svn_wc_notify_action_t
 
50
   * @param kind node kind of path after action occurred
 
51
   * @param mime_type mime type of path after action occurred
 
52
   * @param content_state state of content after action occurred
 
53
   * @param prop_state state of properties after action occurred
 
54
   * @param revision revision number after action occurred
 
55
   */
 
56
    static void notify (
 
57
        void *baton,
 
58
        const char *path,
 
59
        svn_wc_notify_action_t action,
 
60
        svn_node_kind_t kind,
 
61
        const char *mime_type,
 
62
        svn_wc_notify_state_t content_state,
 
63
        svn_wc_notify_state_t prop_state,
 
64
        svn_revnum_t revision);
 
65
  /**
 
66
   * Handler for Subversion notifications.
 
67
   *
 
68
   * @param path on which action happen
 
69
   * @param action subversion action, see svn_wc_notify_action_t
 
70
   * @param kind node kind of path after action occurred
 
71
   * @param mime_type mime type of path after action occurred
 
72
   * @param content_state state of content after action occurred
 
73
   * @param prop_state state of properties after action occurred
 
74
   * @param revision revision number  after action occurred
 
75
   */
 
76
    void onNotify (
 
77
        const char *path,
 
78
        svn_wc_notify_action_t action,
 
79
        svn_node_kind_t kind,
 
80
        const char *mime_type,
 
81
        svn_wc_notify_state_t content_state,
 
82
        svn_wc_notify_state_t prop_state,
 
83
        svn_revnum_t revision);
 
84
 
 
85
};
 
86
// !defined(AFX_NOTIFY_H__10E278E8_EA8C_4BD1_AF10_4DB1C0608F65__INCLUDED_)
 
87
#endif