1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> 3<title>oscl_registry_serv_impl_global.h Source File</title> 4<link href="doxygen.css" rel="stylesheet" type="text/css"> 5</head><body> 6<!-- Generated by Doxygen 1.2.18 --> 7<center> 8<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> 9<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> 1000002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 1100003 1200004 <span class="comment">// Oscl Registry Serv Impl</span> 1300005 1400006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 1500007 1600019 <span class="preprocessor">#ifndef OSCL_REGISTRY_SERV_IMPL_GLOBAL_H_INCLUDED</span> 1700020 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_REGISTRY_SERV_IMPL_GLOBAL_H_INCLUDED</span> 1800021 <span class="preprocessor"></span> 1900022 <span class="preprocessor">#include "<a class="code" href="osclconfig__proc_8h.html">osclconfig_proc.h</a>"</span> 2000023 <span class="preprocessor">#include "<a class="code" href="oscl__base_8h.html">oscl_base.h</a>"</span> 2100024 <span class="preprocessor">#if (OSCL_HAS_SINGLETON_SUPPORT)</span> 2200025 <span class="preprocessor"></span> 2300026 <span class="preprocessor">#include "<a class="code" href="oscl__registry__serv__impl_8h.html">oscl_registry_serv_impl.h</a>"</span> 2400027 <span class="preprocessor">#include "<a class="code" href="oscl__registry__types_8h.html">oscl_registry_types.h</a>"</span> 2500028 <span class="preprocessor">#include "<a class="code" href="oscl__vector_8h.html">oscl_vector.h</a>"</span> 2600029 <span class="preprocessor">#include "<a class="code" href="oscl__mem_8h.html">oscl_mem.h</a>"</span> 2700030 2800031 <span class="comment">//global-variable-based implementation.</span> 2900032 <span class="comment">//this handles both the registration client and the access client</span> 3000033 <span class="comment">//interfaces.</span> 3100034 <span class="keyword">class </span>OsclRegistryServImpl 3200035 { 3300036 <span class="keyword">protected</span>: 3400037 OsclRegistryServImpl(); 3500038 <span class="keyword">virtual</span> ~OsclRegistryServImpl(); 3600039 3700040 int32 Connect(); 3800041 <span class="keywordtype">void</span> Close(); 3900042 4000043 <span class="comment">//for registration client</span> 4100044 int32 Register(<a class="code" href="classOSCL__String.html">OSCL_String</a>& aComponentID, <a class="code" href="group__osclutil.html#a0">OsclComponentFactory</a> aFactory); 4200045 int32 UnRegister(<a class="code" href="classOSCL__String.html">OSCL_String</a>& aComponentID); 4300046 4400047 <span class="comment">//for access client.</span> 4500048 <a class="code" href="group__osclutil.html#a0">OsclComponentFactory</a> GetFactory(<a class="code" href="classOSCL__String.html">OSCL_String</a>& aComponent); 4600049 <span class="keywordtype">void</span> GetFactories(<a class="code" href="classOSCL__String.html">OSCL_String</a>& aRegistry, <a class="code" href="classOscl__Vector.html">Oscl_Vector<OsclRegistryAccessElement, OsclMemAllocator></a>& aVec); 4700050 4800051 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclRegistryClient.html">OsclRegistryClient</a>; 4900052 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classOsclRegistryAccessClient.html">OsclRegistryAccessClient</a>; 5000053 <span class="keyword">private</span>: 5100054 <span class="keywordtype">bool</span> IsOpen()<span class="keyword"> const</span> 5200055 <span class="keyword"> </span>{ 5300056 <span class="keywordflow">return</span> iIsOpen; 5400057 } 5500058 <span class="keywordtype">bool</span> iIsOpen; 5600059 <span class="comment">//server data.</span> 5700060 <a class="code" href="classOsclComponentRegistry.html">OsclComponentRegistry</a>* GetOsclComponentRegistry(); 5800061 <span class="comment">//session data.</span> 5900062 <a class="code" href="classOscl__Vector.html">Oscl_Vector<uint32, OsclMemAllocator></a> iIdVec; 6000063 6100064 }; 6200065 6300066 <span class="preprocessor">#endif //oscl config</span> 6400067 <span class="preprocessor"></span> 6500068 <span class="preprocessor">#endif //OSCL_REGISTRY_IMPL_GLOBAL_H_INCLUDED</span> 6600069 <span class="preprocessor"></span> 67</pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> 68<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> 69</small></address> 70</body> 71</html> 72