Blame lib/bluetooth-client.h

Packit 8fb625
/*
Packit 8fb625
 *
Packit 8fb625
 *  BlueZ - Bluetooth protocol stack for Linux
Packit 8fb625
 *
Packit 8fb625
 *  Copyright (C) 2005-2008  Marcel Holtmann <marcel@holtmann.org>
Packit 8fb625
 *
Packit 8fb625
 *
Packit 8fb625
 *  This library is free software; you can redistribute it and/or
Packit 8fb625
 *  modify it under the terms of the GNU Lesser General Public
Packit 8fb625
 *  License as published by the Free Software Foundation; either
Packit 8fb625
 *  version 2.1 of the License, or (at your option) any later version.
Packit 8fb625
 *
Packit 8fb625
 *  This library is distributed in the hope that it will be useful,
Packit 8fb625
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 8fb625
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 8fb625
 *  Lesser General Public License for more details.
Packit 8fb625
 *
Packit 8fb625
 *  You should have received a copy of the GNU Lesser General Public
Packit 8fb625
 *  License along with this library; if not, write to the Free Software
Packit 8fb625
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
Packit 8fb625
 *
Packit 8fb625
 */
Packit 8fb625
Packit 8fb625
#ifndef __BLUETOOTH_CLIENT_H
Packit 8fb625
#define __BLUETOOTH_CLIENT_H
Packit 8fb625
Packit 8fb625
#include <glib-object.h>
Packit 8fb625
#include <gtk/gtk.h>
Packit 8fb625
#include <bluetooth-enums.h>
Packit 8fb625
Packit 8fb625
G_BEGIN_DECLS
Packit 8fb625
Packit 8fb625
#define BLUETOOTH_TYPE_CLIENT (bluetooth_client_get_type())
Packit 8fb625
#define BLUETOOTH_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
Packit 8fb625
					BLUETOOTH_TYPE_CLIENT, BluetoothClient))
Packit 8fb625
#define BLUETOOTH_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
Packit 8fb625
					BLUETOOTH_TYPE_CLIENT, BluetoothClientClass))
Packit 8fb625
#define BLUETOOTH_IS_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
Packit 8fb625
							BLUETOOTH_TYPE_CLIENT))
Packit 8fb625
#define BLUETOOTH_IS_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \
Packit 8fb625
							BLUETOOTH_TYPE_CLIENT))
Packit 8fb625
#define BLUETOOTH_GET_CLIENT_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \
Packit 8fb625
					BLUETOOTH_TYPE_CLIENT, BluetoothClientClass))
Packit 8fb625
Packit 8fb625
/**
Packit 8fb625
 * BluetoothClient:
Packit 8fb625
 *
Packit 8fb625
 * The <structname>BluetoothClient</structname> struct contains
Packit 8fb625
 * only private fields and should not be directly accessed.
Packit 8fb625
 */
Packit 8fb625
typedef struct _BluetoothClient BluetoothClient;
Packit 8fb625
typedef struct _BluetoothClientClass BluetoothClientClass;
Packit 8fb625
Packit 8fb625
struct _BluetoothClient {
Packit 8fb625
	GObject parent;
Packit 8fb625
};
Packit 8fb625
Packit 8fb625
struct _BluetoothClientClass {
Packit 8fb625
	GObjectClass parent_class;
Packit 8fb625
};
Packit 8fb625
Packit 8fb625
GType bluetooth_client_get_type(void);
Packit 8fb625
Packit 8fb625
BluetoothClient *bluetooth_client_new(void);
Packit 8fb625
Packit 8fb625
GtkTreeModel *bluetooth_client_get_model(BluetoothClient *client);
Packit 8fb625
Packit 8fb625
GtkTreeModel *bluetooth_client_get_filter_model(BluetoothClient *client,
Packit 8fb625
				GtkTreeModelFilterVisibleFunc func,
Packit 8fb625
				gpointer data, GDestroyNotify destroy);
Packit 8fb625
GtkTreeModel *bluetooth_client_get_adapter_model(BluetoothClient *client);
Packit 8fb625
GtkTreeModel *bluetooth_client_get_device_model(BluetoothClient *client);
Packit 8fb625
Packit 8fb625
void bluetooth_client_connect_service (BluetoothClient     *client,
Packit 8fb625
				       const char          *path,
Packit 8fb625
				       gboolean             connect,
Packit 8fb625
				       GCancellable        *cancellable,
Packit 8fb625
				       GAsyncReadyCallback  callback,
Packit 8fb625
				       gpointer             user_data);
Packit 8fb625
Packit 8fb625
gboolean bluetooth_client_connect_service_finish (BluetoothClient *client,
Packit 8fb625
						  GAsyncResult    *res,
Packit 8fb625
						  GError         **error);
Packit 8fb625
Packit 8fb625
G_END_DECLS
Packit 8fb625
Packit 8fb625
#endif /* __BLUETOOTH_CLIENT_H */