View Javadoc

1   /**
2    *  BlueCove - Java library for Bluetooth
3    *  Copyright (C) 2006-2008 Vlad Skarzhevskyy
4    *
5    *  Licensed to the Apache Software Foundation (ASF) under one
6    *  or more contributor license agreements.  See the NOTICE file
7    *  distributed with this work for additional information
8    *  regarding copyright ownership.  The ASF licenses this file
9    *  to you under the Apache License, Version 2.0 (the
10   *  "License"); you may not use this file except in compliance
11   *  with the License.  You may obtain a copy of the License at
12   *
13   *    http://www.apache.org/licenses/LICENSE-2.0
14   *
15   *  Unless required by applicable law or agreed to in writing,
16   *  software distributed under the License is distributed on an
17   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18   *  KIND, either express or implied.  See the License for the
19   *  specific language governing permissions and limitations
20   *  under the License.
21   *
22   *  @author vlads
23   *  @version $Id: BluetoothConnectionNotifierParams.java 2476 2008-12-01 17:41:59Z skarzhevskyy $
24   */
25  package com.intel.bluetooth;
26  
27  import javax.bluetooth.UUID;
28  
29  /**
30   *
31   *
32   */
33  class BluetoothConnectionNotifierParams {
34  
35  	UUID uuid;
36  
37  	boolean authenticate;
38  
39  	boolean encrypt;
40  
41  	boolean authorize;
42  
43  	String name;
44  
45  	boolean master;
46  
47  	boolean obex;
48  
49  	boolean timeouts;
50  
51  	/**
52  	 * Enables L2CAP server PSM selections. Usage:
53  	 * btl2cap://localhost;name=test;bluecovepsm=11 where bluecovepsm is
54  	 * 4*4(HEXDIG)
55  	 */
56  	int bluecove_ext_psm = 0;
57  
58  	public BluetoothConnectionNotifierParams(UUID uuid, boolean authenticate, boolean encrypt, boolean authorize,
59  			String name, boolean master) {
60  		super();
61  		this.uuid = uuid;
62  		this.authenticate = authenticate;
63  		this.encrypt = encrypt;
64  		this.authorize = authorize;
65  		this.name = name;
66  		this.master = master;
67  		this.obex = false;
68  	}
69  }