зеркало из https://github.com/mozilla/gecko-dev.git
Add and Remove Folder Listeners.
This commit is contained in:
Родитель
c23bfa638d
Коммит
d419f08699
|
@ -7,18 +7,13 @@
|
|||
|
||||
#include "nsISupports.h" /* interface nsISupports */
|
||||
#include "nsICollection.h" /* interface nsICollection */
|
||||
#include "nsIFolderListener.h" /* interface nsIFolderListener */
|
||||
#include "nsIEnumerator.h" /* interface nsIEnumerator */
|
||||
|
||||
#ifdef XPIDL_JS_STUBS
|
||||
#include "jsapi.h"
|
||||
#endif
|
||||
#include "nsDebug.h"
|
||||
#include "nsTraceRefcnt.h"
|
||||
#include "nsID.h"
|
||||
#include "nsIID.h"
|
||||
#include "nsError.h"
|
||||
#include "nsISupportsUtils.h"
|
||||
|
||||
class nsIFolderListener; /* forward decl */
|
||||
|
||||
/* starting interface nsIFolder */
|
||||
|
||||
|
@ -43,7 +38,7 @@ class nsIFolder : public nsICollection {
|
|||
NS_IMETHOD SetName(char * aName) = 0;
|
||||
|
||||
/* nsISupports GetChildNamed (in string name); */
|
||||
NS_IMETHOD GetChildNamed(char *name, nsISupports **_retval) = 0;
|
||||
NS_IMETHOD GetChildNamed(const char *name, nsISupports **_retval) = 0;
|
||||
|
||||
/* nsIFolder GetParent (); */
|
||||
NS_IMETHOD GetParent(nsIFolder **_retval) = 0;
|
||||
|
@ -51,6 +46,12 @@ class nsIFolder : public nsICollection {
|
|||
/* nsIEnumerator GetSubFolders (); */
|
||||
NS_IMETHOD GetSubFolders(nsIEnumerator **_retval) = 0;
|
||||
|
||||
/* void AddFolderListener (in nsIFolderListener listener); */
|
||||
NS_IMETHOD AddFolderListener(nsIFolderListener *listener) = 0;
|
||||
|
||||
/* void RemoveFolderListener (in nsIFolderListener listener); */
|
||||
NS_IMETHOD RemoveFolderListener(nsIFolderListener *listener) = 0;
|
||||
|
||||
#ifdef XPIDL_JS_STUBS
|
||||
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
|
||||
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIFolder *priv);
|
||||
|
|
|
@ -17,6 +17,9 @@
|
|||
*/
|
||||
|
||||
#include "nsICollection.idl"
|
||||
#include "nsIFolderListener.idl"
|
||||
|
||||
interface nsIFolderListener;
|
||||
|
||||
[uuid(361c89b0-c481-11d2-8614-000000000001)] /* XXX regenerate */
|
||||
interface nsIFolder : nsICollection {
|
||||
|
@ -28,5 +31,8 @@ interface nsIFolder : nsICollection {
|
|||
nsIFolder GetParent();
|
||||
|
||||
nsIEnumerator GetSubFolders();
|
||||
|
||||
void AddFolderListener(in nsIFolderListener listener);
|
||||
void RemoveFolderListener(in nsIFolderListener listener);
|
||||
};
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#ifdef XPIDL_JS_STUBS
|
||||
#include "jsapi.h"
|
||||
#endif
|
||||
class nsIFolder; /* forward decl */
|
||||
|
||||
/* starting interface nsIFolderListener */
|
||||
|
||||
|
@ -36,7 +37,7 @@ class nsIFolderListener : public nsISupports {
|
|||
NS_IMETHOD OnItemRemoved(nsIFolder *parentFolder, nsISupports *item) = 0;
|
||||
|
||||
/* void OnItemPropertyChanged (in nsISupports item, in string property, in string value); */
|
||||
NS_IMETHOD OnItemPropertyChanged(nsISupports *item, char *property, char *value) = 0;
|
||||
NS_IMETHOD OnItemPropertyChanged(nsISupports *item, const char *property, const char *value) = 0;
|
||||
|
||||
#ifdef XPIDL_JS_STUBS
|
||||
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
#include "nsISupports.idl"
|
||||
#include "nsIFolder.idl"
|
||||
|
||||
interface nsIFolder;
|
||||
|
||||
[uuid(1c5ef9f0-d1c0-11d2-94CA-006097222B83)] /* XXX regenerate */
|
||||
interface nsIFolderListener : nsISupports {
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче