/* * Copyright (c) 2002-2003 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * compliance with the License. Please obtain a copy of the License at * http://www.opensource.apple.com/apsl/ and read it before using this * file. * * The Original Code and all software distributed under the License are * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. * Please see the License for the specific language governing rights and * limitations under the License. * * @APPLE_LICENSE_HEADER_END@ Change History (most recent first): $Log: BrowserDialog.h,v $ Revision 1.1 2003/08/21 02:16:10 bradley Rendezvous Browser for HTTP services for Windows CE/PocketPC. */ #if !defined(AFX_BROWSERDIALOG_H__DECC5C82_C1C6_4630_B8D5_E1DDE570A061__INCLUDED_) #define AFX_BROWSERDIALOG_H__DECC5C82_C1C6_4630_B8D5_E1DDE570A061__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 #include "afxtempl.h" #include "Resource.h" #include "DNSServices.h" //=========================================================================================================================== // BrowserDialog //=========================================================================================================================== class BrowserDialog : public CDialog { public: BrowserDialog( CWnd *inParent = NULL ); //{{AFX_DATA(BrowserDialog) enum { IDD = IDD_APPLICATION_DIALOG }; CListCtrl mBrowserList; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(BrowserDialog) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL static void BrowserCallBack( void * inContext, DNSBrowserRef inRef, DNSStatus inStatusCode, const DNSBrowserEvent * inEvent ); void BrowserAddService( const char *inName ); void BrowserRemoveService( const char *inName ); protected: struct BrowserEntry { CString name; }; HICON mIcon; DNSBrowserRef mBrowser; CArray < BrowserEntry, BrowserEntry > mBrowserEntries; // Generated message map functions //{{AFX_MSG(BrowserDialog) virtual BOOL OnInitDialog(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_BROWSERDIALOG_H__DECC5C82_C1C6_4630_B8D5_E1DDE570A061__INCLUDED_)