1
/****************************************************************************
3
| Copyright (c) 2007 Novell, Inc.
6
| This program is free software; you can redistribute it and/or
7
| modify it under the terms of version 2 of the GNU General Public License as
8
| published by the Free Software Foundation.
10
| This program is distributed in the hope that it will be useful,
11
| but WITHOUT ANY WARRANTY; without even the implied warranty of
12
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
| GNU General Public License for more details.
15
| You should have received a copy of the GNU General Public License
16
| along with this program; if not, contact Novell, Inc.
18
| To contact Novell about this file by physical or electronic mail,
19
| you may find current contact information at www.novell.com
22
|***************************************************************************/
26
namespace Simias.Client.Event
29
/// Actions that indicate what to do with the simias events.
31
public enum IProcEventAction
34
/// Add Node object created event.
39
/// Add Node object changed event.
44
/// AddNode object deleted event.
49
/// Add Collection synchronization events.
54
/// Add File synchronization events.
59
/// Add Notify message events.
64
/// Remove Node object created event.
69
/// Remove Node object changed event.
74
/// Remove Node object deleted event.
79
/// Remove Collection synchronization event.
84
/// Remove File synchronization event.
89
/// Remove Notify message event.
95
/// Used to specify to indicate only certain types of events. These filters
96
/// only apply to Simias "node" events. Sync events cannot be filtered.
98
public enum IProcFilterType
101
/// Subscribe to all changes in the specified collection.
106
/// Subscribe to all changes to the specified node.
111
/// Subscribe to all changes to nodes of the specified type.
117
/// Describes the event filters for Simias nodes.
119
public class IProcEventFilter
121
#region Class Members
123
/// Type of event filter.
125
private IProcFilterType type;
128
/// Data that is used to filter the events.
135
/// Gets the filter type.
137
public IProcFilterType Type
143
/// Gets the event data.
153
/// Initializes an instance of the object.
155
/// <param name="type">Type of filter.</param>
156
/// <param name="data">Filter data.</param>
157
public IProcEventFilter( string type, string data )
159
this.type = ( IProcFilterType )Enum.Parse( typeof( IProcFilterType), type, true );
164
/// Initializes an instance of the object.
166
/// <param name="type">Type of filter</param>
167
/// <param name="data">Filter data.</param>
168
public IProcEventFilter( IProcFilterType type, string data )