]> git.saurik.com Git - apple/mdnsresponder.git/blob - Clients/PrinterSetupWizard/SecondPage.h
mDNSResponder-87.tar.gz
[apple/mdnsresponder.git] / Clients / PrinterSetupWizard / SecondPage.h
1 /*
2 * Copyright (c) 1997-2004 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22
23 Change History (most recent first):
24
25 $Log: SecondPage.h,v $
26 Revision 1.2 2004/09/13 21:23:42 shersche
27 <rdar://problem/3796483> Add moreComing argument to OnAddPrinter and OnRemovePrinter callbacks
28 Bug #: 3796483
29
30 Revision 1.1 2004/06/18 04:36:57 rpantos
31 First checked in
32
33
34 */
35
36 #pragma once
37
38 #include "PrinterSetupWizardSheet.h"
39 #include "CommonServices.h"
40 #include "UtilTypes.h"
41 #include "afxcmn.h"
42 #include "dns_sd.h"
43 #include "afxwin.h"
44 #include <map>
45
46 using namespace PrinterSetupWizard;
47
48 // CSecondPage dialog
49
50 class CSecondPage : public CPropertyPage, public EventHandler
51 {
52 DECLARE_DYNAMIC(CSecondPage)
53
54 public:
55 CSecondPage();
56 virtual ~CSecondPage();
57
58 // Dialog Data
59 enum { IDD = IDD_SECOND_PAGE };
60
61 virtual void
62 OnAddPrinter(
63 Printer * printer,
64 bool moreComing);
65
66 virtual void
67 OnRemovePrinter(
68 Printer * printer,
69 bool moreComing);
70
71 virtual void
72 OnResolvePrinter(
73 Printer * printer);
74
75 protected:
76
77 void InitBrowseList();
78 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
79 afx_msg BOOL OnSetCursor(CWnd * pWnd, UINT nHitTest, UINT message);
80 virtual BOOL OnSetActive();
81 virtual BOOL OnKillActive();
82
83 DECLARE_MESSAGE_MAP()
84
85 public:
86
87 HTREEITEM m_emptyListItem;
88 bool m_selectOkay;
89 CTreeCtrl m_browseList;
90 DNSServiceRef m_resolver;
91 bool m_initialized;
92 bool m_waiting;
93
94 afx_msg void OnTvnSelchangedBrowseList(NMHDR *pNMHDR, LRESULT *pResult);
95 };