xref: /netbsd-src/external/bsd/openldap/dist/contrib/ldapc++/src/LDAPSearchReference.h (revision 549b59ed3ccf0d36d3097190a0db27b770f3a839)
1 /*	$NetBSD: LDAPSearchReference.h,v 1.3 2021/08/14 16:14:49 christos Exp $	*/
2 
3 // $OpenLDAP$
4 /*
5  * Copyright 2000-2021 The OpenLDAP Foundation, All Rights Reserved.
6  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7  */
8 
9 
10 #ifndef LDAP_SEARCH_REFERENCE_H
11 #define LDAP_SEARCH_REFERENCE_H
12 
13 #include <LDAPMessage.h>
14 #include <LDAPUrlList.h>
15 
16 class LDAPRequest;
17 class LDAPUrl;
18 
19 /**
20  * This class is used to represent Continuation References that were
21  * returned during a SEARCH-Operation.
22  */
23 class LDAPSearchReference : public LDAPMsg{
24 
25     public :
26         /**
27          * Constructor that create an object from the C-API structures
28          */
29         LDAPSearchReference(const LDAPRequest* req, LDAPMessage* msg);
30 
31         /**
32          * The Destructor
33          */
34         ~LDAPSearchReference();
35 
36         /**
37          * @returns The destination URLs that were send with this message
38          */
39         const LDAPUrlList& getUrls() const;
40 
41     private :
42         LDAPUrlList m_urlList;
43         LDAPSearchReference();
44 };
45 
46 
47 
48 #endif //LDAP_SEARCH_REFERENCE_H
49