home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / macfe / applevnt / mregistr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.0 KB  |  57 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. // mregistr.h
  20. // Registry for AppleEvent notifiers
  21. // Pretty clumsy right now, but separating this functionality out of uapp seems
  22. // to be the right thing.
  23. // It is just a collection of routines
  24.  
  25. #pragma once
  26.  
  27. #include <LArray.h>
  28.  
  29. class CNotifierRegistry    {
  30. public:
  31. // ÑÑ╩AppleEvent handling
  32.     static void            HandleAppleEvent(const AppleEvent    &inAppleEvent,
  33.                                     AppleEvent            &outAEReply,
  34.                                     AEDesc                &outResult,
  35.                                     long                inAENumber);
  36.     static void            ReadProtocolHandlers();    // Saving to prefs interface
  37.     static void            WriteProtocolHandlers();
  38.  
  39. private:
  40.     static void         HandleRegisterProtocol(const AppleEvent    &inAppleEvent,
  41.                                     AppleEvent            &outAEReply,
  42.                                     AEDesc                &outResult,
  43.                                     long                inAENumber);
  44.     static void         HandleUnregisterProtocol(const AppleEvent    &inAppleEvent,
  45.                                     AppleEvent            &outAEReply,
  46.                                     AEDesc                &outResult,
  47.                                     long                inAENumber);
  48. // ÑÑ url echo
  49.     static void         HandleRegisterURLEcho(const AppleEvent    &inAppleEvent,
  50.                                     AppleEvent            &outAEReply,
  51.                                     AEDesc                &outResult,
  52.                                     long                inAENumber);
  53.     static void         HandleUnregisterURLEcho(const AppleEvent    &inAppleEvent,
  54.                                     AppleEvent            &outAEReply,
  55.                                     AEDesc                &outResult,
  56.                                     long                inAENumber);
  57. };