IBtIf.cs :  » Business-Application » 32feet.NET » InTheHand » Net » Bluetooth » Widcomm » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Business Application » 32feet.NET 
32feet.NET » InTheHand » Net » Bluetooth » Widcomm » IBtIf.cs
// 32feet.NET - Personal Area Networking for .NET
//
// InTheHand.Net.Widcomm.WidcommSocketExceptions
// 
// Copyright (c) 2008-2009 In The Hand Ltd, All rights reserved.
// Copyright (c) 2008-2009 Alan J. McFarlane, All rights reserved.
// This source code is licensed under the In The Hand Community License - see License.txt

using System;
using System.Collections.Generic;
using System.Text;

namespace InTheHand.Net.Bluetooth.Widcomm{
    internal interface IBtIf
    {
        /// <summary>
        /// To get to HandleDeviceResponded, HandleInquiryCompleted etc
        /// </summary>
        void SetParent(WidcommBtInterface parent);
        void Create();
        void Destroy(bool disposing);

        //----
        bool StartInquiry();
        void StopInquiry();

        //----
        /// <summary>
        /// &#x201C;This function requests a service discovery for a specific device.&#x201D;
        /// </summary>
        /// -
        /// <remarks>
        /// <para>&#x201C;When the discovery is complete the derived function OnDiscoveryComplete() is called.&#x201D;
        /// </para>
        /// </remarks>
        /// -
        /// <param name="address"></param>
        /// <param name="serviceGuid"></param>
        /// <returns>&#x201C;TRUE, if discovery has started; FALSE, if discovery has not started.&#x201D;</returns>
        bool StartDiscovery(BluetoothAddress address, Guid serviceGuid);

        /// <summary>
        /// &#x201C;When multiple discovery operations are in progress, the application 
        /// must call GetLastDiscoveryResult() from within the OnDiscoveryComplete() 
        /// to determine which remote devices reported services.&#x201D;
        /// </summary>
        /// <param name="address"></param>
        /// <param name="p_num_recs"></param>
        /// <returns>&#x201C;DISCOVERY_RESULT_SUCCESS, if the discovery operation was successful.&#x201D;</returns>
        DISCOVERY_RESULT GetLastDiscoveryResult(out BluetoothAddress address, out UInt16 p_num_recs);

        /// <summary>
        /// &#x201C;This function is called when discovery is complete to retrieve the records 
        /// received from the remote device.&#x201D;
        /// </summary>
        /// -
        /// <remarks>
        /// <para>&#x201C;Discovery results for a device are not removed until the device fails to respond to an inquiry.&#x201D;
        /// </para>
        /// </remarks>
        /// -
        /// <param name="address"></param>
        /// <param name="maxRecords"></param>
        /// <param name="args"></param>
        /// <returns>The discovery records read, which may have recordCount equals zero.</returns>
        ISdpDiscoveryRecordsBuffer ReadDiscoveryRecords(BluetoothAddress address, int maxRecords, ServiceDiscoveryParams args);

        //----------
        REM_DEV_INFO_RETURN_CODE GetRemoteDeviceInfo(ref REM_DEV_INFO remDevInfo, IntPtr p_rem_dev_info, int cb);
        REM_DEV_INFO_RETURN_CODE GetNextRemoteDeviceInfo(ref REM_DEV_INFO remDevInfo, IntPtr p_rem_dev_info, int cb);

        //----
        bool GetLocalDeviceVersionInfo(ref DEV_VER_INFO devVerInfo);
        bool GetLocalDeviceInfoBdAddr(byte[] bdAddr);
        bool GetLocalDeviceName(byte[] bdName);
        void IsStackUpAndRadioReady(out bool stackServerUp, out bool deviceReady);
        void IsDeviceConnectableDiscoverable(out bool conno, out bool disco);
        void SetDeviceConnectableDiscoverable(bool connectable, bool pairedOnly, bool discoverable);
        //
        int GetRssi(byte[] bd_addr);
        bool BondQuery(byte[] bd_addr);
        BOND_RETURN_CODE Bond(BluetoothAddress address, string passphrase);
        bool UnBond(BluetoothAddress address);
        //
        WBtRc GetExtendedError();
        //
        SDK_RETURN_CODE IsRemoteDevicePresent(byte[] bd_addr);
        bool IsRemoteDeviceConnected(byte[] bd_addr);
    }

}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.