📄 pils_8h-source.html
字号:
<!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>pils.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> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>pils.h</h1><a href="pils_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * pils.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Microsoft Internet Location Server Protocol interface class.</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 1993-2003 Equivalence Pty. Ltd.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Contributor(s): ______________________________________.</span>00025 <span class="comment"> *</span>00026 <span class="comment"> * $Log: pils.h,v $</span>00027 <span class="comment"> * Revision 1.4 2004/02/20 16:27:52 ykiryanov</span>00028 <span class="comment"> * if'd LDAP code to enable non-LDAP builds</span>00029 <span class="comment"> *</span>00030 <span class="comment"> * Revision 1.3 2003/04/11 00:07:46 robertj</span>00031 <span class="comment"> * More for Microsoft IP address specification wierdness (registration side).</span>00032 <span class="comment"> *</span>00033 <span class="comment"> * Revision 1.2 2003/04/07 13:05:09 robertj</span>00034 <span class="comment"> * Workaround for Microsoft IP address specification wierdness.</span>00035 <span class="comment"> *</span>00036 <span class="comment"> * Revision 1.1 2003/03/31 03:35:20 robertj</span>00037 <span class="comment"> * Major addition of LDAP functionality.</span>00038 <span class="comment"> * Added ILS specialisation of LDAP.</span>00039 <span class="comment"> *</span>00040 <span class="comment"> */</span>00041 00042 <span class="preprocessor">#ifndef _PILS_H</span>00043 <span class="preprocessor"></span><span class="preprocessor">#define _PILS_H</span>00044 <span class="preprocessor"></span>00045 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00046 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00047 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00048 <span class="preprocessor"></span>00049 <span class="preprocessor">#if P_LDAP</span>00050 <span class="preprocessor"></span>00051 <span class="preprocessor">#include <<a class="code" href="sockets_8h.html">ptlib/sockets.h</a>></span>00052 <span class="preprocessor">#include <<a class="code" href="pldap_8h.html">ptclib/pldap.h</a>></span>00053 00054 00057 <span class="keyword">class </span>PILSSession : <span class="keyword">public</span> PLDAPSession00058 {00059 <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(PILSSession, PLDAPSession)00060 <span class="keyword">public</span>:00063 PILSSession();00064 00074 <span class="keyword">class </span>MSIPAddress : <span class="keyword">public</span> <a class="code" href="classPIPSocket.html">PIPSocket</a>::Address00075 {00076 <span class="keyword">public</span>:00077 MSIPAddress(DWORD a = 0) : Address(a) { }00078 MSIPAddress(<span class="keyword">const</span> <a class="code" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> & a) : Address(a) { }00079 MSIPAddress(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & dotNotation) : Address(dotNotation) { }00080 MSIPAddress(PINDEX len, <span class="keyword">const</span> BYTE * bytes) : Address(len, bytes) { }00081 00082 MSIPAddress & operator=(DWORD a) { Address::operator=(a); <span class="keywordflow">return</span> *<span class="keyword">this</span>; }00083 MSIPAddress & operator=(<span class="keyword">const</span> <a class="code" href="classPIPSocket_1_1Address.html">PIPSocket::Address</a> & a) { Address::operator=(a); <span class="keywordflow">return</span> *<span class="keyword">this</span>; }00084 MSIPAddress & operator=(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & dotNotation) { Address::operator=(dotNotation); <span class="keywordflow">return</span> *<span class="keyword">this</span>; }00085 00086 <span class="keyword">friend</span> istream & operator>>(istream & s, MSIPAddress & a);00087 <span class="keyword">friend</span> ostream & operator<<(ostream & s, MSIPAddress & a);00088 };00089 00090 PLDAP_STRUCT_BEGIN(RTPerson)00091 PLDAP_ATTR_SIMP(RTPerson, <a class="code" href="classPString.html">PString</a>, cn); <span class="comment">// Must be non-empty</span>00092 PLDAP_ATTR_SIMP(RTPerson, <a class="code" href="classPString.html">PString</a>, c);00093 PLDAP_ATTR_SIMP(RTPerson, <a class="code" href="classPString.html">PString</a>, o);00094 PLDAP_ATTR_SIMP(RTPerson, <a class="code" href="classPString.html">PString</a>, surname);00095 PLDAP_ATTR_SIMP(RTPerson, <a class="code" href="classPString.html">PString</a>, givenName);00096 PLDAP_ATTR_SIMP(RTPerson, <a class="code" href="classPString.html">PString</a>, rfc822Mailbox); <span class="comment">// Must be non-empty</span>00097 PLDAP_ATTR_SIMP(RTPerson, <a class="code" href="classPString.html">PString</a>, location);00098 PLDAP_ATTR_SIMP(RTPerson, <a class="code" href="classPString.html">PString</a>, comment);00099 PLDAP_ATTR_SIMP(RTPerson, MSIPAddress, sipAddress);00100 PLDAP_ATTR_SIMP(RTPerson, <a class="code" href="classPWORDArray.html">PWORDArray</a>, sport);00101 PLDAP_ATTR_INIT(RTPerson, <span class="keywordtype">unsigned</span>, sflags, 0);00102 PLDAP_ATTR_INIT(RTPerson, <span class="keywordtype">unsigned</span>, ssecurity, 0);00103 PLDAP_ATTR_INIT(RTPerson, <span class="keywordtype">unsigned</span>, smodop, 0);00104 PLDAP_ATTR_INIT(RTPerson, <span class="keywordtype">unsigned</span>, sttl, 3600);00105 PLDAP_ATTR_SIMP(RTPerson, <a class="code" href="classPStringList.html">PStringList</a>, sprotid);00106 PLDAP_ATTR_SIMP(RTPerson, <a class="code" href="classPStringList.html">PStringList</a>, sprotmimetype);00107 PLDAP_ATTR_INIT(RTPerson, <a class="code" href="classPString.html">PString</a>, sappid, <a class="code" href="classPProcess.html#z227_16">PProcess::Current</a>().GetName()); <span class="comment">// Must be non-empty</span>00108 PLDAP_ATTR_INIT(RTPerson, <a class="code" href="classPString.html">PString</a>, sappguid, <span class="stringliteral">"none"</span>); <span class="comment">// Must be non-empty</span>00109 PLDAP_ATTR_SIMP(RTPerson, <a class="code" href="classPStringList.html">PStringList</a>, smimetype);00110 PLDAP_ATTR_INIT(RTPerson, BOOL, ilsa32833566, 0); <span class="comment">// 1=audio capable</span>00111 PLDAP_ATTR_INIT(RTPerson, BOOL, ilsa32964638, 0); <span class="comment">// 1=video capable</span>00112 PLDAP_ATTR_INIT(RTPerson, BOOL, ilsa26214430, 0); <span class="comment">// 1=in a call</span>00113 PLDAP_ATTR_INIT(RTPerson, <span class="keywordtype">unsigned</span>, ilsa26279966, 0); <span class="comment">// unknown</span>00114 PLDAP_ATTR_INIT(RTPerson, <span class="keywordtype">unsigned</span>, ilsa39321630, 0); <span class="comment">// 1 personal; 2 business user; 4 adults-only</span>00115 PLDAP_ATTR_INIT(RTPerson, time_t, timestamp, <a class="code" href="classPTime.html">PTime</a>().GetTimeInSeconds());00116 00117 <span class="keyword">public</span>:00118 <a class="code" href="classPString.html">PString</a> GetDN() <span class="keyword">const</span>;00119 00120 PLDAP_STRUCT_END();00121 00122 BOOL AddPerson(00123 <span class="keyword">const</span> RTPerson & person00124 );00125 00126 BOOL ModifyPerson(00127 <span class="keyword">const</span> RTPerson & person00128 );00129 00130 BOOL DeletePerson(00131 <span class="keyword">const</span> RTPerson & person00132 );00133 00134 BOOL SearchPerson(00135 <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & canonicalName,00136 RTPerson & person00137 );00138 00139 PList<RTPerson> SearchPeople(00140 <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & filter00141 );00142 };00143 00144 <span class="preprocessor">#endif // P_LDAP</span>00145 <span class="preprocessor"></span>00146 <span class="preprocessor">#endif // _PILS_H</span>00147 <span class="preprocessor"></span>00148 00149 <span class="comment">// End of file ////////////////////////////////////////////////////////////////</span></pre></div><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:11 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -