/usr/share/gtk-doc/html/gnome-bluetooth/BluetoothChooser.html is in libgnome-bluetooth-dev 3.8.2.1-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>BluetoothChooser</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="gnome-bluetooth Reference Manual">
<link rel="up" href="ch01.html" title="API Reference">
<link rel="prev" href="BluetoothClient.html" title="BluetoothClient">
<link rel="next" href="BluetoothChooserButton.html" title="BluetoothChooserButton">
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="BluetoothClient.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">gnome-bluetooth Reference Manual</th>
<td><a accesskey="n" href="BluetoothChooserButton.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#BluetoothChooser.synopsis" class="shortcut">Top</a>
|
<a href="#BluetoothChooser.description" class="shortcut">Description</a>
|
<a href="#BluetoothChooser.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#BluetoothChooser.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
|
<a href="#BluetoothChooser.properties" class="shortcut">Properties</a>
|
<a href="#BluetoothChooser.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry">
<a name="BluetoothChooser"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="BluetoothChooser.top_of_page"></a>BluetoothChooser</span></h2>
<p>BluetoothChooser — a Bluetooth chooser widget</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="BluetoothChooser.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="BluetoothChooser.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <bluetooth-chooser.h>
struct <a class="link" href="BluetoothChooser.html#BluetoothChooser-struct" title="struct BluetoothChooser">BluetoothChooser</a>;
struct <a class="link" href="BluetoothChooser.html#BluetoothChooserClass" title="struct BluetoothChooserClass">BluetoothChooserClass</a>;
<span class="returnvalue">void</span> <a class="link" href="BluetoothChooser.html#bluetooth-chooser-dump-selected-device" title="bluetooth_chooser_dump_selected_device ()">bluetooth_chooser_dump_selected_device</a>
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);
<a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="BluetoothChooser.html#bluetooth-chooser-get-scrolled-window" title="bluetooth_chooser_get_scrolled_window ()">bluetooth_chooser_get_scrolled_window</a>
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);
<span class="returnvalue">char</span> * <a class="link" href="BluetoothChooser.html#bluetooth-chooser-get-selected-device" title="bluetooth_chooser_get_selected_device ()">bluetooth_chooser_get_selected_device</a>
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);
<span class="returnvalue">char</span> * <a class="link" href="BluetoothChooser.html#bluetooth-chooser-get-selected-device-icon" title="bluetooth_chooser_get_selected_device_icon ()">bluetooth_chooser_get_selected_device_icon</a>
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="BluetoothChooser.html#bluetooth-chooser-get-selected-device-info" title="bluetooth_chooser_get_selected_device_info ()">bluetooth_chooser_get_selected_device_info</a>
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *field</code></em>,
<em class="parameter"><code><span class="type">GValue</span> *value</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="BluetoothChooser.html#bluetooth-chooser-get-selected-device-is-connected" title="bluetooth_chooser_get_selected_device_is_connected ()">bluetooth_chooser_get_selected_device_is_connected</a>
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);
<span class="returnvalue">char</span> * <a class="link" href="BluetoothChooser.html#bluetooth-chooser-get-selected-device-name" title="bluetooth_chooser_get_selected_device_name ()">bluetooth_chooser_get_selected_device_name</a>
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);
<a class="link" href="gnome-bluetooth-bluetooth-enums.html#BluetoothType"><span class="returnvalue">BluetoothType</span></a> <a class="link" href="BluetoothChooser.html#bluetooth-chooser-get-selected-device-type" title="bluetooth_chooser_get_selected_device_type ()">bluetooth_chooser_get_selected_device_type</a>
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);
<a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="BluetoothChooser.html#bluetooth-chooser-new" title="bluetooth_chooser_new ()">bluetooth_chooser_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span> <a class="link" href="BluetoothChooser.html#bluetooth-chooser-start-discovery" title="bluetooth_chooser_start_discovery ()">bluetooth_chooser_start_discovery</a> (<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);
<span class="returnvalue">void</span> <a class="link" href="BluetoothChooser.html#bluetooth-chooser-stop-discovery" title="bluetooth_chooser_stop_discovery ()">bluetooth_chooser_stop_discovery</a> (<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="BluetoothChooser.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GObject
+----GInitiallyUnowned
+----<a href="http://developer.gnome.org/gtk2/GtkWidget.html">GtkWidget</a>
+----<a href="http://developer.gnome.org/gtk2/GtkContainer.html">GtkContainer</a>
+----<a href="http://developer.gnome.org/gtk2/GtkBox.html">GtkBox</a>
+----BluetoothChooser
</pre>
</div>
<div class="refsect1">
<a name="BluetoothChooser.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
BluetoothChooser implements
AtkImplementorIface, <a href="http://developer.gnome.org/gtk2/GtkBuildable.html">GtkBuildable</a> and <a href="http://developer.gnome.org/gtk2/gtk3-Orientable.html#GtkOrientable">GtkOrientable</a>.</p>
</div>
<div class="refsect1">
<a name="BluetoothChooser.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="BluetoothChooser.html#BluetoothChooser--device-category-filter" title='The "device-category-filter" property'>device-category-filter</a>" <a class="link" href="gnome-bluetooth-bluetooth-enums.html#BluetoothCategory"><span class="type">BluetoothCategory</span></a> : Read / Write / Construct
"<a class="link" href="BluetoothChooser.html#BluetoothChooser--device-selected" title='The "device-selected" property'>device-selected</a>" <span class="type">gchar</span>* : Read / Write
"<a class="link" href="BluetoothChooser.html#BluetoothChooser--device-service-filter" title='The "device-service-filter" property'>device-service-filter</a>" <span class="type">gchar</span>* : Write
"<a class="link" href="BluetoothChooser.html#BluetoothChooser--device-type-filter" title='The "device-type-filter" property'>device-type-filter</a>" <span class="type">gint</span> : Read / Write / Construct
"<a class="link" href="BluetoothChooser.html#BluetoothChooser--has-internal-device-filter" title='The "has-internal-device-filter" property'>has-internal-device-filter</a>" <span class="type">gboolean</span> : Read / Write / Construct Only
"<a class="link" href="BluetoothChooser.html#BluetoothChooser--show-connected" title='The "show-connected" property'>show-connected</a>" <span class="type">gboolean</span> : Read / Write
"<a class="link" href="BluetoothChooser.html#BluetoothChooser--show-device-category" title='The "show-device-category" property'>show-device-category</a>" <span class="type">gboolean</span> : Read / Write / Construct
"<a class="link" href="BluetoothChooser.html#BluetoothChooser--show-device-type" title='The "show-device-type" property'>show-device-type</a>" <span class="type">gboolean</span> : Read / Write / Construct
"<a class="link" href="BluetoothChooser.html#BluetoothChooser--show-device-type-column" title='The "show-device-type-column" property'>show-device-type-column</a>" <span class="type">gboolean</span> : Read / Write / Construct
"<a class="link" href="BluetoothChooser.html#BluetoothChooser--show-pairing" title='The "show-pairing" property'>show-pairing</a>" <span class="type">gboolean</span> : Read / Write
"<a class="link" href="BluetoothChooser.html#BluetoothChooser--show-searching" title='The "show-searching" property'>show-searching</a>" <span class="type">gboolean</span> : Read / Write
</pre>
</div>
<div class="refsect1">
<a name="BluetoothChooser.signals"></a><h2>Signals</h2>
<pre class="synopsis">
"<a class="link" href="BluetoothChooser.html#BluetoothChooser-selected-device-activated" title='The "selected-device-activated" signal'>selected-device-activated</a>" : <code class="literal">Run Last</code>
"<a class="link" href="BluetoothChooser.html#BluetoothChooser-selected-device-changed" title='The "selected-device-changed" signal'>selected-device-changed</a>" : <code class="literal">Run Last</code>
</pre>
</div>
<div class="refsect1">
<a name="BluetoothChooser.description"></a><h2>Description</h2>
<p>
A tree-like widget used to select Bluetooth devices.
</p>
</div>
<div class="refsect1">
<a name="BluetoothChooser.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="BluetoothChooser-struct"></a><h3>struct BluetoothChooser</h3>
<pre class="programlisting">struct BluetoothChooser;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="BluetoothChooserClass"></a><h3>struct BluetoothChooserClass</h3>
<pre class="programlisting">struct BluetoothChooserClass {
GtkBoxClass parent_class;
void (*selected_device_changed) (BluetoothChooser *chooser, const char *address);
void (*selected_device_activated) (BluetoothChooser *chooser, const char *address);
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="bluetooth-chooser-dump-selected-device"></a><h3>bluetooth_chooser_dump_selected_device ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> bluetooth_chooser_dump_selected_device
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);</pre>
<p>
Prints all the known attributes for the currently selected device
on the standard output. Useful for debugging.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>A <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> widget.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bluetooth-chooser-get-scrolled-window"></a><h3>bluetooth_chooser_get_scrolled_window ()</h3>
<pre class="programlisting"><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * bluetooth_chooser_get_scrolled_window
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);</pre>
<p>
Returns the <a href="http://developer.gnome.org/gtk2/GtkScrolledWindow.html"><span class="type">GtkScrolledWindow</span></a> object for the <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a>.
This is useful to set a minimum height to the chooser using
<a href="http://developer.gnome.org/gtk2/GtkScrolledWindow.html#gtk-scrolled-window-set-min-content-height"><code class="function">gtk_scrolled_window_set_min_content_height()</code></a> or to join the
chooser with a toolbar.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>A <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> widget.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="http://developer.gnome.org/gtk2/GtkScrolledWindow.html"><span class="type">GtkScrolledWindow</span></a> object. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bluetooth-chooser-get-selected-device"></a><h3>bluetooth_chooser_get_selected_device ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> * bluetooth_chooser_get_selected_device
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);</pre>
<p>
Returns the Bluetooth address for the currently selected device.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> widget.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the Bluetooth address for the currently selected device, or <code class="literal">NULL</code>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bluetooth-chooser-get-selected-device-icon"></a><h3>bluetooth_chooser_get_selected_device_icon ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> * bluetooth_chooser_get_selected_device_icon
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);</pre>
<p>
Returns the icon name to use to represent the currently selected device.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> widget.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the icon name to use to represent the currently selected device, or <code class="literal">NULL</code>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bluetooth-chooser-get-selected-device-info"></a><h3>bluetooth_chooser_get_selected_device_info ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> bluetooth_chooser_get_selected_device_info
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *field</code></em>,
<em class="parameter"><code><span class="type">GValue</span> *value</code></em>);</pre>
<p>
Returns whether the <em class="parameter"><code>value</code></em> has been set.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>A <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> widget.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>field</code></em> :</span></p></td>
<td>The identifier for the field to get data for.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>An empty <span class="type">GValue</span> to set.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if the <em class="parameter"><code>value</code></em> has been set.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bluetooth-chooser-get-selected-device-is-connected"></a><h3>bluetooth_chooser_get_selected_device_is_connected ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> bluetooth_chooser_get_selected_device_is_connected
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);</pre>
<p>
Returns whether the selected device is connected to this computer.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> widget.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the selected device is connected to this computer,
will always be <code class="literal">FALSE</code> if no devices are selected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bluetooth-chooser-get-selected-device-name"></a><h3>bluetooth_chooser_get_selected_device_name ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> * bluetooth_chooser_get_selected_device_name
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);</pre>
<p>
Returns the name for the currently selected device.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> widget.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the name for the currently selected device, or <code class="literal">NULL</code>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bluetooth-chooser-get-selected-device-type"></a><h3>bluetooth_chooser_get_selected_device_type ()</h3>
<pre class="programlisting"><a class="link" href="gnome-bluetooth-bluetooth-enums.html#BluetoothType"><span class="returnvalue">BluetoothType</span></a> bluetooth_chooser_get_selected_device_type
(<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);</pre>
<p>
Returns the <a class="link" href="gnome-bluetooth-bluetooth-enums.html#BluetoothType"><span class="type">BluetoothType</span></a> of the device selected.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> widget.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="gnome-bluetooth-bluetooth-enums.html#BluetoothType"><span class="type">BluetoothType</span></a> of the device selected, or '0' if unknown.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bluetooth-chooser-new"></a><h3>bluetooth_chooser_new ()</h3>
<pre class="programlisting"><a href="http://developer.gnome.org/gtk2/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * bluetooth_chooser_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Returns a new <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> widget.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> widget</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bluetooth-chooser-start-discovery"></a><h3>bluetooth_chooser_start_discovery ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> bluetooth_chooser_start_discovery (<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);</pre>
<p>
Starts a discovery on the default Bluetooth adapter. Note that this will
only work if the Search label is visible, as otherwise the user has no
visual feedback that the process is on-going.
</p>
<p>
See also: <a class="link" href="BluetoothChooser.html#BluetoothChooser--show-searching" title='The "show-searching" property'><span class="type">"show-searching"</span></a>
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> widget.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bluetooth-chooser-stop-discovery"></a><h3>bluetooth_chooser_stop_discovery ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> bluetooth_chooser_stop_discovery (<em class="parameter"><code><a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *self</code></em>);</pre>
<p>
Stops a discovery started with <a class="link" href="BluetoothChooser.html#bluetooth-chooser-start-discovery" title="bluetooth_chooser_start_discovery ()"><span class="type">bluetooth_chooser_start_discovery</span></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>a <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> widget.</td>
</tr></tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="BluetoothChooser.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="BluetoothChooser--device-category-filter"></a><h3>The <code class="literal">"device-category-filter"</code> property</h3>
<pre class="programlisting"> "device-category-filter" <a class="link" href="gnome-bluetooth-bluetooth-enums.html#BluetoothCategory"><span class="type">BluetoothCategory</span></a> : Read / Write / Construct</pre>
<p>The #BluetoothCategory to show.</p>
<p>Default value: BLUETOOTH_CATEGORY_ALL</p>
</div>
<hr>
<div class="refsect2">
<a name="BluetoothChooser--device-selected"></a><h3>The <code class="literal">"device-selected"</code> property</h3>
<pre class="programlisting"> "device-selected" <span class="type">gchar</span>* : Read / Write</pre>
<p>The Bluetooth address for the currently selected device, or %NULL.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="BluetoothChooser--device-service-filter"></a><h3>The <code class="literal">"device-service-filter"</code> property</h3>
<pre class="programlisting"> "device-service-filter" <span class="type">gchar</span>* : Write</pre>
<p>A string representing the service to filter for.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2">
<a name="BluetoothChooser--device-type-filter"></a><h3>The <code class="literal">"device-type-filter"</code> property</h3>
<pre class="programlisting"> "device-type-filter" <span class="type">gint</span> : Read / Write / Construct</pre>
<p>A bitmask of #BluetoothType to show.</p>
<p>Allowed values: [1,32767]</p>
<p>Default value: 1</p>
</div>
<hr>
<div class="refsect2">
<a name="BluetoothChooser--has-internal-device-filter"></a><h3>The <code class="literal">"has-internal-device-filter"</code> property</h3>
<pre class="programlisting"> "has-internal-device-filter" <span class="type">gboolean</span> : Read / Write / Construct Only</pre>
<p>Whether the #BluetoothChooser should be constructed with a visible #BluetoothFilterWidget.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="BluetoothChooser--show-connected"></a><h3>The <code class="literal">"show-connected"</code> property</h3>
<pre class="programlisting"> "show-connected" <span class="type">gboolean</span> : Read / Write</pre>
<p>Whether to show the connected column in the tree.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="BluetoothChooser--show-device-category"></a><h3>The <code class="literal">"show-device-category"</code> property</h3>
<pre class="programlisting"> "show-device-category" <span class="type">gboolean</span> : Read / Write / Construct</pre>
<p>Whether to show the device category filter.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="BluetoothChooser--show-device-type"></a><h3>The <code class="literal">"show-device-type"</code> property</h3>
<pre class="programlisting"> "show-device-type" <span class="type">gboolean</span> : Read / Write / Construct</pre>
<p>Whether to show the device type filter.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="BluetoothChooser--show-device-type-column"></a><h3>The <code class="literal">"show-device-type-column"</code> property</h3>
<pre class="programlisting"> "show-device-type-column" <span class="type">gboolean</span> : Read / Write / Construct</pre>
<p>Whether to show the device type column.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2">
<a name="BluetoothChooser--show-pairing"></a><h3>The <code class="literal">"show-pairing"</code> property</h3>
<pre class="programlisting"> "show-pairing" <span class="type">gboolean</span> : Read / Write</pre>
<p>Whether to show the pairing column in the tree.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2">
<a name="BluetoothChooser--show-searching"></a><h3>The <code class="literal">"show-searching"</code> property</h3>
<pre class="programlisting"> "show-searching" <span class="type">gboolean</span> : Read / Write</pre>
<p>Whether to show the Searching label , this is necessary if you want to programmatically start a discovery, using bluetooth_chooser_start_discovery().</p>
<p>Default value: FALSE</p>
</div>
</div>
<div class="refsect1">
<a name="BluetoothChooser.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="BluetoothChooser-selected-device-activated"></a><h3>The <code class="literal">"selected-device-activated"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *chooser,
<span class="type">gchar</span> *address,
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
<p>
The <a class="link" href="BluetoothChooser.html#BluetoothChooser-selected-device-activated" title='The "selected-device-activated" signal'><span class="type">"selected-device-activated"</span></a> signal is launched when a
device is double-clicked in the chooser.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>chooser</code></em> :</span></p></td>
<td>a <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> widget which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td>
<td>the Bluetooth address for the currently selected device, or <code class="literal">NULL</code>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="BluetoothChooser-selected-device-changed"></a><h3>The <code class="literal">"selected-device-changed"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> *chooser,
<span class="type">gchar</span> *address,
<span class="type">gpointer</span> user_data) : <code class="literal">Run Last</code></pre>
<p>
The <a class="link" href="BluetoothChooser.html#BluetoothChooser-selected-device-changed" title='The "selected-device-changed" signal'><span class="type">"selected-device-changed"</span></a> signal is launched when the
selected device is changed, it will be <code class="literal">NULL</code> if a device was unselected.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>chooser</code></em> :</span></p></td>
<td>a <a class="link" href="BluetoothChooser.html" title="BluetoothChooser"><span class="type">BluetoothChooser</span></a> widget which received the signal</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td>
<td>the Bluetooth address for the currently selected device, or <code class="literal">NULL</code>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.19</div>
</body>
</html>
|