Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 54bc1e835dc464d0ac4ac00663e1347896e7a9ca (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
49
50
51
52
53
54
55
/***************************************************************************
 * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
 * 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:
 *    Eike Stepper - initial API and implementation
 **************************************************************************/
package org.eclipse.net4j.buddies.internal.common.protocol;

/**
 * @author Eike Stepper
 */
public interface ProtocolConstants
{
  public static final String PROTOCOL_NAME = "buddies";

  public static final short SIGNAL_OPEN_SESSION = 1;

  public static final short SIGNAL_LOAD_ACCOUNT = 2;

  public static final short SIGNAL_BUDDY_ADDED = 3;

  public static final short SIGNAL_BUDDY_REMOVED = 4;

  public static final short SIGNAL_BUDDY_STATE = 5;

  public static final short SIGNAL_INITIATE_COLLABORATION = 6;

  public static final short SIGNAL_COLLABORATION_INITIATED = 7;

  public static final short SIGNAL_COLLABORATION_LEFT = 8;

  public static final short SIGNAL_INVITE_BUDDIES = 9;

  public static final short SIGNAL_BUDDIES_INVITED = 10;

  public static final short SIGNAL_INSTALL_FACILITY = 11;

  public static final short SIGNAL_FACILITY_INSTALLED = 12;

  public static final short SIGNAL_MESSAGE = 13;

  public static final long TIMEOUT = 5000L;

  public static final byte STATE_AVAILABLE = 1;

  public static final byte STATE_LONESOME = 2;

  public static final byte STATE_AWAY = 3;

  public static final byte STATE_DO_NOT_DISTURB = 4;
}

Back to the top