31 lines
6.2 KiB
HTML
31 lines
6.2 KiB
HTML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>The Be Book - System Overview - The Application Kit</title><link rel="stylesheet" href="be_book.css" type="text/css" media="all" /><link rel="shortcut icon" type="image/vnd.microsoft.icon" href="./images/favicon.ico" /><!--[if IE]>
|
||
<link rel="stylesheet" type="text/css" href="be_book_ie.css" />
|
||
<![endif]--><meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /><meta name="keywords" content="Access, BeOS, BeBook, API" /><link rel="start" href="index.html" title="The Be Book" /><link rel="up" href="TheApplicationKit_Overview.html" title="The Application Kit" /><link rel="prev" href="BPropertyInfo_Overview.html" title="BPropertyInfo" /><link rel="next" href="TheDeviceKit_Overview.html" title="The Device Kit" /></head><body><div id="header"><div id="headerT"><div id="headerTL"><a accesskey="p" href="BPropertyInfo_Overview.html" title="BPropertyInfo"><img src="./images/navigation/prev.png" alt="Prev" /></a> <a accesskey="u" href="TheApplicationKit_Overview.html" title="The Application Kit"><img src="./images/navigation/up.png" alt="Up" /></a> <a accesskey="n" href="TheDeviceKit_Overview.html" title="The Device Kit"><img src="./images/navigation/next.png" alt="Next" /></a></div><div id="headerTR"><div id="navigpeople"><a href="http://www.haiku-os.org"><img src="./images/People_24.png" alt="haiku-os.org" title="Visit The Haiku Website" /></a></div><div class="navighome" title="Home"><a accesskey="h" href="index.html"><img src="./images/navigation/home.png" alt="Home" /></a></div><div class="navigboxed" id="navigindex"><a accesskey="i" href="ClassIndex.html" title="Index">I</a></div><div class="navigboxed" id="naviglang" title="English">en</div></div><div id="headerTC">The Be Book - System Overview - The Application Kit</div></div><div id="headerB">Prev: <a href="BPropertyInfo_Overview.html">BPropertyInfo</a> Up: <a href="TheApplicationKit_Overview.html">The Application Kit</a> Next: <a href="TheDeviceKit_Overview.html">The Device Kit</a></div><hr /></div><div class="section"><div xmlns="" xmlns:d="http://docbook.org/ns/docbook" class="titlepage"><div><div xmlns:d="http://docbook.org/ns/docbook"><h2 xmlns="http://www.w3.org/1999/xhtml" class="title"><a id="BRoster_Overview"></a>BRoster</h2></div></div></div><a id="id482191" class="indexterm"></a><p>The <a class="link" href="BRoster.html" title="BRoster"><code class="classname">BRoster</code></a>
|
||
object represents a service that keeps a roster of all
|
||
applications currently running. It can provide information about any of
|
||
those applications, activate one of them, add another application to the
|
||
roster by launching it, or get information about an application to help
|
||
you decide whether to launch it.</p><p>There's just one roster and it's shared by all applications. When an
|
||
application starts up, a
|
||
<a class="link" href="BRoster.html" title="BRoster"><code class="classname">BRoster</code></a>
|
||
object is constructed and assigned to a
|
||
global variable, <a class="link" href="BRoster.html#BRoster_be_roster" title="be_roster"><code class="varname">be_roster</code></a>.
|
||
You always access the roster through this
|
||
variable; you never have to instantiate a
|
||
<a class="link" href="BRoster.html" title="BRoster"><code class="classname">BRoster</code></a>
|
||
in application code.</p><p>The <a class="link" href="BRoster.html" title="BRoster"><code class="classname">BRoster</code></a>
|
||
identifies applications in three ways:
|
||
</p><div class="orderedlist"><ol><li><p>By <span class="type">entry_ref</span> references to the executable files where
|
||
they reside.</p></li><li><p>By their signatures. The signature is a unique identifier for the
|
||
application assigned as a file-system attribute or resource at compile
|
||
time or by the
|
||
<a class="link" href="BApplication.html" title="BApplication"><code class="classname">BApplication</code></a>
|
||
constructor at run time.</p></li><li><p>At run time, by their <span class="type">team_id</span>s. A team is a group of threads sharing
|
||
an address space; every application is a team.</p></li></ol></div><p>If an application is launched more than once, the roster will include one
|
||
entry for each instance of the application that's running. These
|
||
instances will have the same signature, but different team identifiers.</p></div><div id="footer"><hr /><div id="footerT">Prev: <a href="BPropertyInfo_Overview.html">BPropertyInfo</a> Up: <a href="TheApplicationKit_Overview.html">The Application Kit</a> Next: <a href="TheDeviceKit_Overview.html">The Device Kit</a> </div><div id="footerB"><div id="footerBL"><a href="BPropertyInfo_Overview.html" title="BPropertyInfo"><img src="./images/navigation/prev.png" alt="Prev" /></a> <a href="TheApplicationKit_Overview.html" title="The Application Kit"><img src="./images/navigation/up.png" alt="Up" /></a> <a href="TheDeviceKit_Overview.html" title="The Device Kit"><img src="./images/navigation/next.png" alt="Next" /></a></div><div id="footerBR"><div><a href="http://www.haiku-os.org"><img src="./images/People_24.png" alt="haiku-os.org" title="Visit The Haiku Website" /></a></div><div class="navighome" title="Home"><a accesskey="h" href="index.html"><img src="./images/navigation/home.png" alt="Home" /></a></div></div><div id="footerBC"><a href="http://www.access-company.com/home.html" title="ACCESS Co."><img alt="Access Company" src="./images/access_logo.png" /></a></div></div></div><div id="licenseFooter"><div id="licenseFooterBL"><a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/" title="Creative Commons License"><img alt="Creative Commons License" style="border-width:0" src="https://licensebuttons.net/l/by-nc-nd/3.0/88x31.png" /></a></div><div id="licenseFooterBR"><a href="./LegalNotice.html">Legal Notice</a></div><div id="licenseFooterBC"><span id="licenseText">This work is licensed under a
|
||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/3.0/">Creative
|
||
Commons Attribution-Non commercial-No Derivative Works 3.0 License</a>.</span></div></div></body></html>
|