2001-09-29 00:14:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-05-29 05:30:27 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2001-03-27 19:12:57 +04:00
|
|
|
/**
|
2001-10-20 00:52:59 +04:00
|
|
|
* This interface is implemented by an object that wants
|
|
|
|
* to observe an event corresponding to a topic.
|
2001-03-27 19:12:57 +04:00
|
|
|
*/
|
|
|
|
|
2010-01-11 13:01:38 +03:00
|
|
|
[scriptable, function, uuid(DB242E01-E4D9-11d2-9DDE-000064657374)]
|
1999-05-29 05:30:27 +04:00
|
|
|
interface nsIObserver : nsISupports {
|
|
|
|
|
2001-03-27 19:12:57 +04:00
|
|
|
/**
|
2001-10-20 00:52:59 +04:00
|
|
|
* Observe will be called when there is a notification for the
|
|
|
|
* topic |aTopic|. This assumes that the object implementing
|
|
|
|
* this interface has been registered with an observer service
|
|
|
|
* such as the nsIObserverService.
|
|
|
|
*
|
|
|
|
* If you expect multiple topics/subjects, the impl is
|
|
|
|
* responsible for filtering.
|
2001-03-27 19:12:57 +04:00
|
|
|
*
|
2001-10-23 02:01:27 +04:00
|
|
|
* You should not modify, add, remove, or enumerate
|
2001-10-26 04:11:18 +04:00
|
|
|
* notifications in the implemention of observe.
|
2001-10-23 02:01:27 +04:00
|
|
|
*
|
2001-10-20 00:52:59 +04:00
|
|
|
* @param aSubject : Notification specific interface pointer.
|
|
|
|
* @param aTopic : The notification topic or subject.
|
|
|
|
* @param aData : Notification specific wide string.
|
|
|
|
* subject event.
|
2001-03-27 19:12:57 +04:00
|
|
|
*/
|
2001-10-20 00:52:59 +04:00
|
|
|
void observe( in nsISupports aSubject,
|
|
|
|
in string aTopic,
|
2001-03-27 19:12:57 +04:00
|
|
|
in wstring aData );
|
1999-05-29 05:30:27 +04:00
|
|
|
|
|
|
|
};
|
|
|
|
|