Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a1f5b340337eace5ca3b445f0ba08e57903bae4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*******************************************************************************
 * Copyright (c) 2010 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.equinox.p2.engine;

import org.eclipse.equinox.internal.provisional.p2.core.eventbus.IProvisioningEventBus;

/**
 * An event indicating that a profile has been added, removed, or changed.
 * @see IProvisioningEventBus
 * @since 2.0
 */
public interface IProfileEvent {

	/**
	 * Event constant (value 0) indicating that a profile has been added to a profile registry.
	 */
	public static final int ADDED = 0;
	/**
	 * Event constant (value 1) indicating that a profile has been removed from a profile registry.
	 */
	public static final int REMOVED = 1;
	/**
	 * Event constant (value 0) indicating that a profile has been changed in a profile registry.
	 */
	public static final int CHANGED = 2;

	/**
	 * Returns the reason for the event. The reason will be one of the event constants
	 * {@link #ADDED}, {@link #REMOVED}, or {@link #CHANGED}.
	 * @return the reason for the event
	 */
	public int getReason();

	/**
	 * Returns the id of the profile that changed.
	 * @return the id of the profile that changed
	 */
	public String getProfileId();

}

Back to the top