blob: f4fdd99b9f330efed8d878eaca47205b7f997a41 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>oscl_registry_serv_impl_global.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </center>
<hr><h1>oscl_registry_serv_impl_global.h</h1><a href="oscl__registry__serv__impl__global_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span>
00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
00003
00004 <span class="comment">// Oscl Registry Serv Impl</span>
00005
00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
00007
00019 <span class="preprocessor">#ifndef OSCL_REGISTRY_SERV_IMPL_GLOBAL_H_INCLUDED</span>
00020 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_REGISTRY_SERV_IMPL_GLOBAL_H_INCLUDED</span>
00021 <span class="preprocessor"></span>
00022 <span class="preprocessor">#include "<a class="code" href="osclconfig__proc_8h.html">osclconfig_proc.h</a>"</span>
00023 <span class="preprocessor">#include "<a class="code" href="oscl__base_8h.html">oscl_base.h</a>"</span>
00024 <span class="preprocessor">#if (OSCL_HAS_SINGLETON_SUPPORT)</span>
00025 <span class="preprocessor"></span>
00026 <span class="preprocessor">#include "<a class="code" href="oscl__registry__serv__impl_8h.html">oscl_registry_serv_impl.h</a>"</span>
00027 <span class="preprocessor">#include "<a class="code" href="oscl__registry__types_8h.html">oscl_registry_types.h</a>"</span>
00028 <span class="preprocessor">#include "<a class="code" href="oscl__vector_8h.html">oscl_vector.h</a>"</span>
00029 <span class="preprocessor">#include "<a class="code" href="oscl__mem_8h.html">oscl_mem.h</a>"</span>
00030
00031 <span class="comment">//global-variable-based implementation.</span>
00032 <span class="comment">//this handles both the registration client and the access client</span>
00033 <span class="comment">//interfaces.</span>
00034 <span class="keyword">class </span>OsclRegistryServImpl
00035 {
00036 <span class="keyword">protected</span>:
00037 OsclRegistryServImpl();
00038 <span class="keyword">virtual</span> ~OsclRegistryServImpl();
00039
00040 int32 Connect();
00041 <span class="keywordtype">void</span> Close();
00042
00043 <span class="comment">//for registration client</span>
00044 int32 Register(<a class="code" href="classOSCL__String.html">OSCL_String</a>&amp; aComponentID, <a class="code" href="group__osclutil.html#a0">OsclComponentFactory</a> aFactory);
00045 int32 UnRegister(<a class="code" href="classOSCL__String.html">OSCL_String</a>&amp; aComponentID);
00046
00047 <span class="comment">//for access client.</span>
00048 <a class="code" href="group__osclutil.html#a0">OsclComponentFactory</a> GetFactory(<a class="code" href="classOSCL__String.html">OSCL_String</a>&amp; aComponent);
00049 <span class="keywordtype">void</span> GetFactories(<a class="code" href="classOSCL__String.html">OSCL_String</a>&amp; aRegistry, <a class="code" href="classOscl__Vector.html">Oscl_Vector&lt;OsclRegistryAccessElement, OsclMemAllocator&gt;</a>&amp; aVec);
00050
00051 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclRegistryClient.html">OsclRegistryClient</a>;
00052 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclRegistryAccessClient.html">OsclRegistryAccessClient</a>;
00053 <span class="keyword">private</span>:
00054 <span class="keywordtype">bool</span> IsOpen()<span class="keyword"> const</span>
00055 <span class="keyword"> </span>{
00056 <span class="keywordflow">return</span> iIsOpen;
00057 }
00058 <span class="keywordtype">bool</span> iIsOpen;
00059 <span class="comment">//server data.</span>
00060 <a class="code" href="classOsclComponentRegistry.html">OsclComponentRegistry</a>* GetOsclComponentRegistry();
00061 <span class="comment">//session data.</span>
00062 <a class="code" href="classOscl__Vector.html">Oscl_Vector&lt;uint32, OsclMemAllocator&gt;</a> iIdVec;
00063
00064 };
00065
00066 <span class="preprocessor">#endif //oscl config</span>
00067 <span class="preprocessor"></span>
00068 <span class="preprocessor">#endif //OSCL_REGISTRY_IMPL_GLOBAL_H_INCLUDED</span>
00069 <span class="preprocessor"></span>
</pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small>
</small></address>
</body>
</html>