diff options
Diffstat (limited to 'libcontextprovider/doc/html/class_context_provider_1_1_manager.html')
-rw-r--r-- | libcontextprovider/doc/html/class_context_provider_1_1_manager.html | 467 |
1 files changed, 467 insertions, 0 deletions
diff --git a/libcontextprovider/doc/html/class_context_provider_1_1_manager.html b/libcontextprovider/doc/html/class_context_provider_1_1_manager.html new file mode 100644 index 00000000..2fd5cc7a --- /dev/null +++ b/libcontextprovider/doc/html/class_context_provider_1_1_manager.html @@ -0,0 +1,467 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> +<title>libcontextprovider: ContextProvider::Manager Class Reference</title> +<link href="tabs.css" rel="stylesheet" type="text/css"> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.5.8 --> +<div class="navigation" id="top"> + <div class="tabs"> + <ul> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="namespaces.html"><span>Namespaces</span></a></li> + <li class="current"><a href="annotated.html"><span>Classes</span></a></li> + <li><a href="files.html"><span>Files</span></a></li> + </ul> + </div> + <div class="tabs"> + <ul> + <li><a href="annotated.html"><span>Class List</span></a></li> + <li><a href="classes.html"><span>Class Index</span></a></li> + <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> + <li><a href="functions.html"><span>Class Members</span></a></li> + </ul> + </div> + <div class="navpath"><a class="el" href="namespace_context_provider.html">ContextProvider</a>::<a class="el" href="class_context_provider_1_1_manager.html">Manager</a> + </div> +</div> +<div class="contents"> +<h1>ContextProvider::Manager Class Reference</h1><!-- doxytag: class="ContextProvider::Manager" --><a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> implements the org.freedesktop.ContextKit.Manager DBus interface. (With the help of <a class="el" href="class_context_provider_1_1_manager_adaptor.html" title="A DBus adaptor for implementing the org.freedesktop.ContextKit.Manager interface...">ManagerAdaptor</a>.) It creates and manages the <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> objects. There is one <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> object per each service. +<a href="#_details">More...</a> +<p> +<code>#include <<a class="el" href="manager_8h-source.html">manager.h</a>></code> +<p> + +<p> +<a href="class_context_provider_1_1_manager-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> +<tr><td></td></tr> +<tr><td colspan="2"><br><h2>Signals</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#f63b1764b3ca90140dddc0e041a2c0c5">firstSubscriberAppeared</a> (const QString &key)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Emitted when the first subscriber appears for the specified <em>key</em>. <a href="#f63b1764b3ca90140dddc0e041a2c0c5"></a><br></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#53f6700553dfe9958cae15a2c7f12142">lastSubscriberDisappeared</a> (const QString &key)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Emitted when the last subscriber disappears from the specified <em>key</em>. <a href="#53f6700553dfe9958cae15a2c7f12142"></a><br></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#34c580dc9b1a105d083fa44d06fff1ee">keyValueChanged</a> (const QString &key, const QVariant &newValue)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Emitted when a <em>key</em> managed by the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> changes to value <em>newValue</em>. <a href="#34c580dc9b1a105d083fa44d06fff1ee"></a><br></td></tr> +<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#690f98398be0562a475c7c3191dab82f">Manager</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#28223781c8fa135b05993ce31b2b26cb">~Manager</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Destroys the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>. <a href="#28223781c8fa135b05993ce31b2b26cb"></a><br></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_context_provider_1_1_subscriber.html">Subscriber</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#2c020866b5871894a5f2149dea6252a3">getSubscriber</a> (const QString &busName)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Gives the <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> object to a client with a given <em>busName</em>. <a href="#2c020866b5871894a5f2149dea6252a3"></a><br></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#1a06f69bb5e25b957b8d2163d1596678">keyIsValid</a> (const QString &key) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the given <em>key</em> is valid for this <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>. <a href="#1a06f69bb5e25b957b8d2163d1596678"></a><br></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#87b54dba08c59479a11b3c7c223bda9b">increaseSubscriptionCount</a> (const QString &key)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Increases the subscription count for the given <em>key</em>. <a href="#87b54dba08c59479a11b3c7c223bda9b"></a><br></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#f2d5d29f10a473bb71c5cf1a9dc53708">decreaseSubscriptionCount</a> (const QString &key)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Decreases the subscription count for the given <em>key</em>. <a href="#f2d5d29f10a473bb71c5cf1a9dc53708"></a><br></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#06c2c0a4b9f837377d19d891375a5fab">setKeyValue</a> (const QString &key, const QVariant &v)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the given <em>key</em> to a new value <em>v</em>. <a href="#06c2c0a4b9f837377d19d891375a5fab"></a><br></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">QVariant </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#e28730fbd946143d5f257f8647200c96">getKeyValue</a> (const QString &key)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the current value of the <em>key</em>. <a href="#e28730fbd946143d5f257f8647200c96"></a><br></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#6a2a5d39c7ba6a770645f91dfea7011a">getSubscriptionCount</a> (const QString &key) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the current subscription count for the given <em>key</em>. <a href="#6a2a5d39c7ba6a770645f91dfea7011a"></a><br></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#c8535b2e47e2b67546dc3e2f28e6e665">busNameIsGone</a> (const QString &key)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Informs the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> that the specified bus name is now gone. <a href="#c8535b2e47e2b67546dc3e2f28e6e665"></a><br></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#862864581c8c8fabb871211ec50735b4">hasSubscriberWithBusName</a> (const QString &name) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> has a <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> object with the given <em>name</em>. <a href="#862864581c8c8fabb871211ec50735b4"></a><br></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#c4b4c739c7429a94a3294af47ee0fbf7">addKey</a> (const QString &key)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Add a key to this <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>. <a href="#c4b4c739c7429a94a3294af47ee0fbf7"></a><br></td></tr> +<tr><td class="memItemLeft" nowrap align="right" valign="top">QStringList </td><td class="memItemRight" valign="bottom"><a class="el" href="class_context_provider_1_1_manager.html#36d1aa023f27e2d5852a5e48b1974806">getKeys</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the list of keys handled by this <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>. <a href="#36d1aa023f27e2d5852a5e48b1974806"></a><br></td></tr> +</table> +<hr><a name="_details"></a><h2>Detailed Description</h2> +<a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> implements the org.freedesktop.ContextKit.Manager DBus interface. (With the help of <a class="el" href="class_context_provider_1_1_manager_adaptor.html" title="A DBus adaptor for implementing the org.freedesktop.ContextKit.Manager interface...">ManagerAdaptor</a>.) It creates and manages the <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> objects. There is one <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> object per each service. +<p> +<a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> is responsible of allocating <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> objects to clients. It ensures that each client gets a unique <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> object (even if it executes GetSubscriber multiple times). When a client terminates its DBus connection, the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> (through the help of the adapter) deletes the corresponding <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> object.<p> +Each service started gets it's own <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> object that manages the keys belonging to the service. The <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> is registered as the org.freedesktop.ContextKit.Manager on the bus belonging to the service. <hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="690f98398be0562a475c7c3191dab82f"></a><!-- doxytag: member="ContextProvider::Manager::Manager" ref="690f98398be0562a475c7c3191dab82f" args="()" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">ContextProvider::Manager::Manager </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> + +</div> +</div><p> +<a class="anchor" name="28223781c8fa135b05993ce31b2b26cb"></a><!-- doxytag: member="ContextProvider::Manager::~Manager" ref="28223781c8fa135b05993ce31b2b26cb" args="()" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">ContextProvider::Manager::~Manager </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Destroys the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>. +<p> +Also destroys all the belonging subscriber objects created through <a class="el" href="class_context_provider_1_1_manager.html#2c020866b5871894a5f2149dea6252a3" title="Gives the Subscriber object to a client with a given busName.">getSubscriber()</a>. +</div> +</div><p> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="c4b4c739c7429a94a3294af47ee0fbf7"></a><!-- doxytag: member="ContextProvider::Manager::addKey" ref="c4b4c739c7429a94a3294af47ee0fbf7" args="(const QString &key)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void ContextProvider::Manager::addKey </td> + <td>(</td> + <td class="paramtype">const QString & </td> + <td class="paramname"> <em>key</em> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Add a key to this <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>. +<p> +Duplicate keys will be ignored with a warning. +</div> +</div><p> +<a class="anchor" name="c8535b2e47e2b67546dc3e2f28e6e665"></a><!-- doxytag: member="ContextProvider::Manager::busNameIsGone" ref="c8535b2e47e2b67546dc3e2f28e6e665" args="(const QString &key)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void ContextProvider::Manager::busNameIsGone </td> + <td>(</td> + <td class="paramtype">const QString & </td> + <td class="paramname"> <em>busName</em> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Informs the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> that the specified bus name is now gone. +<p> +The manager should remove all the subscribers created with this busname. +</div> +</div><p> +<a class="anchor" name="f2d5d29f10a473bb71c5cf1a9dc53708"></a><!-- doxytag: member="ContextProvider::Manager::decreaseSubscriptionCount" ref="f2d5d29f10a473bb71c5cf1a9dc53708" args="(const QString &key)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void ContextProvider::Manager::decreaseSubscriptionCount </td> + <td>(</td> + <td class="paramtype">const QString & </td> + <td class="paramname"> <em>key</em> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Decreases the subscription count for the given <em>key</em>. +<p> +The <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> will emit a lastSubscriberDisappeared signal if this is the last subscription. This is called by the child <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> objects. +</div> +</div><p> +<a class="anchor" name="f63b1764b3ca90140dddc0e041a2c0c5"></a><!-- doxytag: member="ContextProvider::Manager::firstSubscriberAppeared" ref="f63b1764b3ca90140dddc0e041a2c0c5" args="(const QString &key)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void ContextProvider::Manager::firstSubscriberAppeared </td> + <td>(</td> + <td class="paramtype">const QString & </td> + <td class="paramname"> <em>key</em> </td> + <td> ) </td> + <td><code> [signal]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Emitted when the first subscriber appears for the specified <em>key</em>. +<p> + +</div> +</div><p> +<a class="anchor" name="36d1aa023f27e2d5852a5e48b1974806"></a><!-- doxytag: member="ContextProvider::Manager::getKeys" ref="36d1aa023f27e2d5852a5e48b1974806" args="()" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">QStringList ContextProvider::Manager::getKeys </td> + <td>(</td> + <td class="paramname"> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Returns the list of keys handled by this <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>. +<p> + +</div> +</div><p> +<a class="anchor" name="e28730fbd946143d5f257f8647200c96"></a><!-- doxytag: member="ContextProvider::Manager::getKeyValue" ref="e28730fbd946143d5f257f8647200c96" args="(const QString &key)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">QVariant ContextProvider::Manager::getKeyValue </td> + <td>(</td> + <td class="paramtype">const QString & </td> + <td class="paramname"> <em>key</em> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Returns the current value of the <em>key</em>. +<p> +The returned QVariant is invalid if the value is undetermined or they key is not valid for this <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>. +</div> +</div><p> +<a class="anchor" name="2c020866b5871894a5f2149dea6252a3"></a><!-- doxytag: member="ContextProvider::Manager::getSubscriber" ref="2c020866b5871894a5f2149dea6252a3" args="(const QString &busName)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="class_context_provider_1_1_subscriber.html">Subscriber</a> * ContextProvider::Manager::getSubscriber </td> + <td>(</td> + <td class="paramtype">const QString & </td> + <td class="paramname"> <em>busName</em> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Gives the <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> object to a client with a given <em>busName</em>. +<p> +If the client is new, creates a new <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> object and gives it to the client. If the client has requested a <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> previously, returns the same object. +</div> +</div><p> +<a class="anchor" name="6a2a5d39c7ba6a770645f91dfea7011a"></a><!-- doxytag: member="ContextProvider::Manager::getSubscriptionCount" ref="6a2a5d39c7ba6a770645f91dfea7011a" args="(const QString &key) const " --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int ContextProvider::Manager::getSubscriptionCount </td> + <td>(</td> + <td class="paramtype">const QString & </td> + <td class="paramname"> <em>key</em> </td> + <td> ) </td> + <td> const</td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Returns the current subscription count for the given <em>key</em>. +<p> +Returns -1 if the key could not be found. +</div> +</div><p> +<a class="anchor" name="862864581c8c8fabb871211ec50735b4"></a><!-- doxytag: member="ContextProvider::Manager::hasSubscriberWithBusName" ref="862864581c8c8fabb871211ec50735b4" args="(const QString &name) const " --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">bool ContextProvider::Manager::hasSubscriberWithBusName </td> + <td>(</td> + <td class="paramtype">const QString & </td> + <td class="paramname"> <em>name</em> </td> + <td> ) </td> + <td> const</td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Returns true if the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> has a <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> object with the given <em>name</em>. +<p> +The <em>name</em> is the bus name. +</div> +</div><p> +<a class="anchor" name="87b54dba08c59479a11b3c7c223bda9b"></a><!-- doxytag: member="ContextProvider::Manager::increaseSubscriptionCount" ref="87b54dba08c59479a11b3c7c223bda9b" args="(const QString &key)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void ContextProvider::Manager::increaseSubscriptionCount </td> + <td>(</td> + <td class="paramtype">const QString & </td> + <td class="paramname"> <em>key</em> </td> + <td> ) </td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Increases the subscription count for the given <em>key</em>. +<p> +The <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> will emit a firstSubscriberAppeared signal if this is the first subscription. This is called by the child <a class="el" href="class_context_provider_1_1_subscriber.html" title="Subscriber implements the org.freedesktop.ContextKit.Subscriber DBus interface with...">Subscriber</a> objects. +</div> +</div><p> +<a class="anchor" name="1a06f69bb5e25b957b8d2163d1596678"></a><!-- doxytag: member="ContextProvider::Manager::keyIsValid" ref="1a06f69bb5e25b957b8d2163d1596678" args="(const QString &key) const " --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">bool ContextProvider::Manager::keyIsValid </td> + <td>(</td> + <td class="paramtype">const QString & </td> + <td class="paramname"> <em>key</em> </td> + <td> ) </td> + <td> const</td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Returns true if the given <em>key</em> is valid for this <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a>. +<p> +In other words, returns true if the <em>key</em> is managed by this manager. +</div> +</div><p> +<a class="anchor" name="34c580dc9b1a105d083fa44d06fff1ee"></a><!-- doxytag: member="ContextProvider::Manager::keyValueChanged" ref="34c580dc9b1a105d083fa44d06fff1ee" args="(const QString &key, const QVariant &newValue)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void ContextProvider::Manager::keyValueChanged </td> + <td>(</td> + <td class="paramtype">const QString & </td> + <td class="paramname"> <em>key</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const QVariant & </td> + <td class="paramname"> <em>newValue</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td><code> [signal]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Emitted when a <em>key</em> managed by the <a class="el" href="class_context_provider_1_1_manager.html" title="Manager implements the org.freedesktop.ContextKit.Manager DBus interface. (With the...">Manager</a> changes to value <em>newValue</em>. +<p> + +</div> +</div><p> +<a class="anchor" name="53f6700553dfe9958cae15a2c7f12142"></a><!-- doxytag: member="ContextProvider::Manager::lastSubscriberDisappeared" ref="53f6700553dfe9958cae15a2c7f12142" args="(const QString &key)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void ContextProvider::Manager::lastSubscriberDisappeared </td> + <td>(</td> + <td class="paramtype">const QString & </td> + <td class="paramname"> <em>key</em> </td> + <td> ) </td> + <td><code> [signal]</code></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Emitted when the last subscriber disappears from the specified <em>key</em>. +<p> + +</div> +</div><p> +<a class="anchor" name="06c2c0a4b9f837377d19d891375a5fab"></a><!-- doxytag: member="ContextProvider::Manager::setKeyValue" ref="06c2c0a4b9f837377d19d891375a5fab" args="(const QString &key, const QVariant &v)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void ContextProvider::Manager::setKeyValue </td> + <td>(</td> + <td class="paramtype">const QString & </td> + <td class="paramname"> <em>key</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const QVariant & </td> + <td class="paramname"> <em>v</em></td><td> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p> +Sets the given <em>key</em> to a new value <em>v</em>. +<p> +This triggers the emission of the <a class="el" href="class_context_provider_1_1_manager.html#34c580dc9b1a105d083fa44d06fff1ee" title="Emitted when a key managed by the Manager changes to value newValue.">Manager::keyValueChanged</a> signal. +</div> +</div><p> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="manager_8h-source.html">manager.h</a><li><a class="el" href="manager_8cpp.html">manager.cpp</a></ul> +</div> +<hr size="1"><address style="text-align: right;"><small>Generated on Fri Oct 23 08:58:39 2009 for libcontextprovider by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> +</body> +</html> |