]> git.saurik.com Git - apple/mdnsresponder.git/blobdiff - mDNSWindows/ControlPanel/ControlPanel.h
mDNSResponder-379.27.tar.gz
[apple/mdnsresponder.git] / mDNSWindows / ControlPanel / ControlPanel.h
old mode 100755 (executable)
new mode 100644 (file)
index 538fbf0..dec5e58
@@ -1,98 +1,84 @@
-/*\r
- * Copyright (c) 2002-2004 Apple Computer, Inc. All rights reserved.\r
- *\r
- * @APPLE_LICENSE_HEADER_START@\r
- * \r
- * This file contains Original Code and/or Modifications of Original Code\r
- * as defined in and that are subject to the Apple Public Source License\r
- * Version 2.0 (the 'License'). You may not use this file except in\r
- * compliance with the License. Please obtain a copy of the License at\r
- * http://www.opensource.apple.com/apsl/ and read it before using this\r
- * file.\r
- * \r
- * The Original Code and all software distributed under the License are\r
- * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER\r
- * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,\r
- * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,\r
- * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.\r
- * Please see the License for the specific language governing rights and\r
- * limitations under the License.\r
- * \r
- * @APPLE_LICENSE_HEADER_END@\r
-\r
-    Change History (most recent first):\r
-\r
-$Log: ControlPanel.h,v $
-Revision 1.2  2005/03/03 19:55:21  shersche
-<rdar://problem/4034481> ControlPanel source code isn't saving CVS log info
-\r
-\r
-*/\r
-\r
-    \r
-#pragma once\r
-\r
-#include "stdafx.h"\r
-\r
-//---------------------------------------------------------------------------------------------------------------------------\r
-//     CCPApplet\r
-//---------------------------------------------------------------------------------------------------------------------------\r
-\r
-class CCPApplet : public CCmdTarget\r
-{\r
-public:\r
-\r
-       CCPApplet( UINT nResourceID, UINT nDescriptionID, CRuntimeClass* pUIClass );\r
-\r
-       virtual ~CCPApplet();\r
-\r
-protected:\r
-\r
-       virtual LRESULT OnRun(CWnd* pParentWnd);\r
-       virtual LRESULT OnStartParms(CWnd* pParentWnd, LPCTSTR lpszExtra);\r
-       virtual LRESULT OnInquire(CPLINFO* pInfo);\r
-       virtual LRESULT OnNewInquire(NEWCPLINFO* pInfo);\r
-       virtual LRESULT OnSelect();\r
-       virtual LRESULT OnStop();\r
-\r
-       CRuntimeClass   *       m_uiClass;\r
-       UINT                            m_resourceId;\r
-       UINT                            m_descId;\r
-       CString                         m_name;\r
-       int                                     m_pageNumber;\r
-  \r
-       friend class CCPApp;\r
-\r
-       DECLARE_DYNAMIC(CCPApplet);\r
-};\r
-\r
-\r
-//---------------------------------------------------------------------------------------------------------------------------\r
-//     CCPApp\r
-//---------------------------------------------------------------------------------------------------------------------------\r
-\r
-class CCPApp : public CWinApp\r
-{\r
-public:\r
-\r
-       CCPApp();\r
-       virtual ~CCPApp();\r
-\r
-       void AddApplet( CCPApplet* pApplet );\r
-\r
-protected:\r
-\r
-       CList<CCPApplet*, CCPApplet*&> m_applets;\r
-\r
-       friend LONG APIENTRY\r
-       CPlApplet(HWND hWndCPl, UINT uMsg, LONG lParam1, LONG lParam2);\r
-\r
-       virtual LRESULT OnCplMsg(HWND hWndCPl, UINT msg, LPARAM lp1, LPARAM lp2);\r
-       virtual LRESULT OnInit();\r
-       virtual LRESULT OnExit();\r
-\r
-       DECLARE_DYNAMIC(CCPApp);\r
-};\r
-\r
-\r
-CCPApp * GetControlPanelApp();\r
+/* -*- Mode: C; tab-width: 4 -*-
+ *
+ * Copyright (c) 2002-2004 Apple Computer, Inc. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+    
+#pragma once
+
+#include "stdafx.h"
+
+//---------------------------------------------------------------------------------------------------------------------------
+//     CCPApplet
+//---------------------------------------------------------------------------------------------------------------------------
+
+class CCPApplet : public CCmdTarget
+{
+public:
+
+       CCPApplet( UINT nResourceID, UINT nDescriptionID, CRuntimeClass* pUIClass );
+
+       virtual ~CCPApplet();
+
+protected:
+
+       virtual LRESULT OnRun(CWnd* pParentWnd);
+       virtual LRESULT OnStartParms(CWnd* pParentWnd, LPCTSTR lpszExtra);
+       virtual LRESULT OnInquire(CPLINFO* pInfo);
+       virtual LRESULT OnNewInquire(NEWCPLINFO* pInfo);
+       virtual LRESULT OnSelect();
+       virtual LRESULT OnStop();
+
+       CRuntimeClass   *       m_uiClass;
+       UINT                            m_resourceId;
+       UINT                            m_descId;
+       CString                         m_name;
+       int                                     m_pageNumber;
+  
+       friend class CCPApp;
+
+       DECLARE_DYNAMIC(CCPApplet);
+};
+
+
+//---------------------------------------------------------------------------------------------------------------------------
+//     CCPApp
+//---------------------------------------------------------------------------------------------------------------------------
+
+class CCPApp : public CWinApp
+{
+public:
+
+       CCPApp();
+       virtual ~CCPApp();
+
+       void AddApplet( CCPApplet* pApplet );
+
+protected:
+
+       CList<CCPApplet*, CCPApplet*&> m_applets;
+
+       friend LONG APIENTRY
+       CPlApplet(HWND hWndCPl, UINT uMsg, LONG lParam1, LONG lParam2);
+
+       virtual LRESULT OnCplMsg(HWND hWndCPl, UINT msg, LPARAM lp1, LPARAM lp2);
+       virtual LRESULT OnInit();
+       virtual LRESULT OnExit();
+
+       DECLARE_DYNAMIC(CCPApp);
+};
+
+
+CCPApp * GetControlPanelApp();