|
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 |
* Copyright (C) 2006-2007 Bastien Nocera <hadess@hadess.net>
|
|
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_CHOOSER_H
|
|
Packit |
8fb625 |
#define __BLUETOOTH_CHOOSER_H
|
|
Packit |
8fb625 |
|
|
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_CHOOSER (bluetooth_chooser_get_type())
|
|
Packit |
8fb625 |
#define BLUETOOTH_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
|
|
Packit |
8fb625 |
BLUETOOTH_TYPE_CHOOSER, BluetoothChooser))
|
|
Packit |
8fb625 |
#define BLUETOOTH_CHOOSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
|
|
Packit |
8fb625 |
BLUETOOTH_TYPE_CHOOSER, BluetoothChooserClass))
|
|
Packit |
8fb625 |
#define BLUETOOTH_IS_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
|
|
Packit |
8fb625 |
BLUETOOTH_TYPE_CHOOSER))
|
|
Packit |
8fb625 |
#define BLUETOOTH_IS_CHOOSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \
|
|
Packit |
8fb625 |
BLUETOOTH_TYPE_CHOOSER))
|
|
Packit |
8fb625 |
#define BLUETOOTH_GET_CHOOSER_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \
|
|
Packit |
8fb625 |
BLUETOOTH_TYPE_CHOOSER, BluetoothChooserClass))
|
|
Packit |
8fb625 |
|
|
Packit |
8fb625 |
/**
|
|
Packit |
8fb625 |
* BluetoothChooser:
|
|
Packit |
8fb625 |
*
|
|
Packit |
8fb625 |
* The <structname>BluetoothChooser</structname> struct contains
|
|
Packit |
8fb625 |
* only private fields and should not be directly accessed.
|
|
Packit |
8fb625 |
*/
|
|
Packit |
8fb625 |
typedef struct _BluetoothChooser BluetoothChooser;
|
|
Packit |
8fb625 |
typedef struct _BluetoothChooserClass BluetoothChooserClass;
|
|
Packit |
8fb625 |
|
|
Packit |
8fb625 |
struct _BluetoothChooser {
|
|
Packit |
8fb625 |
GtkBox parent;
|
|
Packit |
8fb625 |
};
|
|
Packit |
8fb625 |
|
|
Packit |
8fb625 |
struct _BluetoothChooserClass {
|
|
Packit |
8fb625 |
GtkBoxClass parent_class;
|
|
Packit |
8fb625 |
|
|
Packit |
8fb625 |
void (*selected_device_changed) (BluetoothChooser *chooser, const char *address);
|
|
Packit |
8fb625 |
void (*selected_device_activated) (BluetoothChooser *chooser, const char *address);
|
|
Packit |
8fb625 |
};
|
|
Packit |
8fb625 |
|
|
Packit |
8fb625 |
GType bluetooth_chooser_get_type (void);
|
|
Packit |
8fb625 |
|
|
Packit |
8fb625 |
GtkWidget *bluetooth_chooser_new (void);
|
|
Packit |
8fb625 |
|
|
Packit |
8fb625 |
char *bluetooth_chooser_get_selected_device (BluetoothChooser *self);
|
|
Packit |
8fb625 |
gboolean bluetooth_chooser_get_selected_device_info (BluetoothChooser *self,
|
|
Packit |
8fb625 |
const char *field,
|
|
Packit |
8fb625 |
GValue *value);
|
|
Packit |
8fb625 |
char *bluetooth_chooser_get_selected_device_name (BluetoothChooser *self);
|
|
Packit |
8fb625 |
char * bluetooth_chooser_get_selected_device_icon (BluetoothChooser *self);
|
|
Packit |
8fb625 |
BluetoothType bluetooth_chooser_get_selected_device_type (BluetoothChooser *self);
|
|
Packit |
8fb625 |
gboolean bluetooth_chooser_get_selected_device_is_connected (BluetoothChooser *self);
|
|
Packit |
8fb625 |
void bluetooth_chooser_dump_selected_device (BluetoothChooser *self);
|
|
Packit |
8fb625 |
|
|
Packit |
8fb625 |
GtkWidget *bluetooth_chooser_get_scrolled_window (BluetoothChooser *self);
|
|
Packit |
8fb625 |
|
|
Packit |
8fb625 |
void bluetooth_chooser_start_discovery (BluetoothChooser *self);
|
|
Packit |
8fb625 |
void bluetooth_chooser_stop_discovery (BluetoothChooser *self);
|
|
Packit |
8fb625 |
|
|
Packit |
8fb625 |
G_END_DECLS
|
|
Packit |
8fb625 |
|
|
Packit |
8fb625 |
#endif /* __BLUETOOTH_CHOOSER_H */
|