Back to index

lightning-sunbird  0.9+nobinonly
winldap.h
Go to the documentation of this file.
00001 // winldap.h : main header file for the WINLDAP application
00002 //
00003 
00004 #ifndef __AFXWIN_H__
00005        #error include 'stdafx.h' before including this file for PCH
00006 #endif
00007 
00008 #include "resource.h"       // main symbols
00009 
00010 #ifndef _LDAP_H
00011 struct LDAP;
00012 #endif
00013 
00015 // LdapApp:
00016 // See winldap.cpp for the implementation of this class
00017 //
00018 
00019 class LdapApp : public CWinApp
00020 {
00021 public:
00022        LdapApp();
00023 
00024 public:
00025        BOOL IsConnected() { return m_connected; }
00026        LDAP *GetConnection() { return m_ld; }
00027 
00028 private:
00029        BOOL m_connected;
00030        CString       m_dirHost;
00031        int           m_dirPort;
00032        CString       m_searchBase;
00033        CString       m_searchFilter;
00034        int           m_scope;
00035        LDAP   *m_ld;
00036 
00037 
00038 // Overrides
00039        // ClassWizard generated virtual function overrides
00040        //{{AFX_VIRTUAL(LdapApp)
00041        public:
00042        virtual BOOL InitInstance();
00043        virtual int ExitInstance();
00044        //}}AFX_VIRTUAL
00045 
00046 // Implementation
00047 
00048        //{{AFX_MSG(LdapApp)
00049        afx_msg void OnAppAbout();
00050        afx_msg void OnFileConnect();
00051        afx_msg void OnUpdateFileConnect(CCmdUI* pCmdUI);
00052        afx_msg void OnFileDisconnect();
00053        afx_msg void OnUpdateFileDisconnect(CCmdUI* pCmdUI);
00054        afx_msg void OnFileSearch();
00055        afx_msg void OnUpdateFileSearch(CCmdUI* pCmdUI);
00056        //}}AFX_MSG
00057        DECLARE_MESSAGE_MAP()
00058 };
00059 
00060