ipcIClientObserver.idl revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan/* ***** BEGIN LICENSE BLOCK *****
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * Version: MPL 1.1/GPL 2.0/LGPL 2.1
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan *
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * The contents of this file are subject to the Mozilla Public License Version
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * 1.1 (the "License"); you may not use this file except in compliance with
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * the License. You may obtain a copy of the License at
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * http://www.mozilla.org/MPL/
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan *
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * Software distributed under the License is distributed on an "AS IS" basis,
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * for the specific language governing rights and limitations under the
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * License.
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan *
2dd75eff92ef66e22cca286b6f4fe5a9c929af9dPhill Cunnington * The Original Code is Mozilla IPC.
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan *
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * The Initial Developer of the Original Code is
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * Netscape Communications Corporation.
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * Portions created by the Initial Developer are Copyright (C) 2002
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * the Initial Developer. All Rights Reserved.
6057736124e265febf1603affd1ec9be4428d99dDirk Hogan *
2dd75eff92ef66e22cca286b6f4fe5a9c929af9dPhill Cunnington * Contributor(s):
2dd75eff92ef66e22cca286b6f4fe5a9c929af9dPhill Cunnington * Darin Fisher <darin@netscape.com>
883337f300b7ec221922c406e0c4dcee08a89e51Dirk Hogan *
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * Alternatively, the contents of this file may be used under the terms of
698087e79b077b3fd51ea24a83cdd9b2c979d26eDirk Hogan * either the GNU General Public License Version 2 or later (the "GPL"), or
6057736124e265febf1603affd1ec9be4428d99dDirk Hogan * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * in which case the provisions of the GPL or the LGPL are applicable instead
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * of those above. If you wish to allow use of your version of this file only
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * under the terms of either the GPL or the LGPL, and not to allow others to
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * use your version of this file under the terms of the MPL, indicate your
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * decision by deleting the provisions above and replace them with the notice
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * and other provisions required by the GPL or the LGPL. If you do not delete
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * the provisions above, a recipient may use your version of this file under
6057736124e265febf1603affd1ec9be4428d99dDirk Hogan * the terms of any one of the MPL, the GPL or the LGPL.
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan *
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * ***** END LICENSE BLOCK ***** */
6057736124e265febf1603affd1ec9be4428d99dDirk Hogan
6057736124e265febf1603affd1ec9be4428d99dDirk Hogan#include "nsISupports.idl"
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan/**
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan * ipcIClientObserver
698087e79b077b3fd51ea24a83cdd9b2c979d26eDirk Hogan */
698087e79b077b3fd51ea24a83cdd9b2c979d26eDirk Hogan[scriptable, uuid(42283079-030c-4b13-b069-a08b7ad5eab2)]
9df1de8309feb43d162df756c9290ce3afab802aDirk Hoganinterface ipcIClientObserver : nsISupports
698087e79b077b3fd51ea24a83cdd9b2c979d26eDirk Hogan{
698087e79b077b3fd51ea24a83cdd9b2c979d26eDirk Hogan const unsigned long CLIENT_UP = 1;
698087e79b077b3fd51ea24a83cdd9b2c979d26eDirk Hogan const unsigned long CLIENT_DOWN = 2;
698087e79b077b3fd51ea24a83cdd9b2c979d26eDirk Hogan
9df1de8309feb43d162df756c9290ce3afab802aDirk Hogan void onClientStateChange(in unsigned long aClientID,
698087e79b077b3fd51ea24a83cdd9b2c979d26eDirk Hogan in unsigned long aClientState);
698087e79b077b3fd51ea24a83cdd9b2c979d26eDirk Hogan};
698087e79b077b3fd51ea24a83cdd9b2c979d26eDirk Hogan