Search completed in 1.46 seconds.
nsACString (External)
Class Declaration <map id="classes" name="classes"><area alt="" coords="1005,6,1096,54" href="http://developer.mozilla.org/en/ns
ACString_(External)" shape="rect" title="ns
ACString_(External)"> <area alt="" coords="980,102,1121,150" href="http://developer.mozilla.org/en/nsCStringContainer_(External)" shape="rect" title="nsCStringContainer_(External)"> <area alt="" coords="571,198,707,246" href="http://developer.mozilla.org/en/nsCString_external" shape="rect" title="nsCString_external"> <area alt="" coords="731,198,955,246" href="http://developer.mozilla.org/en/nsDependentCSubstring_external" shape="rect" title="nsDependentCSubstring_external"> <area alt="" coords="979,198,1123,246" href="http://developer.mozilla.org/en/PromiseFlatCString_(External)" shape="rect" title="PromiseFlatCString_(E...
... PRUint32 aLen Length PRUint32 Length() const - source IsEmpty PRBool IsEmpty() const - source SetIsVoid void SetIsVoid(PRBool) - source Parameters PRBool val IsVoid PRBool IsVoid() const - source Assign void Assign(const ns
ACString&) - source Parameters ns
ACString& aString void Assign(const char*, PRUint32) - source Parameters char* aData PRUint32 aLength void Assign(char) - source Parameters char aChar AssignLiteral void AssignLiteral(const char*) - source Parameters char* aData ...
... ns
ACString& aString void Assign(const char*, PRUint32) - source Parameters char* aData PRUint32 aLength void Assign(char) - source Parameters char aChar AssignLiteral void AssignLiteral(const char*) - source Parameters char* aData operator= ns
ACString& operator=(const ns
ACString&) - source Parameters ns
ACString& aString ns
ACString& operator=(const char*) - source Parameters char* aPtr ns
ACString& operator=(char) - source Parameters char aChar Replace void Replace(PRUint32, PRUint32, const char*, PRUint32) - source Parame...
...And 14 more matches
nsACString_internal
Class Declaration nsTSubstring is the most abstract class in the string hierarchy. It represents a single contiguous array of characters, which may or may not be null-terminated. This type is not instantiated directly. A sub-class is instantiated instead. For example, see nsTString. NAMES: nsAString for wide characters ns
ACString for narrow characters Many of the accessors on nsTSubstring are inlined as an optimization. ...
... which may or may not be null-terminated. This type is not instantiated directly. A sub-class is instantiated instead. For example, see nsTString. NAMES: nsAString for wide characters ns
ACString for narrow characters Many of the accessors on nsTSubstring are inlined as an optimization. ...
... This type is not instantiated directly. A sub-class is instantiated instead. For example, see nsTString. NAMES: nsAString for wide characters ns
ACString for narrow characters Many of the accessors on nsTSubstring are inlined as an optimization. ...
...And 9 more matches
nsACString
size_type [PRUint32] Type used to represent the number of bytes stored in the string. index_type [PRUint32] Type used to represent an offset into the string. Methods BeginReading The BeginReading function returns a const pointer to the first element of the string's internal buffer. ...
... size_type [PRUint32] Type used to represent the number of bytes stored in the string. index_type [PRUint32] Type used to represent an offset into the string. Methods BeginReading The BeginReading function returns a const pointer to the first element of the string's internal buffer. ...
...e to the end of a string's internal buffer. Insert The Insert family of functions inserts a value into a string's internal buffer. Cut The Cut function removes a section of the string's internal buffer. Operators operator= This operator is a shortcut for the Assign family of functions. operator+= This operator is a shortcut for the Append family of functions. Remarks The ns
ACString class is never instantiated directly. It should be instantiated using a subclass, such as nsEmbedCString. ns
ACString corresponds to the
ACString and AUTF8String XPIDL data types. ns
ACString by itself does not imply a particular character encoding. That is, it may be used to store UTF-8 characters, ASCII characters, or any random binary data. The character encoding in use for a particular nsACStr...
...And 2 more matches
Mozilla internal string guide
ut share the same APIs. As a result, you cannot assign a 8-bit string to a 16-bit string without some kind of conversion helper class or routine. For the purpose of this document, we will refer to the 16-bit string classes in class documentation. Every 16-bit class has an equivalent 8-bit class: Naming convention for wide and narrow string classes Wide Narrow nsAString ns
ACString nsString nsCString nsAutoString nsAutoCString etc... The string classes distinguish, as part of the type hierarchy, between strings that must have a null-terminator at the end of their buffer (ns[C]String) and strings that are not required to have a null-terminator (nsA[C]String). nsA[C]String is the base of the string classes (since it imposes fewer requir...
... u""_ns user-defined string literals. nsLiteral[C]String is trivially constructible and destructible, and therefore does not emit construction/destruction code when stored in statics, as opposed to the other string classes. The Major String Classes The list below describes the main base classes. Once you are familiar with them, see the appendix describing What Class to Use When. nsAString/ns
ACString: the abstract base class for all strings. It provides an API for assignment, individual character access, basic manipulation of characters in the string, and string comparison. This class corresponds to the XPIDL AString parameter type. nsAString is not necessarily null-terminated. nsString/nsCString: builds on nsAString by guaranteeing a null-terminated storage. This allows for a method (.get()...
...r type. nsAString is not necessarily null-terminated. nsString/nsCString: builds on nsAString by guaranteeing a null-terminated storage. This allows for a method (.get()) to access the underlying character buffer. The remainder of the string classes inherit from either nsAString or nsString. Thus, every string class is compatible with nsAString. Since every string derives from nsAString (or ns
ACString), they all share a simple API. Common read-only methods: .Length() - the number of code units (bytes for 8-bit string classes and char16_ts for 16-bit string classes) in the string. .IsEmpty() - the fastest way of determining if the string has any value. Use this instead of testing string.Length == 0 .Equals(string) - TRUE if the given string has the same value as the current string. Commo...
...And 22 more matches
nsIMsgFolder
void toggleFlag(in unsigned long flag); void onFlagChange(in unsigned long flag); void setPrefFlag(); nsIMsgFolder getFoldersWithFlag(in unsigned long flags, in unsigned long resultsize, out unsigned long numFolders); nsISupportsArray getAllFoldersWithFlag(in unsigned long aFlag); void getExpansionArray(in nsISupportsArray expansionArray);
ACString getUriForMsg(in nsIMsgDBHdr msgHdr); void deleteMessages(in nsISupportsArray messages,in nsIMsgWindow msgWindow, in boolean deleteStorage, in boolean isMove, in nsIMsgCopyServiceListener listener, in boolean allowUndo); void copyMessages(in nsIMsgFolder srcFolder, in nsISupportsArray messages,in boolean isMove, in nsIMsgWindow msgWindow,in nsIMsgCopyServiceListener listener, in ...
... void releaseSemaphore(in nsISupports semHolder); boolean testSemaphore(in nsISupports semHolder); void getNewMessages(in nsIMsgWindow aWindow, in nsIUrlListener aListener); void writeToFolderCache(in nsIMsgFolderCache folderCache, in boolean deep); long getNumNewMessages(in boolean deep); void setNumNewMessages(in long numNewMessages);
ACString generateMessageURI(in nsMsgKey msgKey); void addMessageDispositionState(in nsIMsgDBHdr aMessage,in nsMsgDispositionState aDispositionFlag); void markMessagesRead(in nsISupportsArray messages, in boolean markRead); void markAllMessagesRead(); void markMessagesFlagged(in nsISupportsArray messages, in boolean markFlagged); void markThreadRead(in nsIMsgThr...
...gDBHdr GetMessageHeader(in nsMsgKey msgKey); boolean shouldStoreMsgOffline(in nsMsgKey msgKey); boolean hasMsgOffline(in nsMsgKey msgKey); nsIInputStream getOfflineFileStream(in nsMsgKey msgKey, out PRUint32 offset, out PRUint32 size); void DownloadMessagesForOffline(in nsISupportsArray messages, in nsIMsgWindow window); nsIMsgFolder getChildWithURI(in
ACString uri, in boolean deep, in boolean caseInsensitive); void downloadAllForOffline(in nsIUrlListener listener, in nsIMsgWindow window); void enableNotifications(in long notificationType, in boolean enable, in boolean dbBatching); boolean isCommandEnabled(in
ACString command); boolean matchOrChangeFilterDestination(in nsIMsgFolder folder,in boolean caseInsensitive); ...
...And 18 more matches
PromiseFlatCString (External)
RFind FindChar RFindChar AppendInt ToInteger Base Classes nsCStringContainer Data Members No public members. ...
...Char RFindChar AppendInt ToInteger Base Classes nsCStringContainer Data Members No public members. ...
... ToInteger Base Classes nsCStringContainer Data Members No public members. ...
...And 17 more matches
nsCAutoString (External)
RFind FindChar RFindChar AppendInt ToInteger Base Classes nsCStringContainer Data Members No public members. ...
...Char RFindChar AppendInt ToInteger Base Classes nsCStringContainer Data Members No public members. ...
... ToInteger Base Classes nsCStringContainer Data Members No public members. ...
...And 17 more matches
nsDependentCSubstring external
AppendInt ToInteger Base Classes nsCStringContainer Data Members No public members. ...
...gContainer Data Members No public members. ...
...bstring_external() - source void nsDependentCSubstring_external(const char*, PRUint32) - source Parameters char* aStart PRUint32 aLength void nsDependentCSubstring_external(const ns
ACString&, PRUint32) - source Parameters ns
ACString& aStr PRUint32 aStartPos void nsDependentCSubstring_external(const ns
ACString&, PRUint32, PRUint32) - source Parameters ns
ACString& aStr PRUint32 aStartPos PRUint32 aLength Rebind void Rebind(const char*, PRUint32) - source Parameters char* aStart PRUint32 aLength BeginReading PRUint32 BeginReading(const char**, const char**) const - source Returns the lengt...
...And 16 more matches
nsIMessenger
rom: nsISupports Implemented by: @mozilla.org/messenger;1. To create an instance, use: messenger = Components.classes["@mozilla.org/messenger;1"] .createInstance(Components.interfaces.nsIMessenger); In Thunderbird, a global nsIMessenger object is defined as messenger via the createMessenger function in mailWindow.js. ...
...es["@mozilla.org/messenger;1"] .createInstance(Components.interfaces.nsIMessenger); In Thunderbird, a global nsIMessenger object is defined as messenger via the createMessenger function in mailWindow.js. ...
...nstance(Components.interfaces.nsIMessenger); In Thunderbird, a global nsIMessenger object is defined as messenger via the createMessenger function in mailWindow.js. ...
...And 16 more matches
nsCStringContainer (External)
Length IsEmpty SetIsVoid IsVoid Assign AssignLiteral operator= Replace Append AppendLiteral operator+= Insert Cut Truncate StripChars StripWhitespace Trim DefaultComparator Compare(const char*, PRInt32 (*) Compare(const ns
ACString&, PRInt32 (*) Equals(const char*, PRInt32 (*) Equals(const ns
ACString&, PRInt32 (*) operator< operator<= operator== operator>= operator> operator!= EqualsLiteral Find(const ns
ACString&, PRInt32 (*) Find(const ns
ACString&, PRUint32, PRInt32 (*) Find(const char*, PRInt32 (*) Find(con...
... Equals(const ns
ACString&, PRInt32 (*) operator< operator<= operator== operator>= operator> operator!= EqualsLiteral Find(const ns
ACString&, PRInt32 (*) Find(const ns
ACString&, PRUint32, PRInt32 (*) Find(const char*, PRInt32 (*) Find(const char*, PRUint32, PRInt32 (*) RFind(const ns
ACString&, PRInt32 (*) RFind(const ns
ACString&, PRInt32, PRInt32 (*) RFind(const char*, PRInt32 (*) RFind(const char*, PRInt32, PRInt32 (*) FindChar RFindChar AppendInt ToInteger Base Classes ns
ACString Data Members No public members. Methods BeginReading PRUint32 BeginReading(const char**, const char**) const - source...
... PRUint32 aLen Length PRUint32 Length() const - source IsEmpty PRBool IsEmpty() const - source SetIsVoid void SetIsVoid(PRBool) - source Parameters PRBool val IsVoid PRBool IsVoid() const - source Assign void Assign(const ns
ACString&) - source Parameters ns
ACString aString void Assign(const char*, PRUint32) - source Parameters char aData PRUint32 aLength void Assign(char) - source Parameters char aChar AssignLiteral void AssignLiteral(const char*) - source Parameters char aData ...
...And 15 more matches
nsCString external
FindChar RFindChar AppendInt ToInteger Base Classes nsCStringContainer Data Members No public members. ...
... ToInteger Base Classes nsCStringContainer Data Members No public members. ...
...ns
ACString& aReadable void nsCString_external(const char*, PRUint32) - source Parameters char* aData PRUint32 aLength get char* get() const - source operator= nsCString_external& operator=(const nsCString_external&) - source Parameters nsCString_external& aString ns
ACString& operator=(const ns
ACString&) - source Parameters ns
ACString& aString ns
ACString& operator=(const char*) - source Parameters char* aPtr ns
ACString& operator=(char) - source Parameters char aChar Adopt void Adopt(const char*, PRUint32) - source Parameters char* aDa...
...And 15 more matches
nsLiteralCString (External)
No public members. ...
... Rebind void Rebind(const char*, PRUint32) - source Parameters char* aData PRUint32 aLength get char* get() const - source operator= nsCString_external& operator=(const nsCString_external&) - source Parameters nsCString_external& aString ns
ACString& operator=(const ns
ACString&) - source Parameters ns
ACString& aString ns
ACString& operator=(const char*) - source Parameters char* aPtr ns
ACString& operator=(char) - source Parameters char aChar Adopt void Adopt(const char*, PRUint32) - source Parameters char* aData PRUint32 aLength ...
... PRUint32 aLen Length PRUint32 Length() const - source IsEmpty PRBool IsEmpty() const - source SetIsVoid void SetIsVoid(PRBool) - source Parameters PRBool val IsVoid PRBool IsVoid() const - source Assign void Assign(const ns
ACString&) - source Parameters ns
ACString& aString void Assign(const char*, PRUint32) - source Parameters char* aData PRUint32 aLength void Assign(char) - source Parameters char aChar AssignLiteral void AssignLiteral(const char*) - source Parameters char* aData ...
...And 14 more matches
nsLiteralString (External)
No public members. ...
... Rebind void Rebind(const char*, PRUint32) - source Parameters char* aData PRUint32 aLength get char* get() const - source operator= nsCString_external& operator=(const nsCString_external&) - source Parameters nsCString_external& aString ns
ACString& operator=(const ns
ACString&) - source Parameters ns
ACString& aString ns
ACString& operator=(const char*) - source Parameters char* aPtr ns
ACString& operator=(char) - source Parameters char aChar Adopt void Adopt(const char*, PRUint32) - source Parameters char* aData PRUint32 aLength ...
... PRUint32 aLen Length PRUint32 Length() const - source IsEmpty PRBool IsEmpty() const - source SetIsVoid void SetIsVoid(PRBool) - source Parameters PRBool val IsVoid PRBool IsVoid() const - source Assign void Assign(const ns
ACString&) - source Parameters ns
ACString& aString void Assign(const char*, PRUint32) - source Parameters char* aData PRUint32 aLength void Assign(char) - source Parameters char aChar AssignLiteral void AssignLiteral(const char*) - source Parameters char* aData ...
...And 14 more matches
NS ConvertUTF16toUTF8 external
void NS_ConvertUTF16toUTF8_external(const PRUnichar*, PRUint32) - source Parameters PRUnichar* aData PRUint32 aLength get char* get() const - source operator= nsCString_external& operator=(const nsCString_external&) - source Parameters nsCString_external& aString ns
ACString& operator=(const ns
ACString&) - source Parameters ns
ACString& aString ns
ACString& operator=(const char*) - source Parameters char* aPtr ns
ACString& operator=(char) - source Parameters char aChar Adopt void Adopt(const char*, PRUint32) - source Parameters char* aDa...
... PRUint32 aLen Length PRUint32 Length() const - source IsEmpty PRBool IsEmpty() const - source SetIsVoid void SetIsVoid(PRBool) - source Parameters PRBool val IsVoid PRBool IsVoid() const - source Assign void Assign(const ns
ACString&) - source Parameters ns
ACString& aString void Assign(const char*, PRUint32) - source Parameters char* aData PRUint32 aLength void Assign(char) - source Parameters char aChar AssignLiteral void AssignLiteral(const char*) - source Parameters char* aData ...
... Replace void Replace(PRUint32, PRUint32, const char*, PRUint32) - source Parameters PRUint32 cutStart PRUint32 cutLength char* data PRUint32 length void Replace(PRUint32, PRUint32, char) - source Parameters PRUint32 cutStart PRUint32 cutLength char c void Replace(PRUint32, PRUint32, const ns
ACString&) - source Parameters PRUint32 cutStart PRUint32 cutLength ns
ACString& readable Append void Append(char) - source Parameters char c void Append(const char*, PRUint32) - source Parameters char* data PRUint32 length void Append(const ns
ACString&) - source Param...
...And 13 more matches
NS LossyConvertUTF16toASCII external
void NS_LossyConvertUTF16toASCII_external(const PRUnichar*, PRUint32) - source Parameters PRUnichar* aData PRUint32 aLength get char* get() const - source operator= nsCString_external& operator=(const nsCString_external&) - source Parameters nsCString_external& aString ns
ACString& operator=(const ns
ACString&) - source Parameters ns
ACString& aString ns
ACString& operator=(const char*) - source Parameters char* aPtr ns
ACString& operator=(char) - source Parameters char aChar Adopt void Adopt(const char*, PRUint32) - source Parameters char* aDa...
... PRUint32 aLen Length PRUint32 Length() const - source IsEmpty PRBool IsEmpty() const - source SetIsVoid void SetIsVoid(PRBool) - source Parameters PRBool val IsVoid PRBool IsVoid() const - source Assign void Assign(const ns
ACString&) - source Parameters ns
ACString& aString void Assign(const char*, PRUint32) - source Parameters char* aData PRUint32 aLength void Assign(char) - source Parameters char aChar AssignLiteral void AssignLiteral(const char*) - source Parameters char* aData ...
... Replace void Replace(PRUint32, PRUint32, const char*, PRUint32) - source Parameters PRUint32 cutStart PRUint32 cutLength char* data PRUint32 length void Replace(PRUint32, PRUint32, char) - source Parameters PRUint32 cutStart PRUint32 cutLength char c void Replace(PRUint32, PRUint32, const ns
ACString&) - source Parameters PRUint32 cutStart PRUint32 cutLength ns
ACString& readable Append void Append(char) - source Parameters char c void Append(const char*, PRUint32) - source Parameters char* data PRUint32 length void Append(const ns
ACString&) - source Param...
...And 13 more matches
nsDependentCString external
Uint32 aLength Rebind void Rebind(const char*, PRUint32) - source Parameters char* aData PRUint32 aLength get char* get() const - source operator= nsCString_external& operator=(const nsCString_external&) - source Parameters nsCString_external& aString ns
ACString& operator=(const ns
ACString&) - source Parameters ns
ACString& aString ns
ACString& operator=(const char*) - source Parameters char* aPtr ns
ACString& operator=(char) - source Parameters char aChar Adopt void Adopt(const char*, PRUint32) - source Parameters char* aDa...
... PRUint32 aLen Length PRUint32 Length() const - source IsEmpty PRBool IsEmpty() const - source SetIsVoid void SetIsVoid(PRBool) - source Parameters PRBool val IsVoid PRBool IsVoid() const - source Assign void Assign(const ns
ACString&) - source Parameters ns
ACString& aString void Assign(const char*, PRUint32) - source Parameters char* aData PRUint32 aLength void Assign(char) - source Parameters char aChar AssignLiteral void AssignLiteral(const char*) - source Parameters char* aData ...
... Replace void Replace(PRUint32, PRUint32, const char*, PRUint32) - source Parameters PRUint32 cutStart PRUint32 cutLength char* data PRUint32 length void Replace(PRUint32, PRUint32, char) - source Parameters PRUint32 cutStart PRUint32 cutLength char c void Replace(PRUint32, PRUint32, const ns
ACString&) - source Parameters PRUint32 cutStart PRUint32 cutLength ns
ACString& readable Append void Append(char) - source Parameters char c void Append(const char*, PRUint32) - source Parameters char* data PRUint32 length void Append(const ns
ACString&) - source Param...
...And 13 more matches
nsISyncJPAKE
services/crypto/component/nsISyncJPAKE.idlScriptable Please add a summary to this article. ...
... services/crypto/component/nsISyncJPAKE.idlScriptable Please add a summary to this article. ...
... services/crypto/component/nsISyncJPAKE.idlScriptable Please add a summary to this article. ...
...And 13 more matches
nsIMsgIncomingServer
List); void configureTemporaryReturnReceiptsFilter(in nsIMsgFilterList filterList); Obsolete since Gecko 1.8 void displayOfflineMsg(in nsIMsgWindow aWindow); boolean equals(in nsIMsgIncomingServer server); void forgetPassword(); void forgetSessionPassword(); AString generatePrettyNameForMigration(); boolean getBoolAttribute(in string name); boolean getBoolValue(in string attr);
ACString getCharAttribute(in string name);
ACString getCharValue(in string attr); nsILocalFile getFileValue(in string relpref, in string abspref); nsIMsgFilterList getFilterList(in nsIMsgWindow aMsgWindow); long getIntAttribute(in string name); long getIntValue(in string attr); nsIMsgFolder getMsgFolderFromURI(in nsIMsgFolder aFolderResource, in
ACString aURI); void getNewMessages(in nsIMsgF...
...sILocalFile getFileValue(in string relpref, in string abspref); nsIMsgFilterList getFilterList(in nsIMsgWindow aMsgWindow); long getIntAttribute(in string name); long getIntValue(in string attr); nsIMsgFolder getMsgFolderFromURI(in nsIMsgFolder aFolderResource, in
ACString aURI); void getNewMessages(in nsIMsgFolder aFolder, in nsIMsgWindow aMsgWindow, in nsIUrlListener aUrlListener);
ACString getPasswordWithUI(in AString aPromptString, in AString aPromptTitle, in nsIMsgWindow aMsgWindow, out boolean okayValue); AString getUnicharAttribute(in string name); AString getUnicharValue(in string attr); boolean isNewHdrDuplicate(in nsIMsgDBHdr aNewHdr); void onUserOrHostNameChanged(in
ACString oldName, in
ACString newName); void performBiff(in nsIMsgWindow aMsgWindow); void perfo...
...lean isNewHdrDuplicate(in nsIMsgDBHdr aNewHdr); void onUserOrHostNameChanged(in
ACString oldName, in
ACString newName); void performBiff(in nsIMsgWindow aMsgWindow); void performExpand(in nsIMsgWindow aMsgWindow); void removeFiles(); void setBoolAttribute(in string name, in boolean value); void setBoolValue(in string attr, in boolean value); void setCharAttribute(in string name, in
ACString value); void setCharValue(in string attr, in
ACString value); void setDefaultLocalPath(in nsILocalFile aDefaultLocalPath); void setFileValue(in string relpref, in string abspref, in nsILocalFile aValue); void setFilterList(in nsIMsgFilterList aFilterList); void setIntAttribute(in string name, in long value); void setIntValue(in string attr, in long value); void setUnicharAttribute(i...
...And 11 more matches
nsIFile
te an nsIFile from a path you can use FileUtils.jsm: var FileUtils = Cu.import("resource://gre/modules/FileUtils.jsm").FileUtils var nsifile = new FileUtils.File( fileName ) Note: nsILocalFile was merged with this interface in Gecko 14. Much of the documentation has not been updated to reflect this change. ...
...ort("resource://gre/modules/FileUtils.jsm").FileUtils var nsifile = new FileUtils.File( fileName ) Note: nsILocalFile was merged with this interface in Gecko 14. Much of the documentation has not been updated to reflect this change. ...
...lativeNativePath(in
ACString relativeFilePath); void appendRelativePath(in AString relativeFilePath); nsIFile clone(); boolean contains(in nsIFile inFile); void copyTo(in nsIFile newParentDir, in AString newName); void copyToFollowingLinks(in nsIFile newParentDir, in AString newName); void copyToFollowingLinksNative(in nsIFile newParentDir, in
ACString newName); Native code only! void CopyToNative(in nsIFile newParentDir, in
ACString newName); Native code only! ...
...And 10 more matches
nsIHttpChannel
ble. ...
...To create an HTTP channel, use nsIIOService with a HTTP URI, for example: var ios = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var ch = ios.newChannel("https://www.example.com/", null, null); Method overview void getOriginalResponseHeader(in
ACString aHeader, in nsIHttpHeaderVisitor aVisitor);
ACString getRequestHeader(in
ACString aHeader);
ACString getResponseHeader(in
ACString header); boolean isNoCacheResponse(); boolean isNoStoreResponse(); void redirectTo(in nsIURI aNewURI); void setEmptyRequestHeader(in
ACString aHeader); void setReferrerWithPolicy(in nsIURI referrer, in unsigned long referrerPolicy); void setRequestHeader(...
...tRequestHeader(in
ACString aHeader);
ACString getResponseHeader(in
ACString header); boolean isNoCacheResponse(); boolean isNoStoreResponse(); void redirectTo(in nsIURI aNewURI); void setEmptyRequestHeader(in
ACString aHeader); void setReferrerWithPolicy(in nsIURI referrer, in unsigned long referrerPolicy); void setRequestHeader(in
ACString aHeader, in
ACString aValue, in boolean aMerge); void setResponseHeader(in
ACString header, in
ACString value, in boolean merge); void visitOriginalResponseHeaders(in nsIHttpHeaderVisitor aVisitor); void visitRequestHeaders(in nsIHttpHeaderVisitor aVisitor); void visitResponseHeaders(in nsIHttpHeaderVisitor aVisitor); Constants Constant Des...
...And 10 more matches
nsINavBookmarkObserver
/components/places/nsINavBookmarksService.idlScriptable This interface is an observer for bookmark changes. ...
...nsINavBookmarksService.idlScriptable This interface is an observer for bookmark changes. ...
... onBeforeItemRemoved(in long long aItemId, in unsigned short aItemType, in long long aParentId, in
ACString aGUID, in
ACString aParentGUID); Obsolete since Gecko 21.0 void onBeginUpdateBatch(); void onEndUpdateBatch(); void onFolderAdded(in PRInt64 folder, in PRInt64 parent, in PRInt32 index); Obsolete since Gecko 1.9 void onFolderChanged(in PRInt64 folder, in
ACString property); Obsolete since Gecko 1.9 void onFolderMoved(in PRInt64 folder, in PRInt64 oldParent, in PRInt32 oldIndex, in PRInt64 newParent, in PRInt32 newIndex); Obsolete since Gecko 1.9 void onFolderRemoved(in PRInt64 folder, in PRInt64 parent, in PRInt32 index); Obsolete since Gecko 1.9 void onItemAdded(in long long aItemId, in long long aParentId, in long aIndex, in u...
...And 10 more matches
nsDependentCString
m an existing flat string. Parameters nsCString_internal& str The existing flat string. PRUint32 startPos The position within the existing string at which the dependent string should start. This is similar to using Substring(str, startPos), except that the resulting string is flat. void nsDependentCString() - source Constructs an nsDependentString to be rebound later. nsDependentCString(const ns
ACString_internal&) - source Obsolete in Gecko 9. This constructor should not be used. Parameters ns
ACString_internal& str AssertValid void AssertValid() - source verify restrictions Rebind void Rebind(const char*) - source allow this class to be bound to a different string... Parameters char* data void Rebind(const char*, PRUint32) - source Parameters char* data PRUint32 length ...
... Rebind void Rebind(const char*) - source allow this class to be bound to a different string... ...
...be bound to a different string... ...
...And 8 more matches
nsPromiseFlatCString
AssignLiteral(char Adopt Replace ReplaceASCII Append AppendASCII AppendLiteral(const char AppendLiteral(char operator+= Insert Cut SetCapacity SetLength Truncate GetData GetMutableData SetIsVoid StripChar Base Classes nsCString Data Members No public members. ...
... ReplaceASCII Append AppendASCII AppendLiteral(const char AppendLiteral(char operator+= Insert Cut SetCapacity SetLength Truncate GetData GetMutableData SetIsVoid StripChar Base Classes nsCString Data Members No public members. ...
...pChar Base Classes nsCString Data Members No public members. ...
...And 8 more matches
Index
le. 1149 NS_POSTCONDITION XPCOM, XPCOM_Macros Macro 1150 NS_PRECONDITION XPCOM, XPCOM_Macros Macro 1151 PromiseFlatCString (External) NeedsContent, Reference, Reference(2), strings Class Declaration 1152 PromiseFlatString (External) NeedsContent, Reference, Reference(2), strings Class Declaration 1153 ns
ACString Glue_Classes, XPCOM, XPCOM API Reference The ns
ACString abstract class represents a character string composed of single-byte storage units. This class is typically used to represent ASCII or UTF-8 character arrays. 1154 Append XPCOM, XPCOM API Reference The Append family of functions appends a value to the end of a string's internal buffer. 1155 Assign ...
... Replace XPCOM, XPCOM API Reference The Replace family of functions sets the value of a string's internal buffer. 1162 operator+= XPCOM, XPCOM API Reference This operator+= is a shortcut for the Append family of functions. 1163 operator= XPCOM, XPCOM API Reference This operator is a shortcut for the Assign family of functions. 1164 ns
ACString (External) NeedsContent, Reference, Reference(2), strings Class Declaration 1165 ns
ACString_internal Class Declaration 1166 nsAString XPCOM, XPCOM API Reference The nsAString abstract class represents a character string composed of double-byte storage units. This class is typically used to represent Unicode character arrays. 1167 App...
... 1202 get XPCOM, XPCOM API Reference The get function returns a const pointer to the string's null-terminated, internal buffer. 1203 nsEmbedCString XPCOM, XPCOM API Reference Constructors for nsEmbedCString. 1204 operator= XPCOM, XPCOM API Reference This operator is a shortcut for the inhe...
...And 7 more matches
nsCAutoString
Data Members No public members. ...
...tructors void nsCAutoString() - source constructors void nsCAutoString(char) - source Parameters char c void nsCAutoString(const char*, PRUint32) - source Parameters char* data PRUint32 length void nsCAutoString(const nsCAutoString&) - source Parameters nsCAutoString& str void nsCAutoString(const ns
ACString_internal&) - source Parameters ns
ACString_internal& str void nsCAutoString(const nsCSubstringTuple&) - source Parameters nsCSubstringTuple& tuple operator= nsCAutoString& operator=(const nsCAutoString&) - source Parameters nsCAutoString& str nsCString& operator=(const nsCString&) - source Parameters nsCString& str ns
ACString_internal& operator=(char) - source Parameters char c ...
...ernal& str void nsCAutoString(const nsCSubstringTuple&) - source Parameters nsCSubstringTuple& tuple operator= nsCAutoString& operator=(const nsCAutoString&) - source Parameters nsCAutoString& str nsCString& operator=(const nsCString&) - source Parameters nsCString& str ns
ACString_internal& operator=(char) - source Parameters char c ns
ACString_internal& operator=(const char*) - source Parameters char* data ns
ACString_internal& operator=(const ns
ACString_internal&) - source Parameters ns
ACString_internal& str ns
ACString_internal& operator=(const nsCSubstringTuple&) - source Parameters nsCSubstringTuple& tuple get char* get() const - source returns the null-terminated string Find P...
...And 7 more matches
nsCString
Methods Constructors void nsCString() - source constructors void nsCString(char) - source Parameters char c void nsCString(const char*, PRUint32) - source Parameters char* data PRUint32 length void nsCString(const nsCString&) - source Parameters nsCString& str void nsCString(const nsCSubstringTuple&) - source Parameters nsC...
...thods Constructors void nsCString() - source constructors void nsCString(char) - source Parameters char c void nsCString(const char*, PRUint32) - source Parameters char* data PRUint32 length void nsCString(const nsCString&) - source Parameters nsCString& str void nsCString(const nsCSubstringTuple&) - source Parameters nsCSubstringTuple& tuple void nsCString(const ns
ACString_internal&) - source Parameters ns
ACString_internal& readable operator= nsCString& operator=(const nsCString&) - source Parameters nsCString& str ns
ACString_internal& operator=(char) - source Parameters char c ns
ACString_internal& operator=(const char*) - source Parameters char* data ns
ACString_internal& operator=(const ns
ACString_internal&) - source Parameters nsACS...
...rameters ns
ACString_internal& readable operator= nsCString& operator=(const nsCString&) - source Parameters nsCString& str ns
ACString_internal& operator=(char) - source Parameters char c ns
ACString_internal& operator=(const char*) - source Parameters char* data ns
ACString_internal& operator=(const ns
ACString_internal&) - source Parameters ns
ACString_internal& str ns
ACString_internal& operator=(const nsCSubstringTuple&) - source Parameters nsCSubstringTuple& tuple get char* get() const - source returns the null-terminated string Find PRInt32 Find(const nsCString&, PRBool, PRInt32, PRInt32) const - source Search for the given substring within this string. @param aString is substring to be sought in this @param aIgnoreCase selects case sensitiv...
...And 7 more matches
NS_ConvertASCIItoUTF16
lace ReplaceASCII Append AppendASCII AppendLiteral(const char AppendLiteral(char operator+= Insert Cut SetCapacity SetLength Truncate GetData GetMutableData SetIsVoid StripChar Base Classes nsAutoString Data Members No public members. ...
...ral(char operator+= Insert Cut SetCapacity SetLength Truncate GetData GetMutableData SetIsVoid StripChar Base Classes nsAutoString Data Members No public members. ...
...tLength Truncate GetData GetMutableData SetIsVoid StripChar Base Classes nsAutoString Data Members No public members. ...
...And 6 more matches
NS_ConvertUTF8toUTF16
place ReplaceASCII Append AppendASCII AppendLiteral(const char AppendLiteral(char operator+= Insert Cut SetCapacity SetLength Truncate GetData GetMutableData SetIsVoid StripChar Base Classes nsAutoString Data Members No public members. ...
...teral(char operator+= Insert Cut SetCapacity SetLength Truncate GetData GetMutableData SetIsVoid StripChar Base Classes nsAutoString Data Members No public members. ...
... SetLength Truncate GetData GetMutableData SetIsVoid StripChar Base Classes nsAutoString Data Members No public members. ...
...And 6 more matches
nsDependentCSubstring
LowerCaseEqualsLiteral(char Assign AssignASCII AssignLiteral(const char AssignLiteral(char operator= Adopt Replace ReplaceASCII Append AppendASCII AppendLiteral(const char AppendLiteral(char operator+= Insert Cut SetCapacity SetLength Truncate GetData GetMutableData SetIsVoid StripChar Base Classes ns
ACString_internal Data Members No public members. Methods Constructors void nsDependentCSubstring(const ns
ACString_internal&, PRUint32, PRUint32) - source Parameters ns
ACString_internal& str PRUint32 startPos PRUint32 length void nsDependentCSubstring(const char*, const char*) - source Parameters char* start char* end void nsDependentCSubstring(const nsReadingIterator<char>&, const nsR...
...nternal& str PRUint32 startPos PRUint32 length void nsDependentCSubstring(const char*, const char*) - source Parameters char* start char* end void nsDependentCSubstring(const nsReadingIterator<char>&, const nsReadingIterator<char>&) - source Parameters nsReadingIterator<char>& start nsReadingIterator<char>& end void nsDependentCSubstring() - source Rebind void Rebind(const ns
ACString_internal&, PRUint32, PRUint32) - source Parameters ns
ACString_internal& <anonymous> PRUint32 startPos PRUint32 length void Rebind(const char*, const char*) - source Parameters char* start char* end BeginReading char* BeginReading() const - source reading iterators nsReadingIterator<char>& BeginReading(nsReadingIterator<char>&) const - source deprecated reading iterators Para...
... operator[] char operator[](PRUint32) const - source Parameters PRUint32 i First char First() const - source Last char Last() const - source CountChar PRUint32 CountChar(char) const - source Parameters char <anonymous> FindChar PRInt32 FindChar(char, PRUint32) const - source Parameters char <anonymous> PRUint32 offset Equals PRBool Equals(const ns
ACString_internal&) const - source equality Parameters ns
ACString_internal& <anonymous> PRBool Equals(const ns
ACString_internal&, const nsCStringComparator&) const - source Parameters ns
ACString_internal& <anonymous> nsCStringComparator& <anonymous> PRBool Equals(const char*) const - source Parameters char* data PRBool Equals(const char*, const nsCStringComparator&) const - source Para...
...And 6 more matches
nsILocalFile
the local file system. 66 Introduced Gecko 1.0 Deprecated Gecko 14 Inherits from: nsIFile Last changed in Gecko 1.0 Implemented by: @mozilla.org/file/local;1. ...
... Gecko 1.0 Implemented by: @mozilla.org/file/local;1. ...
... void initWithPath(in AString filePath); void launch(); PRLibraryStar load(); Native code only! FILE openANSIFileDesc(in string mode); Native code only! ...
...And 6 more matches
NS_ConvertUTF16toUTF8
rtUTF16toUTF8(const PRUnichar*, PRUint32) - source Parameters PRUnichar* aString PRUint32 aLength void NS_ConvertUTF16toUTF8(const nsAString_internal&) - source Parameters nsAString_internal& aString operator= nsCAutoString& operator=(const nsCAutoString&) - source Parameters nsCAutoString& str nsCString& operator=(const nsCString&) - source Parameters nsCString& str ns
ACString_internal& operator=(char) - source Parameters char c ns
ACString_internal& operator=(const char*) - source Parameters char* data ns
ACString_internal& operator=(const ns
ACString_internal&) - source Parameters ns
ACString_internal& str ns
ACString_internal& operator=(const nsCSubstringTuple&) - source Parameters nsCSubstringTuple& tuple get char* get() const - source retu...
... aOffset tells us where in this string to start searching. Use -1 to search from the end of the string. @param aCount tells us how many iterations to make starting at the given offset. @return offset in string, or kNotFound Parameters nsCString& aString PRBool aIgnoreCase PRInt32 aOffset PRInt32 aCount PRInt32 RFind(const char*, PRBool, PRInt32, PRInt32) const - source Parameters char*
aCString PRBool aIgnoreCase PRInt32 aOffset PRInt32 aCount RFindChar PRInt32 RFindChar(PRUnichar, PRInt32, PRInt32) const - source Parameters PRUnichar aChar PRInt32 aOffset PRInt32 aCount FindCharInSet PRInt32 FindCharInSet(const char*, PRInt32) const - source This method searches this string for the first character found in the given string. @param aString contains set of chars to be...
... operator[] char operator[](PRUint32) const - source Parameters PRUint32 i First char First() const - source Last char Last() const - source CountChar PRUint32 CountChar(char) const - source Parameters char <anonymous> FindChar PRInt32 FindChar(char, PRUint32) const - source Parameters char <anonymous> PRUint32 offset Equals PRBool Equals(const ns
ACString_internal&) const - source equality Parameters ns
ACString_internal& <anonymous> PRBool Equals(const ns
ACString_internal&, const nsCStringComparator&) const - source Parameters ns
ACString_internal& <anonymous> nsCStringComparator& <anonymous> PRBool Equals(const char*) const - source Parameters char* data PRBool Equals(const char*, const nsCStringComparator&) const - source Para...
...And 5 more matches
NS_LossyConvertUTF16toASCII
toASCII(const PRUnichar*, PRUint32) - source Parameters PRUnichar* aString PRUint32 aLength void NS_LossyConvertUTF16toASCII(const nsAString_internal&) - source Parameters nsAString_internal& aString operator= nsCAutoString& operator=(const nsCAutoString&) - source Parameters nsCAutoString& str nsCString& operator=(const nsCString&) - source Parameters nsCString& str ns
ACString_internal& operator=(char) - source Parameters char c ns
ACString_internal& operator=(const char*) - source Parameters char* data ns
ACString_internal& operator=(const ns
ACString_internal&) - source Parameters ns
ACString_internal& str ns
ACString_internal& operator=(const nsCSubstringTuple&) - source Parameters nsCSubstringTuple& tuple get char* get() const - source retu...
... aOffset tells us where in this string to start searching. Use -1 to search from the end of the string. @param aCount tells us how many iterations to make starting at the given offset. @return offset in string, or kNotFound Parameters nsCString& aString PRBool aIgnoreCase PRInt32 aOffset PRInt32 aCount PRInt32 RFind(const char*, PRBool, PRInt32, PRInt32) const - source Parameters char*
aCString PRBool aIgnoreCase PRInt32 aOffset PRInt32 aCount RFindChar PRInt32 RFindChar(PRUnichar, PRInt32, PRInt32) const - source Parameters PRUnichar aChar PRInt32 aOffset PRInt32 aCount FindCharInSet PRInt32 FindCharInSet(const char*, PRInt32) const - source This method searches this string for the first character found in the given string. @param aString contains set of chars to be...
... operator[] char operator[](PRUint32) const - source Parameters PRUint32 i First char First() const - source Last char Last() const - source CountChar PRUint32 CountChar(char) const - source Parameters char <anonymous> FindChar PRInt32 FindChar(char, PRUint32) const - source Parameters char <anonymous> PRUint32 offset Equals PRBool Equals(const ns
ACString_internal&) const - source equality Parameters ns
ACString_internal& <anonymous> PRBool Equals(const ns
ACString_internal&, const nsCStringComparator&) const - source Parameters ns
ACString_internal& <anonymous> nsCStringComparator& <anonymous> PRBool Equals(const char*) const - source Parameters char* data PRBool Equals(const char*, const nsCStringComparator&) const - source Para...
...And 5 more matches
nsAdoptingCString
gth void nsAdoptingCString(const nsAdoptingCString&) - source Parameters nsAdoptingCString& str operator= nsAdoptingCString& operator=(const nsAdoptingCString&) - source Parameters nsAdoptingCString& str nsXPIDLCString& operator=(const nsXPIDLCString&) - source Parameters nsXPIDLCString& str nsCString& operator=(const nsCString&) - source Parameters nsCString& str ns
ACString_internal& operator=(char) - source Parameters char c ns
ACString_internal& operator=(const char*) - source Parameters char* data ns
ACString_internal& operator=(const ns
ACString_internal&) - source Parameters ns
ACString_internal& str ns
ACString_internal& operator=(const nsCSubstringTuple&) - source Parameters nsCSubstringTuple& tuple operator const char* char* operator c...
... aOffset tells us where in this string to start searching. Use -1 to search from the end of the string. @param aCount tells us how many iterations to make starting at the given offset. @return offset in string, or kNotFound Parameters nsCString& aString PRBool aIgnoreCase PRInt32 aOffset PRInt32 aCount PRInt32 RFind(const char*, PRBool, PRInt32, PRInt32) const - source Parameters char*
aCString PRBool aIgnoreCase PRInt32 aOffset PRInt32 aCount RFindChar PRInt32 RFindChar(PRUnichar, PRInt32, PRInt32) const - source Parameters PRUnichar aChar PRInt32 aOffset PRInt32 aCount FindCharInSet PRInt32 FindCharInSet(const char*, PRInt32) const - source This method searches this string for the first character found in the given string. @param aString contains set of chars to be...
...- source CharAt char CharAt(PRUint32) const - source Parameters PRUint32 i First char First() const - source Last char Last() const - source CountChar PRUint32 CountChar(char) const - source Parameters char <anonymous> FindChar PRInt32 FindChar(char, PRUint32) const - source Parameters char <anonymous> PRUint32 offset Equals PRBool Equals(const ns
ACString_internal&) const - source equality Parameters ns
ACString_internal& <anonymous> PRBool Equals(const ns
ACString_internal&, const nsCStringComparator&) const - source Parameters ns
ACString_internal& <anonymous> nsCStringComparator& <anonymous> PRBool Equals(const char*) const - source Parameters char* data PRBool Equals(const char*, const nsCStringComparator&) const - source Para...
...And 5 more matches
nsFixedCString
ring) @param storageSize the size of the fixed buffer @param length (optional) the length of the string already contained in the buffer Parameters char* data PRUint32 storageSize void nsFixedCString(char*, PRUint32, PRUint32) - source Parameters char* data PRUint32 storageSize PRUint32 length operator= nsCString& operator=(const nsCString&) - source Parameters nsCString& str ns
ACString_internal& operator=(char) - source Parameters char c ns
ACString_internal& operator=(const char*) - source Parameters char* data ns
ACString_internal& operator=(const ns
ACString_internal&) - source Parameters ns
ACString_internal& str ns
ACString_internal& operator=(const nsCSubstringTuple&) - source Parameters nsCSubstringTuple& tuple get char* get() const - source retu...
... aOffset tells us where in this string to start searching. Use -1 to search from the end of the string. @param aCount tells us how many iterations to make starting at the given offset. @return offset in string, or kNotFound Parameters nsCString& aString PRBool aIgnoreCase PRInt32 aOffset PRInt32 aCount PRInt32 RFind(const char*, PRBool, PRInt32, PRInt32) const - source Parameters char*
aCString PRBool aIgnoreCase PRInt32 aOffset PRInt32 aCount RFindChar PRInt32 RFindChar(PRUnichar, PRInt32, PRInt32) const - source Parameters PRUnichar aChar PRInt32 aOffset PRInt32 aCount FindCharInSet PRInt32 FindCharInSet(const char*, PRInt32) const - source This method searches this string for the first character found in the given string. @param aString contains set of chars to be...
... operator[] char operator[](PRUint32) const - source Parameters PRUint32 i First char First() const - source Last char Last() const - source CountChar PRUint32 CountChar(char) const - source Parameters char <anonymous> FindChar PRInt32 FindChar(char, PRUint32) const - source Parameters char <anonymous> PRUint32 offset Equals PRBool Equals(const ns
ACString_internal&) const - source equality Parameters ns
ACString_internal& <anonymous> PRBool Equals(const ns
ACString_internal&, const nsCStringComparator&) const - source Parameters ns
ACString_internal& <anonymous> nsCStringComparator& <anonymous> PRBool Equals(const char*) const - source Parameters char* data PRBool Equals(const char*, const nsCStringComparator&) const - source Para...
...And 5 more matches
nsXPIDLCString
st char* char* operator const char*() const - source operator[] char operator[](PRInt32) const - source Parameters PRInt32 i char operator[](PRUint32) const - source Parameters PRUint32 i operator= nsXPIDLCString& operator=(const nsXPIDLCString&) - source Parameters nsXPIDLCString& str nsCString& operator=(const nsCString&) - source Parameters nsCString& str ns
ACString_internal& operator=(char) - source Parameters char c ns
ACString_internal& operator=(const char*) - source Parameters char* data ns
ACString_internal& operator=(const ns
ACString_internal&) - source Parameters ns
ACString_internal& str ns
ACString_internal& operator=(const nsCSubstringTuple&) - source Parameters nsCSubstringTuple& tuple get char* get() const - source retu...
... aOffset tells us where in this string to start searching. Use -1 to search from the end of the string. @param aCount tells us how many iterations to make starting at the given offset. @return offset in string, or kNotFound Parameters nsCString& aString PRBool aIgnoreCase PRInt32 aOffset PRInt32 aCount PRInt32 RFind(const char*, PRBool, PRInt32, PRInt32) const - source Parameters char*
aCString PRBool aIgnoreCase PRInt32 aOffset PRInt32 aCount RFindChar PRInt32 RFindChar(PRUnichar, PRInt32, PRInt32) const - source Parameters PRUnichar aChar PRInt32 aOffset PRInt32 aCount FindCharInSet PRInt32 FindCharInSet(const char*, PRInt32) const - source This method searches this string for the first character found in the given string. @param aString contains set of chars to be...
...- source CharAt char CharAt(PRUint32) const - source Parameters PRUint32 i First char First() const - source Last char Last() const - source CountChar PRUint32 CountChar(char) const - source Parameters char <anonymous> FindChar PRInt32 FindChar(char, PRUint32) const - source Parameters char <anonymous> PRUint32 offset Equals PRBool Equals(const ns
ACString_internal&) const - source equality Parameters ns
ACString_internal& <anonymous> PRBool Equals(const ns
ACString_internal&, const nsCStringComparator&) const - source Parameters ns
ACString_internal& <anonymous> nsCStringComparator& <anonymous> PRBool Equals(const char*) const - source Parameters char* data PRBool Equals(const char*, const nsCStringComparator&) const - source Para...
...And 5 more matches
nsINavHistoryObserver
66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 21.0 (Firefox 21.0 / Thunderbird 21.0 / SeaMonkey 2.18) Warning: If you are in the middle of a batch transaction, there may be a database transaction active. You can still access the database in this situation but be careful (of what?). ...
...ng: If you are in the middle of a batch transaction, there may be a database transaction active. You can still access the database in this situation but be careful (of what?). ...
...n active. You can still access the database in this situation but be careful (of what?). ...
...And 5 more matches
nsIMsgCloudFileProvider
nsIMsgCloudFileProvider is the interface that must be implemented by new Filelink providers. ...
...ountKey); void uploadFile(in nsILocalFile aFile, in nsIRequestObserver aCallback);
ACString urlForFile(in nsILocalFile aFile); void cancelFileUpload(in nsILocalFile aFile); void refreshUserInfo(in boolean aWithUI, in nsIRequestObserver aCallback); void deleteFile(in nsILocalFile aFile, in nsIRequestObserver aCallback); void createNewAccount(in
ACString aEmailAddress, in
ACString aPassword, in
ACString aFirstName, in
ACString aLastName, in nsIRequestObserver aCallback); void createExistingAccount(in nsIRequestObserver aCallback);
ACString providerUrlForError(in unsigned long aError); Attributes Attribute Type Description type
ACString Read...
...eExistingAccount(in nsIRequestObserver aCallback);
ACString providerUrlForError(in unsigned long aError); Attributes Attribute Type Description type
ACString Readonly: The type is a unique string identifier which can be used by interface elements for styling. As such, the type should be an alphanumpheric string with no spaces. displayName
ACString Readonly: Used for displaying the service name in the user interface. serviceURL
ACString Readonly: A link to the homepage of the service, if applicable. iconClass
ACString Readonly: A chrome URL for an icon to be used for representing the service. ...
...And 5 more matches
nsIEffectiveTLDService
domain name? Depends who you ask - for some people it is, others not. Is "pretty.flowers" a domain name, according to getPublicSuffix()? Depends on the age of the copy of the PSL you are working with. The TLD space is currently expanding at a fairly great rate, and the copy of the PSL Firefox has may not be totally up to date (because it's not dynamically updated data). ...
...a domain name, according to getPublicSuffix()? Depends on the age of the copy of the PSL you are working with. The TLD space is currently expanding at a fairly great rate, and the copy of the PSL Firefox has may not be totally up to date (because it's not dynamically updated data). ...
... with. The TLD space is currently expanding at a fairly great rate, and the copy of the PSL Firefox has may not be totally up to date (because it's not dynamically updated data). Method overview
ACString getBaseDomain(in nsIURI aURI, [optional] in PRUint32 aAdditionalParts);
ACString getBaseDomainFromHost(in AUTF8String aHost, [optional] in PRUint32 aAdditionalParts);
ACString getPublicSuffix(in nsIURI aURI);
ACString getPublicSuffixFromHost(in AUTF8String aHost); Methods getBaseDomain() Returns the base domain of a URI; that is, the public suffix with a given number of additional domain name parts.
ACString getBaseDomain( in nsIURI aURI, [optional] in PRUint32 aAdditionalParts ); Parameters aURI The URI to be analyzed. aAdditionalParts T...
...And 4 more matches
XPCOM string functions
XPCOM provides these low-level string functions to let you work with strings; however, it's often better to use one of the string classes rather than directly using these functions. NS_CStringAppendDataThe NS_CStringAppendData function appends data to the existing value of a ns
ACString instance. ...
...This is a low-level API.NS_CStringCutDataThe NS_CStringCutData function removes a section of the string's internal buffer. This is a low-level API.NS_CStringGetDataThe NS_...
...he string's internal buffer.NS_CStringContainerFinishThe NS_CStringContainerFinish function releases any memory allocated by a nsCStringContainer instance.NS_CStringContainerInitThe NS_CStringContainerInit function initializes a nsCStringContainer instance for use as a ns
ACString.NS_CStringContainerInit2The NS_CStringContainerInit2 function initializes a nsCStringContainer instance for use as a ns
ACString.NS_CStringCopyThe NS_CStringCopy function copies the value from one ns
ACString instance to another. This is a low-level API.NS_CStringCutDataThe NS_CStringCutData function removes a section of the string's internal buffer. This is a low-level API.NS_CStringGetDataThe NS_CStringGetData function gives the caller read access to the string's internal buffer.NS_CStringGetMutableDataThe NS_CStringGetMu...
...And 4 more matches
XPIDL
number long int32_t int32_t* number long long int64_t int64_t* number octet uint8_t uint8_t* number short int16_t int16_t* number string const char* char** string Only chars in range \u0000-\u00ff permitted Most of the time you don't want to use this type but AUTF8String or
ACString unsigned long uint32_t uint32_t* number unsigned long long uint64_t uint64_t* number unsigned short uint16_t uint16_t* number wchar char16_t char16_t* string Full Unicode set permitted wstring const char16_t* char16_t** string Full Unicode set permitted Most of the time you do...
... nsIIDPtr const nsIID* nsIID** ? nsCIDPtr const nsCID* nsCID** ? nsIID const nsIID nsIID* ? nsID const nsID nsID* ? nsCID const nsCID nsCID* ? ...
...DPtr const nsIID* nsIID** ? nsCIDPtr const nsCID* nsCID** ? nsIID const nsIID nsIID* ? nsID const nsID nsID* ? nsCID const nsCID nsCID* ? ...
...And 4 more matches
nsIApplicationCacheService
se/public/nsIApplicationCacheService.idlScriptable This interface manages the set of application cache groups that manage offline resources for web applications. ...
...face manages the set of application cache groups that manage offline resources for web applications. ...
...fline resources for web applications. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) Method overview void cacheOpportunistically(in nsIApplicationCache cache, in
ACString key); nsIApplicationCache chooseApplicationCache(in
ACString key); nsIApplicationCache createApplicationCache(in
ACString group); void deactivateGroup(in
ACString group); nsIApplicationCache getActiveCache(in
ACString group); nsIApplicationCache getApplicationCache(in
ACString clientID); void getGroups([optional] out unsigned long count, [array, size_is(count), retval] out string groupIDs); Methods cacheOpportunistically() Flags the specified key as one that should be cached opportunistically. Note: This ...
...And 3 more matches
nsITelemetry
1.0 66 Introduced Gecko 6.0 Inherits from: nsISupports Last changed in Gecko 7.0 (Firefox 7.0 / Thunderbird 7.0 / SeaMonkey 2.4) Implemented by: @mozilla.org/base/telemetry;1 as a service: let telemetry = Components.classes["@mozilla.org/base/telemetry;1"] .getService(Components.interfaces.nsITelemetry); Method overview jsval getHistogramById(in
ACString id); jsval snapshotHistograms(in uint32_t aDataset, in boolean aSubsession, in boolean aClear); jsval getKeyedHistogramById(in
ACString id); void captureStack(in
ACString name); jsval snapshotCapturedStacks([optional] in boolean clear); nsISupports getLoadedModules(); jsval snapshotKeyedHistograms(in uint32_t aDataset, in boolean aSubsession...
...olean aSubsession, in boolean aClear); jsval getKeyedHistogramById(in
ACString id); void captureStack(in
ACString name); jsval snapshotCapturedStacks([optional] in boolean clear); nsISupports getLoadedModules(); jsval snapshotKeyedHistograms(in uint32_t aDataset, in boolean aSubsession, in boolean aClear); void setHistogramRecordingEnabled(in
ACString id, in boolean enabled); void asyncFetchTelemetryData(in nsIFetchTelemetryDataCallback aCallback); double msSinceProcessStart(); void scalarAdd(in
ACString aName, in jsval aValue); void scalarSet(in
ACString aName, in jsval aValue); void scalarSetMaximum(in
ACString aName, in jsval aValue); jsval snapshotScalars(in uint32_t aDataset, [option...
...metryData(in nsIFetchTelemetryDataCallback aCallback); double msSinceProcessStart(); void scalarAdd(in
ACString aName, in jsval aValue); void scalarSet(in
ACString aName, in jsval aValue); void scalarSetMaximum(in
ACString aName, in jsval aValue); jsval snapshotScalars(in uint32_t aDataset, [optional] in boolean aClear); void keyedScalarAdd(in
ACString aName, in AString aKey, in jsval aValue); void keyedScalarSet(in
ACString aName, in AString aKey, in jsval aValue); void keyedScalarSetMaximum(in
ACString aName, in AString aKey, in jsval aValue); jsval snapshotKeyedScalars(in uint32_t aDataset, [optional] in boolean aClear); void clearScalars(); test only void flushBatchedChildTelemetry(); vo...
...And 3 more matches
NS_CStringSetDataRange
aCutStart [in] The starting index of the section to replace, measured in storage units. ...
... aCutStart [in] The starting index of the section to replace, measured in storage units. ...
...ing. aDataLength [in] The length of aData, measured in storage units. If equal to PR_UINT32_MAX, then aData is assumed to be null-terminated. Otherwise, aData need not be null terminated. Return Values The NS_CStringSetDataRange function returns NS_OK if successful. Otherwise, it returns an error code. ...
...And 3 more matches
Using XPCOM Utilities to Make Things Easier
e they support the Gecko layout engine and other subsystems that manage large chunks of data. Additionally, in some versions of Mozilla the string classes support sequences of characters broken up into multiple fragments (fragments which may or may not be null terminated)[nulls-in-strings]. All string classes in XPCOM derive from one of two abstract classes[other-string-classes]: nsAString and ns
ACString. The former handles double byte characters, and the latter tends to be used in more general circumstances, but both of these classes define the functionality of a string. You can see these classes being passed as arguments in many of the XPCOM interfaces we'll look at in the following chapters. Using Strings Explaining how all the string classes work is outside the scope of this book, but we ca...
... guide). For WebLock, where the string classes need to be only wrappers around already existing string data, trading advanced functionality for a much smaller footprint is the right way to go. The WebLock string classes don't need to append, concatenate, search, or do any other real work on the string data; they just need to represent char* and other data and pass them to methods that expect an ns
ACString. ...
...the right way to go. The WebLock string classes don't need to append, concatenate, search, or do any other real work on the string data; they just need to represent char* and other data and pass them to methods that expect an ns
ACString. nsEmbedString and nsEmbedCString The strings used in this tutorial are nsEmbedString and nsEmbedCString, which implement the nsAString abstract class and the ns
ACString abstract classes, respectively. This first example shows an nsEmbedCString being used to pass an ns
ACString to a method that's not expected to modify the string. ...
...And 2 more matches
nsIApplicationCache
ach group has one "active" cache that will service future loads. Inactive caches are removed from the cache when no longer referenced. Method overview void activate(); void addNamespaces(in nsIArray namespaces); void discard(); void gatherEntries(in PRUint32 typeBits, out unsigned long count, [array, size_is(count)] out string keys); nsIApplicationCacheNamespace getMatchingNamespace(in
ACString key); unsigned long getTypes(in
ACString key); void initAsHandle(in
ACString groupId, in
ACString clientId); void markEntry(in
ACString key, in unsigned long typeBits); void unmarkEntry(in
ACString key, in unsigned long typeBits); Attributes Attribute Type Description active boolean true if the cache is the active cache for this group, otherwise false. Read only. clientID ACStr...
...This is the URI of the cache manifest file. Read only. usage unsigned long The disk usage of the application cache, in bytes. Read only. ...
... Parameters typeBits A bit field indicating the types against which to match. See Constants for a list of types. count On return, indicates how many matching entries were found. keys An array of the keys matching one or more of the types indicated by typeBits. getMatchingNamespace() Returns the most specific namespace matching a given key. nsIApplicationCacheNamespace getMatchingNamespace( in
ACString key ); Parameters key The key for the cache entry whose most specific namespace is to be returned. Return value An nsIApplicationCacheNamespace object describing the most specific namespace matching the given key. getTypes() Gets the types for a given entry in the cache. unsigned long getTypes( in
ACString key ); Parameters key The key for the cache entry whose types you wish to retrieve. ...
...And 2 more matches
nsICacheSession
netwerk/cache/public/nsICacheSession.idlScriptable Handles open synchronous and asynchronous cache entry operations along with evicting cache entries and checking for cache devices instantiation according to the session storage policies. ...
...cording to the session storage policies. Inherits from: nsISupports Last changed in Gecko 14 (Firefox 14 / Thunderbird 14 / SeaMonkey 2.11) Method overview void asyncOpenCacheEntry(in
ACString key, in nsCacheAccessMode accessRequested, in nsICacheListener listener, [optional] in boolean noWait); void evictEntries(); PRBool isStorageEnabled(); nsICacheEntryDescriptor openCacheEntry(in
ACString key, in nsCacheAccessMode accessRequested, in boolean blockingMode); void doomEntry(in
ACString key, in nsICacheListener listener); Attributes Attribute Type Description doomEntriesIfExpired PRBool Expired entries will be doomed or evicted if this attribute is set to true. If false, expired entries will be returned (useful for offline mode and clients, such as HTTP, that can update the...
...false, expired entries will be returned (useful for offline mode and clients, such as HTTP, that can update the valid lifetime of cached content). This attribute defaults to true. Methods asyncOpenCacheEntry() This method gives an asynchronous cache access. Does not block the calling thread. Instead, the listener will be notified when the descriptor is available. void asyncOpenCacheEntry( in
ACString key, in nsCacheAccessMode accessRequested, in nsICacheListener listener, [optional] in boolean noWait ); Parameters key The key for cache entry. accessRequested The requested access. listener The cache listener to be notified. noWait Do not wait for the cache entry when it is in use and waits for validation. doomEntry() Asynchronously dooms an entry specified by the key. void doomEntry( ...
...And 2 more matches
nsIWritablePropertyBag2
xpcom/ds/nsIWritablePropertyBag2.idlScriptable This interface extends nsIPropertyBag2 with methods for setting properties. ...
... xpcom/ds/nsIWritablePropertyBag2.idlScriptable This interface extends nsIPropertyBag2 with methods for setting properties. ...
... value Value to set the property to. setPropertyAsAString() void setPropertyAsAString( in AString prop, in AString value ); Parameters prop Property to set the value of. value Value to set the property to. setPropertyAsAUTF8String() void se...
...And 2 more matches
WebIDL bindings
<>& around the actual argument type. Here's a table, see the specific sections below for more details and explanations. ...
...e's a table, see the specific sections below for more details and explanations. ...
... boolean bool bool bool byte int8_t int8_t int8_t ByteString const ns
ACString& nsCString& (outparam) ns
ACString& (outparam) nsCString Date mozilla::dom::Date DOMString const nsAString& mozilla::dom::DOMString& (outparam) nsAString& (outparam) nsString& (outparam) nsString UTF8String const ns
ACString& ns
ACString& (outparam) nsCString double double double double float float float float interface: non-nullable Foo& already_addRefed<Foo> Foo* OwningNonNull<Foo> interface: nullable Foo* already_addRefed<Foo> Foo* RefPtr<Foo> long int32_t int32_t int32_t long long int64_t ...
...And 2 more matches
nsIContentPolicy - Archive of obsolete content
(for example, by launching a dialog to prompt the user for something).") Note: In reality, much of this interface is defined in the nsIContentPolicyBase interface, but for now is documented here until someone has time to split things up. ...
...plit things up. Method overview short shouldLoad(in unsigned long aContentType, in nsIURI aContentLocation, in nsIURI aRequestOrigin, in nsISupports aContext, in
ACString aMimeTypeGuess, in nsISupports aExtra, in nsIPrincipal aRequestPrincipal); short shouldProcess(in unsigned long aContentType, in nsIURI aContentLocation, in nsIURI aRequestOrigin, in nsISupports aContext, in
ACString aMimeType, in nsISupports aExtra, in nsIPrincipal aRequestPrincipal); Constants Content types Constant Value Description TYPE_OTHER 1 Indicates content whose type is unknown, or is not interesting outside a limited use case. In general, you should try not to use this type unless none of the others is a fit. TYPE_SCRIPT 2 Indicates an executabl...
...of them rejects a request, the rest of the policies are not called. Reference: //github.com/RealityRipple/UXP/blob/master/dom/base/nsContentPolicy.cpp#L129. Note: The order of content policies in the above case depends on the precedence of installation. short shouldLoad( in unsigned long aContentType, in nsIURI aContentLocation, in nsIURI aRequestOrigin, in nsISupports aContext, in
ACString aMimeTypeGuess, in nsISupports aExtra, in nsIPrincipal aRequestPrincipal ); Parameters aContentType The type of content being tested. This will be one one of the Content types listed above. aContentLocation The URI of the content being checked; must not be null. aRequestOrigin {optional_inline}} The location of the resource that initiated this load request; can be null if inapplicab...
...ignored depending on the MIME type of the response. Note: shouldProcess() can be called while the DOM and layout of the document involved is in an inconsistent state. See the note on shouldLoad() to see what this means for implementors of this method. short shouldProcess( in unsigned long aContentType, in nsIURI aContentLocation, in nsIURI aRequestOrigin, in nsISupports aContext, in
ACString aMimeType, in nsISupports aExtra, in nsIPrincipal aRequestPrincipal ); Parameters aContentType The type of content being tested. This will be one of the TYPE_* constants. aContentLocation OPTIONAL. The location of the resource being requested: MAY be, e.g., a post-redirection URI for the resource. aRequestOrigin OPTIONAL. The location of the resource that initiated this load request...
nsAdoptingString
aOffset tells us where in this string to start searching. Use -1 to search from the end of the string. @param aCount tells us how many iterations to make starting at the given offset. ...
...RBool, PRBool) - source This method strips whitespace from string. You can control whether whitespace is yanked from start and end of string as well. ...
...er whitespace is yanked from start and end of string as well. ...
...ters PRBool aEliminateLeading PRBool aEliminateTrailing AssignWithConversion void AssignWithConversion(const ns
ACString_internal&) - source assign/append/insert with _LOSSY_ conversion Parameters ns
ACString_internal& aString void AssignWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendWithConversion void AppendWithConversion(const ns
ACString_internal&) - source Parameters ns
ACString_internal& aString void AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this...
nsAutoString
aOffset tells us where in this string to start searching. Use -1 to search from the end of the string. @param aCount tells us how many iterations to make starting at the given offset. ...
...RBool, PRBool) - source This method strips whitespace from string. You can control whether whitespace is yanked from start and end of string as well. ...
...er whitespace is yanked from start and end of string as well. ...
...ters PRBool aEliminateLeading PRBool aEliminateTrailing AssignWithConversion void AssignWithConversion(const ns
ACString_internal&) - source assign/append/insert with _LOSSY_ conversion Parameters ns
ACString_internal& aString void AssignWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendWithConversion void AppendWithConversion(const ns
ACString_internal&) - source Parameters ns
ACString_internal& aString void AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this...
nsDependentString
aOffset tells us where in this string to start searching. Use -1 to search from the end of the string. @param aCount tells us how many iterations to make starting at the given offset. ...
...RBool, PRBool) - source This method strips whitespace from string. You can control whether whitespace is yanked from start and end of string as well. ...
...er whitespace is yanked from start and end of string as well. ...
...ters PRBool aEliminateLeading PRBool aEliminateTrailing AssignWithConversion void AssignWithConversion(const ns
ACString_internal&) - source assign/append/insert with _LOSSY_ conversion Parameters ns
ACString_internal& aString void AssignWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendWithConversion void AppendWithConversion(const ns
ACString_internal&) - source Parameters ns
ACString_internal& aString void AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this...
nsFixedString
aOffset tells us where in this string to start searching. Use -1 to search from the end of the string. @param aCount tells us how many iterations to make starting at the given offset. ...
...RBool, PRBool) - source This method strips whitespace from string. You can control whether whitespace is yanked from start and end of string as well. ...
...er whitespace is yanked from start and end of string as well. ...
...ters PRBool aEliminateLeading PRBool aEliminateTrailing AssignWithConversion void AssignWithConversion(const ns
ACString_internal&) - source assign/append/insert with _LOSSY_ conversion Parameters ns
ACString_internal& aString void AssignWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendWithConversion void AppendWithConversion(const ns
ACString_internal&) - source Parameters ns
ACString_internal& aString void AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this...
nsPromiseFlatString
aOffset tells us where in this string to start searching. Use -1 to search from the end of the string. @param aCount tells us how many iterations to make starting at the given offset. ...
...RBool, PRBool) - source This method strips whitespace from string. You can control whether whitespace is yanked from start and end of string as well. ...
...er whitespace is yanked from start and end of string as well. ...
...ters PRBool aEliminateLeading PRBool aEliminateTrailing AssignWithConversion void AssignWithConversion(const ns
ACString_internal&) - source assign/append/insert with _LOSSY_ conversion Parameters ns
ACString_internal& aString void AssignWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendWithConversion void AppendWithConversion(const ns
ACString_internal&) - source Parameters ns
ACString_internal& aString void AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this...
nsString
aOffset tells us where in this string to start searching. Use -1 to search from the end of the string. @param aCount tells us how many iterations to make starting at the given offset. ...
...RBool, PRBool) - source This method strips whitespace from string. You can control whether whitespace is yanked from start and end of string as well. ...
...er whitespace is yanked from start and end of string as well. ...
...ters PRBool aEliminateLeading PRBool aEliminateTrailing AssignWithConversion void AssignWithConversion(const ns
ACString_internal&) - source assign/append/insert with _LOSSY_ conversion Parameters ns
ACString_internal& aString void AssignWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendWithConversion void AppendWithConversion(const ns
ACString_internal&) - source Parameters ns
ACString_internal& aString void AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this...
nsXPIDLString
aOffset tells us where in this string to start searching. Use -1 to search from the end of the string. @param aCount tells us how many iterations to make starting at the given offset. ...
...RBool, PRBool) - source This method strips whitespace from string. You can control whether whitespace is yanked from start and end of string as well. ...
...er whitespace is yanked from start and end of string as well. ...
...ters PRBool aEliminateLeading PRBool aEliminateTrailing AssignWithConversion void AssignWithConversion(const ns
ACString_internal&) - source assign/append/insert with _LOSSY_ conversion Parameters ns
ACString_internal& aString void AssignWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendWithConversion void AppendWithConversion(const ns
ACString_internal&) - source Parameters ns
ACString_internal& aString void AppendWithConversion(const char*, PRInt32) - source Parameters char* aData PRInt32 aLength AppendInt void AppendInt(PRInt32, PRInt32) - source Append the given integer to this string Parameters PRInt32 aInteger PRInt32 aRadix void AppendInt(PRUint32, PRInt32) - source Append the given unsigned integer to this...
XPCOM glue classes
F8Class DeclarationNS_ConvertUTF8toUTF16Class DeclarationNS_LossyConvertUTF16toASCIIClass DeclarationNS_OVERRIDENS_OVERRIDE is a macro which allows C++ code in Mozilla to specify that a method is intended to override a base class method. ...
...ationNS_ConvertUTF8toUTF16Class DeclarationNS_LossyConvertUTF16toASCIIClass DeclarationNS_OVERRIDENS_OVERRIDE is a macro which allows C++ code in Mozilla to specify that a method is intended to override a base class method. ...
... a method is intended to override a base class method. If there is no base class method with the same signature, a compiler with static-checking enabled will fail to compile.NS_POSTCONDITIONMacroNS_PRECONDITIONMacrons
ACStringThe ns
ACString abstract class represents a character string composed of single-byte storage units. This class is typically used to represent ASCII or UTF-8 character arrays.ns
ACString (External)Class Declarationns
ACString_internalClass DeclarationnsAdoptingCStringClass DeclarationnsAdoptingStringClass DeclarationnsAStringThe nsAString abstract class represents a character string composed of double-byte storage units. This class is typically used to represent Unicode character arrays.nsAString (External)Class DeclarationnsAString_internalClass DeclarationnsAutoRefnsAutoRef<t> i...
...pendentCStringClass DeclarationnsDependentCString externalClass DeclarationnsDependentCSubstringClass DeclarationnsDependentCSubstring externalClass DeclarationnsDependentStringClass DeclarationnsDependentString externalClass DeclarationnsDependentSubstringClass DeclarationnsDependentSubstring externalClass DeclarationnsEmbedCStringThe nsEmbedCString concrete class provides a way to construct a ns
ACString object that allocates null-terminated storage.nsEmbedStringThe nsEmbedString concrete class provides a way to construct a nsAString object that allocates null-terminated storage.nsFixedCStringClass DeclarationnsFixedStringClass DeclarationnsLiteralCString (External)Class DeclarationnsLiteralString (External)Class DeclarationnsMemoryThe nsMemory class provides static helper routines to manage memo...
nsIContentSecurityPolicy
Calls to this may...
...Calls to this may trigger violation reports when queried, so this value should not be cached. Read only. allowsInlineScript boolean Whether this policy allows in-page script. Calls to this may trigg...
... service when sub-elements of the protected document are being loaded. Given a bit of information about the request, decides whether or not the policy is satisfied. Calls to this may trigger violation reports when queried, so this value should not be cached. short shouldLoad( in unsigned long aContentType, in nsIURI aContentLocation, in nsIURI aRequestOrigin, in nsISupports aContext, in
ACString aMimeTypeGuess, in nsISupports aExtra ); Parameters aContentType aContentLocation aRequestOrigin aContext aMimeTypeGuess aExtra Return value shouldProcess() Delegate method called by the service when sub-elements of the protected document are being processed. Given a bit of information about the request, decides whether or not the policy is satisfied. short shouldProcess( in unsigne...
...xt aMimeTypeGuess aExtra Return value shouldProcess() Delegate method called by the service when sub-elements of the protected document are being processed. ...
nsICryptoHash
h function of some data. You can, for example, calculate the SHA256 hash of a file to determine if it contains the data you think it does. The hash algorithms supported are MD2, MD5, SHA-1, SHA-256, SHA-384, and SHA-512. ...
...ata you think it does. The hash algorithms supported are MD2, MD5, SHA-1, SHA-256, SHA-384, and SHA-512. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Method overview
ACString finish(in PRBool aASCII); void init(in unsigned long aAlgorithm); void initWithString(in
ACString aAlgorithm); void update([const, array, size_is(aLen)] in octet aData, in unsigned long aLen); void updateFromStream(in nsIInputStream aStream, in unsigned long aLen); Constants Hash algorithms These constants are used by the init() method to indicate which hashing function to use. The values map directly onto the values defined in mozilla/security/nss/lib/cryptohi/hash...
...m 5 SHA1 3 Secure Hash Algorithm 1 SHA256 4 Secure Hash Algorithm 256 SHA384 5 Secure Hash Algorithm 384 SHA512 6 Secure Hash Algorithm 512 Methods finish() Completes the hash object and produces the actual hash data. Note: This method may be called any time after " .. manch("init") .. " is called. This call resets the object.
ACString finish( in PRBool aASCII ); Parameters aASCII If true then the returned value is a base-64 encoded string. If false, then the returned value is binary data. Return value This method returns a hash of the data that was read by this object. This can be either binary data or a base-64 encoded string. Exceptions thrown NS_ERROR_NOT_INITIALIZED Indicates that init() or initWithString()...
...st be one of the Hash Algorithms. Exceptions thrown NS_ERROR_INVALID_ARG Indicates that an unsupported algorithm type was passed initWithString() Initialize the hashing object. This method may be called multiple times with different algorithm types. Note: This method or " .. manch("init") .. " must be called before any other method on this interface is called. void initWithString( in
ACString aAlgorithm ); Parameters aAlgorithm The hash algorithm type to be used as a string, such as "SHA256". Exceptions thrown NS_ERROR_INVALID_ARG Indicates that an unsupported algorithm type was passed update() Adds an array of data to be hashed to the object. See Computing the Hash of a String for an example of using this method. void update( [const, array, size_is(aLen)] in octet a...
nsIExternalProtocolService
upports Last changed in Gecko 1.9 (Firefox 3) You can ask the external protocol service if it has an external handler for a given protocol scheme. And you can ask it to load the url using the default handler. ...
...col service if it has an external handler for a given protocol scheme. And you can ask it to load the url using the default handler. ...
...handler for the given protocol. If neither the application nor the OS knows about a handler for the protocol, the object this method returns will represent a default handler for unknown content. Note: AProtocolScheme should not include a trailing colon, which is part of the URI syntax, not part of the scheme itself (That is pass "mailto" not "mailto:"). ...
...aFound Was an OS default handler for this scheme found? Return value An nsIHanderInfo for the protocol. isExposedProtocol() Check whether a handler for a specific protocol is "exposed" as a visible feature of the current application. ...
nsIScriptableUnicodeConverter
ipts. Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Implemented by: @mozilla.org/intl/scriptableunicodeconverter. ...
...ko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Implemented by: @mozilla.org/intl/scriptableunicodeconverter. ...
... Implemented by: @mozilla.org/intl/scriptableunicodeconverter. ...
...g); Attributes Attribute Type Description charset string Current character set. Throws NS_ERROR_UCONV_NOCONV if the requested charset is not supported. Methods ConvertFromUnicode() Converts the data from Unicode to one Charset. Returns the converted string. After converting, Finish should be called and its return value appended to this return value.
ACString ConvertFromUnicode( in AString aSrc ); Finish() Returns the terminator string. Should be called after ConvertFromUnicode() and appended to that function's return value.
ACString Finish(); ConvertToUnicode() Converts the data from one Charset to Unicode. AString ConvertToUnicode( in
ACString aSrc ); convertFromByteArray() Converts an array of bytes to a unicode string. AString conv...
nsIURI
The h...
...The host portion follows the IDNA draft spec. Other parts are URL-escaped per the rules of RFC3986. The result is strictly ASCII. Read only. hasRef boolean Returns if there is a reference portion (the part after the "#") of the URI. ...
... Note: Characters are not escaped. IPv6 addresses are not enclosed in square brackets. hostPort AUTF8String The "host:port" part of the URI (or simply the host, if port is -1). Exceptions thrown NS_ERROR_FAILURE If hostPort is not applicable to the URI scheme (e.g. about:blank) Note: Characters are not escaped. originCharset
ACString The charset of the document from which this URI originated. An empty value implies UTF-8. If this value is something other than UTF-8 then the URI components (for example spec, prePath, username, and so on) are all fully URL-escaped. Otherwise, the URI components may contain unescaped multibyte UTF-8 characters. Read only. password AUTF8String The optional password...
...ons, or for checking the origin of an URI to prevent cross-site scripting attacks while using methods such as window.postMessage(). Note: Some characters may be escaped. Read only. ref AUTF8String Returns the reference portion (the part after the "#") of the URI. If there is not one, an empty string is returned. Note: Some characters may be escaped. scheme
ACString (US-ASCII) The scheme is the protocol to which this URI refers. The scheme is restricted to the US-ASCII charset per RFC3986. Warning: Setting this is highly discouraged outside of a protocol handler implementation, since doing so will generally lead to unpredictable results. spec AUTF8String Returns a string representation of the URI. Setting the spec causes ...
nsIWebSocketChannel
nsISupports Last changed in Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5) Implemented by: ?????????????????????????????????????. To create an instance, use: var webSocketChannel = Components.classes["@mozilla.org/????????????????????????????"] .createInstance(Components.interfaces.nsIWebSocketChannel); Method overview void asyncOpen(in nsIURI aURI, in
ACString aOrigin, in nsIWebSocketListener aListener, in nsISupports aContext); void close(in unsigned short aCode, in AUTF8String aReason); void sendBinaryMsg(in
ACString aMsg); void sendMsg(in AUTF8String aMsg); Attributes Attribute Type Description extensions
ACString Sec-Websocket-Extensions response header value. Read only. loadGr...
...terfaceRequestor The notification callbacks for authorization and so forth. originalURI nsIURI The original URI used to construct the protocol connection. This is used in the case of a redirect or URI "resolution" (for example resolving a resource: URI to a file: URI) so that the original pre-redirect URI can still be obtained. This is never null. Read only. protocol
ACString Sec-Websocket-Protocol value. securityInfo nsISupports Transport-level security information (if any). Read only. URI nsIURI The URI corresponding to the protocol connection after any redirections are completed. Read only. Status codes The following values are permitted status codes. Status code Name Description 0-999 Reserved ...
...ve. The socket listener's methods are called on the thread that calls asyncOpen() and are not called until after asyncOpen() returns. If asyncOpen() returns successfully, the protocol implementation promises to call at least onStart and onStop of the listener. Note: Implementations should throw NS_ERROR_ALREADY_OPENED if the WebSocket connection is reopened. void asyncOpen( in nsIURI aURI, in
ACString aOrigin, in nsIWebSocketListener aListener, in nsISupports aContext ); Parameters aURI The uri of the websocket protocol; this may be redirected. aOrigin The URI of the originating resource. aListener The nsIWebSocketListener implementation. aContext An opaque parameter forwarded to aListener's methods. close() void close( in unsigned short aCode, in AUT...
...parameter forwarded to aListener's methods. close() void close( in unsigned short aCode, in AUTF8String aReason ); Parameters aCode The status of the connection when closed; see Status codes for possible values. aReason A human-readable string describing the reason the connection closed. sendBinaryMsg() Sends a binary message to the WebSocket peer. void sendBinaryMsg( in
ACString aMsg ); Parameters aMsg The data to send. sendMsg() Sends a text message to the WebSocket peer. void sendMsg( in AUTF8String aMsg ); Parameters aMsg The UTF-8 string to send. See also WebSockets WebSocket ...
nsIWindowsRegKey
gned long index); unsigned long getValueType(in AString name); boolean hasChanged(); boolean hasChild(in AString name); boolean hasValue(in AString name); boolean isWatching(); void open(in unsigned long rootKey, in AString relPath, in unsigned long mode); nsIWindowsRegKey openChild(in AString relPath, in unsigned long mode);
ACString readBinaryValue(in AString name); unsigned long long readInt64Value(in AString name); unsigned long readIntValue(in AString name); AString readStringValue(in AString name); void removeChild(in AString relPath); void removeValue(in AString name); void startWatching(in boolean recurse); void stopWatching(); void writeBinaryValu...
...Read only. key HKEY ...
...rameters relPath mode Return value nsIWindowsRegKey for the newly opened subkey. readBinaryValue() This method reads the binary contents of the named value under this key. JavaScript callers should take care with the result of this method since it will be byte-expanded to form a JS string. (The binary data will be treated as an ISO-Latin-1 character string, which it is not).
ACString readBinaryValue( in AString name ); Parameters name The name of the value to query. Return value The binary contents of the named value under this key. readInt64Value() This method reads the 64-bit integer contents of the named value. unsigned long long readInt64Value( in AString name ); Parameters name The name of the value to query. Return value The 64-bit integer cont...
...Script callers should take care with the value passed to this method since it will be truncated from a JS string (unicode) to a ISO-Latin-1 string. (The binary data will be treated as an ISO-Latin-1 character string, which it is not). So, JavaScript callers should only pass character values in the range \u0000 to \u00FF, or else data loss will occur. void writeBinaryValue( in AString name, in
ACString data ); Parameters name The name of the value to modify. data The data for the value to modify. writeInt64Value() This method writes the 64-bit integer contents of the named value. The value will be created if it does not already exist. void writeInt64Value( in AString name, in unsigned long long data ); Parameters name The name of the value to modify. data ...
nsIXULAppInfo
emented by: @mozilla.org/xre/app-info;1. To create an instance, use: var xulAppInfo = Components.classes["@mozilla.org/xre/app-info;1"] .getService(Components.interfaces.nsIXULAppInfo); The nsIXULRuntime interface is also implemented by "xre/app-info". It contains advanced information on the xul runtime. Attributes Attribute Type Description appBuildID
ACString The application's build ID/date, for example "2004051604". For XULRunner applications, this will be different than the build ID of the platform. Be careful about which one you want. Read only. ID
ACString The XUL application's UUID. Can be an empty string, if id is not set. Has to be defined for advanced application features such as the extension manager and update service.
... empty string, if id is not set. Has to be defined for advanced application features such as the extension manager and update service. This has traditionally been in the form "{AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE}" but for new applications a more readable form is encouraged: "appname@vendor.tld". Only the following characters are allowed: a-z A-Z 0-9 - . @ _ { } * Read only. ...
..." but for new applications a more readable form is encouraged: "appname@vendor.tld". Only the following characters are allowed: a-z A-Z 0-9 - . @ _ { } * Read only. name
ACString The name of the application. This must be ASCII, and is normally mixed-case, for example "Firefox", "Thunderbird" or "SeaMonkey". Must not be null or an empty string. Read only. platformBuildID
ACString The build ID/date of Gecko and the XULRunner platform. Read only. platformVersion
ACString The version of Gecko or XULRunner platform, for example "1.8.1.19" or "1.9.3pre". In "Firefox 3.7 alpha 1" the application version is "3.7a1pre" while the platform version is "1.9.3pre" Read only. vendor
ACString The name of the application vendor. This must be ASCII, and is...
...It is different than the version of Gecko or the XULRunner platform. ...
NS_CStringSetData
aData [in] A raw character array to copy into this string. aDataLength [in] The length of aData, measured in storage units. If equal to PR_UINT32_MAX, then aData is assumed to be null-terminated. Otherwise, aData need not be null-terminated. ...
... aData [in] A raw character array to copy into this string. aDataLength [in] The length of aData, measured in storage units. If equal to PR_UINT32_MAX, then aData is assumed to be null-terminated. Otherwise, aData need not be null-terminated. ...
...erminated. Otherwise, aData need not be null-terminated. Return Values The NS_CStringSetData function returns NS_OK if successful. Otherwise, it returns an error code. ...
...n error code. ...
operator=
Return Values This operator returns a reference back to the object being modified to allow operator chaining. ...
... Return Values This operator returns a reference back to the object being modified to allow operator chaining. self_type& operator=( const char_type* aData ); Parameters aData [in] A raw character array to append to this string. ...
...ta [in] A raw character array to append to this string. Return Values This operator returns a reference back to the object being modified to allow operator chaining. self_type& operator=( char_type aChar ); Parameters aChar [in] A character to append to this string. Return Values This operator returns a reference back to the object being modified to allow operator chaining. See Also ns
ACString::Assign ...
nsIApplicationCacheNamespace
Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) Application caches can store a set of namespace entries that affect loads from the application cache. If a load from the cache fails to match on an exact cache entry, the namespace entries are searched for a substring match. Method overview void init(in unsigned long itemType, in
ACString namespaceSpec, in
ACString data); Attributes Attribute Type Description data
ACString Data associated with the namespace, such as a fallback. How this attribute is used varies depending on the namespace type. If the data is a URI, this attribute should be the URI's asciiSpec. Read only. itemType unsigned long A bit field indicating one or more ...
... associated with the namespace, such as a fallback. How this attribute is used varies depending on the namespace type. If the data is a URI, this attribute should be the URI's asciiSpec. Read only. itemType unsigned long A bit field indicating one or more namespace types. Must be one or more of the constants defined under Constants on this page. Read only. namespaceSpec
ACString The prefix of this namespace. This should be the asciiSpec of the URI prefix. Read only. Constants Constant Value Description NAMESPACE_BYPASS 1 Items matching this namespace can be fetched from the network when loading from this cache. The data attribute is not used. NAMESPACE_FALLBACK 2 Items matching this namespace can be fetched from the...
... NAMESPACE_OPPORTUNISTIC 4 Items matching this namespace should be cached opportunistically. Successful top-level loads of resources in this namespace should be placed into the application cache. This can be combined with NAMESPACE_FALLBACK to provide a fallback entry in the data attribute. Methods init() Initializes the namespace. void init( in unsigned long itemType, in
ACString namespaceSpec, in
ACString data ); Parameters itemType The namespace type. namespaceSpec The namespace's prefix. data The data to associate with the namespace. See also Offline resources in Firefox nsIApplicationCache nsIApplicationCacheContainer nsIApplicationCacheChannel nsIApplicationCacheService nsIDOMOfflineResourceList ...
nsICookieManager2
ecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0) Inherits from: nsICookieManager This interface is included in The Services.jsm JavaScript code module. ...
... 3.6 / Thunderbird 3.1 / Fennec 1.0) Inherits from: nsICookieManager This interface is included in The Services.jsm JavaScript code module. ...
...(in nsICookie2 aCookie, out unsigned long aCountFromHost); Obsolete since Gecko 1.9 nsISimpleEnumerator getCookiesFromHost(in AUTF8String aHost); void importCookies(in nsIFile aCookieFile); Methods add() Adds a cookie. nsICookieService is the normal way to do this. This method is something of a back door. void add( in AUTF8String aHost, in AUTF8String aPath, in
ACString aName, in
ACString aValue, in boolean aIsSecure, in boolean aIsHttpOnly, in boolean aIsSession, in PRInt64 aExpiry ); Parameters aHost The host or domain for which the cookie is set. presence of a leading dot indicates a domain cookie; otherwise, the cookie is treated as a non-domain cookie. See RFC2109 for details. The host string will be normalized to ASCII or ACE; any trailing ...
nsICrashReporter
xpcom/system/nsICrashReporter.idlScriptable Provides access to crash reporting functionality. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Method overview void annotateCrashReport(in
ACString key, in
ACString data); void appendAppNotesToCrashReport(in
ACString data); void appendObjCExceptionInfoToAppNotes(in voidPtr aException); Native code only! void writeMinidumpForException(in voidPtr aExceptionInfo); Native code only! Attributes Attribute Type Description enabled boolean Enable or disable the crashreporter at runtime. minidumpPath nsILocalFile Get or set the path on the local system to which minidumps will be written when a crash happens. Exceptions t...
...orking libraries. Exceptions thrown NS_ERROR_FAILURE On get if no URL is set. NS_ERROR_INVALID_ARG On set if a non-http(s) URL is assigned. NS_ERROR_NOT_INITIALIZED If crash reporting is not initialized. submitReports boolean User preference for submitting crash reports. Methods annotateCrashReport() Add some extra data to be submitted with a crash report. void annotateCrashReport( in
ACString key, in
ACString data ); Parameters key Name of the data to be added. data Data to be added. Exceptions thrown NS_ERROR_INVALID_ARG If key or data contain invalid characters. Invalid characters for key are '=' and '\n'. Invalid character for data is '\0'. NS_ERROR_NOT_INITIALIZED If crash reporting not initialized. appendAppNotesToCrashReport() Append some data to the "Notes" field, to be ...
...key or data contain invalid characters. Invalid characters for key are '=' and '\n'. Invalid character for data is '\0'. NS_ERROR_NOT_INITIALIZED If crash reporting not initialized. appendAppNotesToCrashReport() Append some data to the "Notes" field, to be submitted with a crash report. Unlike annotateCrashReport(), this method will append to existing data. void appendAppNotesToCrashReport( in
ACString data ); Parameters data Data to be added. Exceptions thrown NS_ERROR_INVALID_ARG If data contains invalid characters. The only invalid character is '\0'. NS_ERROR_NOT_INITIALIZED If crash reporting not initialized. Native code only!appendObjCExceptionInfoToAppNotes Append note containing an Obj-C exception's info. void appendObjCExceptionInfoToAppNotes( in voidPtr aException ); Parameter...
nsIDialogCreator
embedding/base/nsIDialogCreator.idlScriptable Please add a summary to this article. ...
... embedding/base/nsIDialogCreator.idlScriptable Please add a summary to this article. ...
...efox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Method overview void openDialog(in unsigned long aType, in
ACString aName, in
ACString aFeatures, in nsIDialogParamBlock aArguments, [optional] in nsIDOMElement aFrameElement); Constants Constant Value Description UNKNOWN_DIALOG 0 GENERIC_DIALOG 1 SELECT_DIALOG 2 Methods openDialog() void openDialog( in unsigned long aType, in
ACString aName, in
ACString aFeatures, in nsIDialogParamBlock aArguments, in nsIDOMElement aFrameElement Optional ); Parameters aType aName aFeatures aArguments aFrameElement Optional ...
nsIExternalHelperAppService
cko 1.7 Implemented by: @mozilla.org/uriloader/external-helper-app-service;1. To access this service, use: var externalHelperAppService = Components.classes["@mozilla.org/uriloader/external-helper-app-service;1"] .getService(Components.interfaces.nsIExternalHelperAppService); Method overview boolean applyDecodingForExtension(in AUTF8String aExtension, in
ACString aEncodingType); nsIStreamListener doContent(in
ACString aMimeContentType, in nsIRequest aRequest, in nsIInterfaceRequestor aWindowContext, in boolean aForceSave); Methods applyDecodingForExtension() Determines whether or not data whose filename has the specified extension should be decoded from the specified encoding type before being saved or delivered to helper applications. bool...
... aMimeContentType, in nsIRequest aRequest, in nsIInterfaceRequestor aWindowContext, in boolean aForceSave); Methods applyDecodingForExtension() Determines whether or not data whose filename has the specified extension should be decoded from the specified encoding type before being saved or delivered to helper applications. boolean applyDecodingForExtension( in AUTF8String aExtension, in
ACString aEncodingType ); Parameters aExtension The filename extension to check. aEncodingType The encoding type to check. Return value true if data from URLs with the specified extension and encoding should be decoded prior to saving the file or delivering it to a helper application; otherwise false. doContent() Binds an external helper application to a stream listener. The caller shou...
...sion and encoding should be decoded prior to saving the file or delivering it to a helper application; otherwise false. doContent() Binds an external helper application to a stream listener. The caller should pump data into the returned stream listener. When the OnStopRequest is issued, the stream listener implementation will launch the helper app with this data. nsIStreamListener doContent( in
ACString aMimeContentType, in nsIRequest aRequest, in nsIInterfaceRequestor aWindowContext, in boolean aForceSave ); Parameters aMimeContentType The content type of the incoming data. aRequest The request corresponding to the incoming data. aWindowContext Use nsIServiceManager.getInterface() to retrieve properties like the DOM window or parent window; the service might need...
nsIIDNService
methods for manipulating IDN hostnames according to IETF specification. Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) Implemented by: @mozilla.org/network/idn-service;1 as a service: var idnService = Components.classes["@mozilla.org/network/idn-service;1"] .getService(Components.interfaces.nsIIDNService); Method overview AUTF8String convertACEtoUTF8(in
ACString input); AUTF8String convertToDisplayIDN(in AUTF8String input, out boolean isASCII);
ACString convertUTF8toACE(in AUTF8String input); boolean isACE(in
ACString input); AUTF8String normalize(in AUTF8String input); Methods convertACEtoUTF8() Converts an ACE (ASCII Compatible Encoding) hostname into Unicode format, returning a UTF-8 format string. This combines two operations: running the...
... Return value The UTF-8 encoded equivalent of the hostname. convertToDisplayIDN() Normalizes a hostname into UTF-8 format if the hostname is in the IDN whitelist. If the hostname isn't in the whitelist, it's converted into ACE format. ...
...UTF8String convertToDisplayIDN( in AUTF8String input, out boolean isASCII ); Parameters input The string to convert to display format. isASCII On return, this is set to true if the result is ASCII or ACE encoded; otherwise it's false. Return value The display formatted hostname. convertUTF8toACE() Converts the specified hostname from UTF-8 to ACE format, using the IDNA "ToASCII" algorithm.
ACString convertUTF8toACE( in AUTF8String input ); Parameters input The hostname to convert to ACE format. Return value The ACE encoded version of the hostname. isACE() Determines whether or not the specified hostname is ACE encoded. boolean isACE( in
ACString input ); Parameters input The string to check. Return value Returns true if the specified string is ACE encoded; otherwise, returns false...
nsIInputStream
eam using readSegments(). static NS_METHOD AppendSegment(nsIInputStream* aStream, void* aClosure, const char* aFromSegment, uint32_t aToOffset, uint32_t aCount, uint32_t* aWriteCount) { // aFromSegment now contains aCount bytes of data. ...
...ts(). static NS_METHOD AppendSegment(nsIInputStream* aStream, void* aClosure, const char* aFromSegment, uint32_t aToOffset, uint32_t aCount, uint32_t* aWriteCount) { // aFromSegment now contains aCount bytes of data. ...
...See bug 124465 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsIMsgDBView
n nsMsgNavigationTypeValue motion, out nsMsgKey resultId, out nsMsgViewIndex resultIndex, out nsMsgViewIndex threadIndex, in boolean wrap); boolean navigateStatus(in nsMsgNavigationTypeValue motion); nsMsgKey getKeyAt(in nsMsgViewIndex index); nsIMsgDBHdr getMsgHdrAt(in nsMsgViewIndex index); nsIMsgFolder getFolderForViewIndex(in nsMsgViewIndex index);
ACString getURIForViewIndex(in nsMsgViewIndex index); nsIMsgDBView cloneDBView(in nsIMessenger aMessengerInstance, in nsIMsgWindow aMsgWindow, in nsIMsgDBViewCommandUpdater aCommandUpdater); void getURIsForSelection([array, size_is(count)] out string uris, out unsigned long count); void getIndicesForSelection([array, size_is(count)] out nsMsgViewIndex indices, out unsigned long ...
...selection. nsMsgKey is defined as an unsigned long in MailNewsTypes2.idl. viewIndexForFirstSelectedMsg nsMsgViewIndex Readonly: The index of the first selected message. nsMsgViewIndex is defined as a unsigned long in MailNewsTypes2.idl. msgFolder nsIMsgFolder Readonly: The current folder. viewFolder nsIMsgFolder URIForFirstSelectedMessage
ACString Readonly: URL of the first selected message. hdrForFirstSelectedMessage nsIMsgDBHdr Readonly: Header of the first selected message. numSelected long Readonly: The number of messages currently selected. msgToSelectAfterDelete nsMsgViewIndex Readonly: The index of the message to select after the current one is deleted. nsMsgViewIndex is defined as a u...
...ViewIndex() Mainly for search. Gets the folder of the message at a particular index. nsIMsgFolder getFolderForViewIndex(in nsMsgViewIndex index); Parameters index The index of the message. nsMsgViewIndex is defined as a unsigned long in MailNewsTypes2.idl. Return value The nsIMsgFolder containing the message. getURIForViewIndex() Gets the URL for the message at the given index.
ACString getURIForViewIndex(in nsMsgViewIndex index); Parameters index The index to get the URL for>. nsMsgViewIndex is defined as a unsigned long in MailNewsTypes2.idl. Return value A string containing the messages URL. cloneDBView() Clones this nsIMsgDBView. nsIMsgDBView cloneDBView(in nsIMessenger aMessengerInstance, in nsIMsgWindow aMsgWindow, ...
nsIMsgFilter
Defined in comm-central/ mailnews/ base/ search/ public/ nsIMsgFilter.idl Attributes type attribute nsMsgRuleActionType type; priority // target priority.. throws an exception if the action is not priority attribute nsMsgPriorityValue priority; targetFolderUri // target folder.. throws an exception if the action is not move to folder attribute
ACString targetFolderUri; label // target label. ...
...sMsgPriorityValue priority; targetFolderUri // target folder.. throws an exception if the action is not move to folder attribute
ACString targetFolderUri; label // target label. ...
...customId; customAction // custom action associated with customId // (which must be set prior to reading this attribute) readonly attribute nsIMsgFilterCustomAction customAction; Methods AddTerm() void nsIMsgFilter::AddTerm ( in nsMsgSearchAttribValue attrib, in nsMsgSearchOpValue op, in nsIMsgSearchValue value, in boolean BooleanAND, in
ACString arbitraryHeader ) GetTerm() void nsIMsgFilter::GetTerm ( in long termIndex, in nsMsgSearchAttribValue attrib, in nsMsgSearchOpValue op, in nsIMsgSearchValue value, out boolean BooleanAND, out
ACString arbitraryHeader ) appendTerm() void nsIMsgFilter::appendTerm (in nsIMsgSearchTerm t...
nsIMsgIdentity
iven person. Each identity is identified by a key, which is the id string in the identity preferences, such as in mail.identity.<id>.replyTo. ...
...ferences, such as in mail.identity.<id>.replyTo. ...
...or Unicode attributes. Note: These attributes persist across sessions. AString getUnicharAttribute(in string name); Parameters name setUnicharAttribute() Setter for Unicode attributes. void setUnicharAttribute(in string name, in AString value); Parameters name Name of the attribute to set. value Value to set the attribute to. getCharAttribute() Getter for char attributes.
ACString getCharAttribute(in string name); Parameters name Name of the attribute to get. setCharAttribute() Setter for char attributes. void setCharAttribute(in string name, in
ACString value); Parameters name Name of the attribute to set. value Value to set the attribute to. getBoolAttribute() Getter for boolean attributes. boolean getBoolAttribute(in string name); Parameters ...
nsIMsgSearchTerm
Defined in mozilla/ mailnews/ base/ search/ public/ nsIMsgSearchTerm.idl Attributes attrib attribute nsMsgSearchAttribValue attrib; op attribute nsMsgSearchOpValue op; value attribute nsIMsgSearchValue value; booleanAnd attribute boolean booleanAnd; arbitraryHeader attribute
ACString arbitraryHeader; hdrProperty /** * Not to be confused with arbitraryHeader, which is a header in the * rfc822 message. ...
...; booleanAnd attribute boolean booleanAnd; arbitraryHeader attribute
ACString arbitraryHeader; hdrProperty /** * Not to be confused with arbitraryHeader, which is a header in the * rfc822 message. This is a property of the nsIMsgDBHdr, and may have * nothing to do the message headers, e.g., gloda-id. * value.str will be compared with nsIMsgHdr::GetProperty(hdrProperty). */ attribute
ACString hdrProperty; customId /// identifier for a custom id used for this term, if any. ...
... hdrProperty /** * Not to be confused with arbitraryHeader, which is a header in the * rfc822 message. This is a property of the nsIMsgDBHdr, and may have * nothing to do the message headers, e.g., gloda-id. * value.str will be compared with nsIMsgHdr::GetProperty(hdrProperty). */ attribute
ACString hdrProperty; customId /// identifier for a custom id used for this term, if any. ...
nsIOutputStream
Copy data from a string to a stream static NS_METHOD CopySegment(nsIInputStream* aStream, void* aClosure, char* aToSegment, PRUint32 aFromOffset, PRUint32 aCount, PRUint32* aReadCount) { // aFromSegment now contains aCount bytes of data. ...
...ing to a stream static NS_METHOD CopySegment(nsIInputStream* aStream, void* aClosure, char* aToSegment, PRUint32 aFromOffset, PRUint32 aCount, PRUint32* aReadCount) { // aFromSegment now contains aCount bytes of data. ...
...2 len = NS_CStringGetData(&data); data += aFromOffset; len -= aFromOffset; if (len > aCount) len = aCount; memcpy(aToSegment, data, len); // Indicate that we have copied len bytes to the segment *aReadCount = len; return NS_OK; } // Write the contents of aSource into aStream, using WriteSegments // to avoid intermediate buffer copies. nsresult WriteStream(const ns
ACString& aSource, nsIInputStream* aStream) { PRUint32 num; return aStream->WriteSegments(CopySegment, (void*) &aSource, aSource.Length(), &num); } Remarks This interface was frozen for Gecko 1.0. See bug 124465 for details. From Gecko 2.0 interfaces are no longer frozen. See also nsIInputStream nsReadSegmentFun ...
nsIPropertyBag2
xpcom/ds/nsIPropertyBag2.idlScriptable This interface extends nsIPropertyBag with some methods for getting properties in specific formats. ...
... xpcom/ds/nsIPropertyBag2.idlScriptable This interface extends nsIPropertyBag with some methods for getting properties in specific formats. ...
...Uint32 getPropertyAsUint32(in AString prop); PRUint64 getPropertyAsUint64(in AString prop); PRBool hasKey(in AString prop); Methods get() This method returns null if the value does not exist, or exists but is null. nsIVariant get( in AString prop ); Parameters prop Property to return the value of. Return value The property value as an nsIVariant. getPropertyAs
ACString()
ACString getPropertyAs
ACString( in AString prop ); Parameters prop Property to return the value of. Return value The property value as an
ACString. Note: Accessing a property of a different type may attempt conversion to this type. getPropertyAsAString() AString getPropertyAsAString( in AString prop ); Parameters prop Property to return the value of. Return value The p...
nsISHEntry
nsDocShellEditorDataPtr forgetEditorData(); Violates the XPCOM interface guidelines nsIContentViewer getAnyContentViewer(out nsISHEntry ownerEntry); void getScrollPosition(out long x, out long y); void getViewerBounds(in nsIntRect bounds); Native code only! boolean hasD...
...etIsSubFrame(in boolean aFlag); void setScrollPosition(in long x, in long y); void setTitle(in AString aTitle); void setUniqueDocIdentifier(); void setURI(in nsIURI aURI); void setViewerBounds(in nsIntRect bounds); Native code only! void syncPresentationState(); Attributes Attribute Type Description cacheKey nsISupports Set and get the cache key for the entry. contentType
ACString Indicates the content-type of the document that this is a session history entry for. contentViewer nsIContentViewer Content viewer, for fast restoration of presentation. docIdentifier unsigned long long An integer that should be the same for two entries attached to the same docshell if and only if the two entries are entries for the same document. In practice, two entries A and B will have t...
...t of bounds. Return value clearChildShells() Clear the child shell list. void clearChildShells(); Parameters None. clone() nsISHEntry clone(); Parameters None. Return value Native code only!create Additional ways to create an entry. void create( in nsIURI URI, in AString title, in nsIInputStream inputStream, in nsILayoutHistoryState layoutHistoryState, in nsISupports cacheKey, in
ACString contentType, in nsISupports owner, in unsigned long long docshellID, in boolean dynamicCreation ); Parameters URI title inputStream layoutHistoryState cacheKey contentType owner docshellID dynamicCreation Violates the XPCOM interface guidelines forgetEditorData() Gets the owning pointer to the editor data assosicated with this shistory entry. This forgets its pointer, ...
nsITreeBoxObject
void invalidateRow(in long index); void invalidateCell(in long row, in nsITreeColumn col); void invalidateRange(in long startIndex, in long endIndex); void invalidateColumnRange(in long startIndex, in long endIndex, in nsITreeColumn col); long getRowAt(in long x, in long y); void getCellAt(in long x, in long y, out long row, out nsITreeColumn col, out
ACString childElt); void getCoordsForCellItem(in long row, in nsITreeColumn col, in
ACString element, out long x, out long y, out long width, out long height); boolean isCellCropped(in long row, in nsITreeColumn col); void rowCountChanged(in long index, in long count); void beginUpdateBatch(); void endUpdateBatch(); void clearStyleAndImageCaches(); ...
...x, in long y); Parameters x The x coordinate y The y coordinate getCellAt() A hit test that can tell you what cell the mouse is over. Returns -1 for invalid mouse coordinates. The coordinate system is the client coordinate system for the document this boxObject lives in, and the units are CSS pixels. void getCellAt(in long x, in long y, out long row, out nsITreeColumn col, out
ACString childElt); Parameters x The x coordinate y The y coordinate Returns row The row index at the coordinates col The nsITreeColumn hit. ChildElt The pseudoelement hit: this can have values of "cell", "twisty", "image", and "text". getCoordsForCellItem() Find the coordinates of an element within a specific cell. void getCoordsForCellItem(in long row, in ns...
...ers x The x coordinate y The y coordinate Returns row The row index at the coordinates col The nsITreeColumn hit. ChildElt The pseudoelement hit: this can have values of "cell", "twisty", "image", and "text". getCoordsForCellItem() Find the coordinates of an element within a specific cell. void getCoordsForCellItem(in long row, in nsITreeColumn col, in
ACString element, out long x, out long y, out long width, out long height); Parameters row The index of the row col The nsITreeColumn element The pseudoelement. This can have values of "cell", "twisty", "image", and "text". Returns x The x coordinate col The y coordinate. width The width of the element height The heigh...
nsIVariant
nvert between nsIVariant and JS types. We mark the interface [scriptable] so that JS can use methods that refer to this interface. But we mark all the methods and attributes [noscript] since any nsIVariant object will be automatically converted to a JS type anyway. ...
...nsIVariant and JS types. We mark the interface [scriptable] so that JS can use methods that refer to this interface. But we mark all the methods and attributes [noscript] since any nsIVariant object will be automatically converted to a JS type anyway. ...
... getAsWChar(); Native code only! wstring getAsWString(); Native code only! void getAsWStringWithSize(out PRUint32 size, [size_is(size), retval] out wstring str); Native code only! Attributes Attribute Type Description dataType PRUint16 Read only. Native code only! Methods Native code only!getAs
ACString ACString getAs
ACString(); Parameters None. Return value The value is converted to an 8-bit string in the ISO-8859-1 character set. If the value was UTF16 then the high bits are lost. If the value was UTF8 then it is converted to UTF16 and the high bits are discarded. Arrays and interface pointers cannot be converted to a string. Violates the XPCOM interface guidelines getAsArray() nsresult...
NS_CStringAppendData
aData [in] A raw character array to copy into this string. aDataLength [in] The length of aData, measured in storage units. If equal to PR_UINT32_MAX, then aData is assumed to be null-terminated. Otherwise, aData need not be null-terminated. ...
... aData [in] A raw character array to copy into this string. aDataLength [in] The length of aData, measured in storage units. If equal to PR_UINT32_MAX, then aData is assumed to be null-terminated. Otherwise, aData need not be null-terminated. ...
...tDataRange. ...
NS_CStringContainerInit
<< XPCOM API Reference Summary The NS_CStringContainerInit function initializes a nsCStringContainer instance for use as a ns
ACString. #include "nsStringAPI.h" nsresult NS_CStringContainerInit( nsCStringContainer& aString ); Parameters aString [in] A nsCStringContainer instance to be initialized. Return Values The NS_CStringContainerInit function returns NS_OK if successful. Otherwise, it returns an error code. Remarks This function is equivalent to NS_CStringContainerInit2(container, nsnull, 0, 0). The nsCStringContainer structure has private members that should not be accessed directly. After a nsCStringContainer object has been initialized via NS_CStringContainerInit, it may be used as an ordinary ns
ACString object. With NS_CStringContainerInit, the coder is required...
... has private members that should not be accessed directly. After a nsCStringContainer object has been initialized via NS_CStringContainerInit, it may be used as an ordinary ns
ACString object. With NS_CStringContainerInit, the coder is required to call NS_CStringContainerFinish when done with the nsCStringContainer object. Therefore, it is generally better to use nsEmbedCString, to instantiate a ns
ACString object, since it automatically releases allocated memory when the object goes out of scope. Example nsCStringContainer str; if (NS_SUCCEEDED(NS_CStringContainerInit(str))) { // Now, |str| can be used with any function taking a ns
ACString parameter. // Call this function to release any memory owned by |str| when done. NS_CStringContainerFinish(str); } History This function was finaliz...
...pe. Example nsCStringContainer str; if (NS_SUCCEEDED(NS_CStringContainerInit(str))) { // Now, |str| can be used with any function taking a ns
ACString parameter. // Call this function to release any memory owned by |str| when done. ...
NS_CStringCopy
<< XPCOM API Reference Summary The NS_CStringCopy function copies the value from one ns
ACString instance to another. This is a low-level API. #include "nsStringAPI.h" nsresult NS_CStringCopy( ns
ACString& aDestString, const ns
ACString& aSrcString ); Parameters aDestString [in] A ns
ACString instance to be modified. aSrcString [in] A ns
ACString instance containing the new string value. Return Values The NS_CStringCopy function returns NS_OK if successful. Otherwise, it returns an error code. Remarks This function is designed to allow the implementation to efficiently assign the same value to two string objects. ...
...s
ACString instance containing the new string value. Return Values The NS_CStringCopy function returns NS_OK if successful. Otherwise, it returns an error code. Remarks This function is designed to allow the implementation to efficiently assign the same value to two string objects. The implementation may employ reference counting techniques to optimize this operation. Example /* attribute
ACString value; */ NS_IMETHODIMP MyComponent::GetValue(ns
ACString& aValue) { return NS_CStringCopy(aValue, mValue); } NS_IMETHODIMP MyComponent::SetValue(const ns
ACString& aValue) { return NS_CStringCopy(mValue, aValue); } History This function was frozen in Mozilla 1.7. See bug 239123 for details. ...
...erence counting techniques to optimize this operation. Example /* attribute
ACString value; */ NS_IMETHODIMP MyComponent::GetValue(ns
ACString& aValue) { return NS_CStringCopy(aValue, mValue); } NS_IMETHODIMP MyComponent::SetValue(const ns
ACString& aValue) { return NS_CStringCopy(mValue, aValue); } History This function was frozen in Mozilla 1.7. ...
NS_CStringCutData
aCutStart [in] The starting index of the section to remove, measured in storage units. aCutLength [in] The length of the section to remove, measured in storage units. ...
...aCutStart [in] The starting index of the section to remove, measured in storage units. aCutLength [in] The length of the section to remove, measured in storage units. ...
...ringContainerInit(str); NS_CStringSetData(str, "hello world"); // remove " world" portion of string NS_CStringCutData(str, 5, PR_UINT32_MAX); const char* data; NS_CStringGetData(str, &data); printf("%s\n", data); // prints out "hello" NS_CStringContainerFinish(str); History This function was frozen for Mozilla 1.7. See bug 239123 for details. See Also NS_CStringSetDataRange , ns
ACString ...
NS_CStringGetData
aData [out] A const pointer to the string's internal buffer. aTerminated [out] This optional result parameter indicates whether or not aData is null-terminated. It may be null if the caller is not interested in this information. ...
... aData [out] A const pointer to the string's internal buffer. aTerminated [out] This optional result parameter indicates whether or not aData is null-terminated. It may be null if the caller is not interested in this information. ...
... aTerminated [out] This optional result parameter indicates whether or not aData is null-terminated. It may be null if the caller is not interested in this information. Return Values The NS_CStringGetData function returns the length of aData, measured in storage units (bytes). Example Code // Count the number of times a particular character appears in a string. PRUint32 CountChar(const ns
ACString& str, char c) { const char* data; PRUint32 len = NS_CStringGetData(str, &data); PRUint32 count = 0; for (PRUint32 i = 0; i < len; ++i) { if (data[i] == c) ++count; } return count; } History This function was finalized for Mozilla 1.7. See bug 239123 for details. See Also NS_CStringGetMutableData ...
NS_CStringInsertData
aOffset [in] An offset into the string's internal buffer specifying where to place the given characters. aData [in] A raw character array to copy into this string. aDataLength [in] The length of aData, measured in storage units. ...
...aOffset [in] An offset into the string's internal buffer specifying where to place the given characters. aData [in] A raw character array to copy into this string. aDataLength [in] The length of aData, measured in storage units. ...
...e Code nsCStringContainer str; NS_CStringContainerInit(str); NS_CStringSetData(str, "hello"); NS_CStringInsertData(str, 5, " world"); const char* data; NS_CStringGetData(str, &data); printf("%s\n", data); // prints out "hello world" NS_CStringContainerFinish(str); History This function was frozen for Mozilla 1.7. See bug 239123 for details. See Also NS_CStringSetDataRange, ns
ACString, ns
ACString ...
NS_CStringToUTF16
aSrcEncoding [in] The character encoding of the source string. See nsCStringEncoding for the set of values that can be passed for this parameter. aDest [out] A nsAString instance that will contain the result of the conversion. The result will be encoded using the host byte order. ...
... aSrcEncoding [in] The character encoding of the source string. See nsCStringEncoding for the set of values that can be passed for this parameter. aDest [out] A nsAString instance that will contain the result of the conversion. The result will be encoded using the host byte order. ...
...function returns NS_OK if successful. ...
NS_StringInsertData
aOffset [in] An offset into the string's internal buffer specifying where to place the given characters. aData [in] A raw character array to copy into this string. aDataLength [in] The length of aData, measured in storage units. ...
... aOffset [in] An offset into the string's internal buffer specifying where to place the given characters. aData [in] A raw character array to copy into this string. aDataLength [in] The length of aData, measured in storage units. ...
...de nsStringContainer str; NS_StringContainerInit(str); NS_StringSetData(str, L"hello"); NS_StringInsertData(str, 5, L" world"); const PRUnichar* data; NS_StringGetData(str, &data); // data now points to the string: L"hello world" NS_StringContainerFinish(str); History This function was frozen for Mozilla 1.7. See bug 239123 for details. See Also NS_StringSetDataRange , ns
ACString ...
NS_UTF16ToCString
<< XPCOM API Reference Summary The NS_UTF16ToCString function converts the value of a nsAString instance from UTF-16 to the specified multi-byte encoding and stores the result in a ns
ACString instance. #include "nsStringAPI.h" nsresult NS_UTF16ToCString( const nsAString& aSrc, nsCStringEncoding aDestEncoding, ns
ACString& aDest ); Parameters aSrc [in] A nsAString instance containing the source UTF-16 string to be converted. The source string should be encoded using the host byte order. aDestEncoding [in] The character encoding of the destination string. See nsCStringEncoding for the set of values that can be passed for this parameter. aDest [out] A ns
ACString instance that will contain the result of the conversion. Return Values The NS_UTF16ToCString...
... be passed for this parameter. aDest [out] A ns
ACString instance that will contain the result of the conversion. Return Values The NS_UTF16ToCString function returns NS_OK if successful. Otherwise, it returns an error code. The set of possible error codes is currently unspecified. Example Code // Convert UTF-16 (or UCS-2) string to UTF-8 void CopyUTF16toUTF8(const nsAString& in, ns
ACString& out) { NS_UTF16ToCString(in, NS_CSTRING_ENCODING_UTF8, out); } History This function was frozen for Mozilla 1.7. See bug bug 239123 for details. ...
... if successful. Otherwise, it returns an error code. The set of possible error codes is currently unspecified. ...
Component Internals
, which allows the XPCOM library version to change without affecting the software. There is a slight footprint penalty to linking directly, but this gives your component freedom to work in any recent environment. If footprint is a big issue in your component or application, you can trim out the pieces you don't need. XPCOM String Classes The base string types that XPCOM uses are nsAString and ns
ACString. These classes are described in the Mozilla String Guide (see Gecko Resources). The string classes that implement these abstract classes are another set of helpful, unfrozen classes in XPCOM. Most components and embedding applications need to link to some string class or other in order to utilize certain Gecko APIs, but the string code that Mozilla uses is highly complex and even more expensive ...
...er to utilize certain Gecko APIs, but the string code that Mozilla uses is highly complex and even more expensive than the glue code in terms of footprint (~100k). nsEmbedString and nsEmbedCString are available as very lightweight string implementations for component development, especially in small embedded applications. This string implementation does the bare minimum to support the nsAString/ns
ACString functionality. In your own component, you can go "slim" and restrict yourself to the nsEmbedString or go "hog wild" and use any of the the other strings. WebLock restricts itself to using the simple nsEmbedString family of classes. String Classes and XPCOM The glue library provides stub functions for the public functions that XPCOM provides (see xpcom/build/nsXPCOM.h). When the glue library ...
NS_NewNativeLocalFile
<< XPCOM API Reference Summary The NS_NewNativeLocalFile function creates an instance of nsILocalFile that provides a platform independent representation of a file path. #include "nsXPCOM.h" #include "nsILocalFile.h" nsresult NS_NewNativeLocalFile( const ns
ACString& aPath, PRBool aFollowLinks, nsILocalFile** aResult ); Parameters aPath [in] A string object that specifies an absolute filesystem path. This string should be encoded using ASCII or the multibyte character coding corresponding to the native filesystem. This path does not need to reference an existing file. It is an error to pass a relative filesystem path. aFollowLinks [in] This attribute will determine if the nsILocalFile instance will automatically resolve symbolic links. This parameter has no effect on UN...
...path involved is always ASCII. Example Code // Create a local file that references c:\foo.txt nsresult rv; nsCOMPtr<nsILocalFile> file; rv = NS_NewNativeLocalFile(nsEmbedCString("c:\\foo.txt"), PR_FALSE, getter_AddRefs(file)); if (NS_FAILED(rv)) return rv; Here, nsEmbedCString is used to convert the ASCII string literal to an object that can be passed as a const ns
ACString& parameter. History This function was finalized for Mozilla 1.0. See bug 129279 for details. See Also nsILocalFile, nsIFile ...
NS ConvertASCIItoUTF16 external
rator<= operator== operator>= operator> operator!= EqualsLiteral LowerCaseEqualsLiteral Find RFind FindChar RFindChar AppendInt ToInteger Base Classes nsString_external Data Members No public members. ...
... operator> operator!= EqualsLiteral LowerCaseEqualsLiteral Find RFind FindChar RFindChar AppendInt ToInteger Base Classes nsString_external Data Members No public members. ...
NS ConvertUTF8toUTF16 external
erator<= operator== operator>= operator> operator!= EqualsLiteral LowerCaseEqualsLiteral Find RFind FindChar RFindChar AppendInt ToInteger Base Classes nsString_external Data Members No public members. ...
... operator> operator!= EqualsLiteral LowerCaseEqualsLiteral Find RFind FindChar RFindChar AppendInt ToInteger Base Classes nsString_external Data Members No public members. ...
EndReading
Reference Summary The EndReading function returns a const char_type pointer to the element just beyond the last element of the string's internal buffer. ...
...nternal buffer. ...
nsEmbedCString
<< XPCOM API Reference Summary The nsEmbedCString concrete class provides a way to construct a ns
ACString object that allocates null-terminated storage. #include "nsEmbedString.h" class nsEmbedCString : public ns
ACString { ... }; Typedefs self_type [nsEmbedCString] An alias for the type of this class. abstract_string_type [ns
ACString] An alias for the abstract string type this class specializes. Methods nsEmbedCString Constructors for nsEmbedCString. get The get function returns a const pointer to the string's null-terminated, internal buffer. Operators operator= This operator is a shortcut for the inherited ns
ACString::Assign family of functions. Remarks The methods defined on nsEmbedCString are implemented as inline wrappers around the XPCOM string functions, prefixed wi...
...ns a const pointer to the string's null-terminated, internal buffer. Operators operator= This operator is a shortcut for the inherited ns
ACString::Assign family of functions. ...
nsIAutoCompleteInput
toolkit/components/autocomplete/public/nsIAutoCompleteInput.idlScriptable This interface monitors the input in a text field and displays an autocomplete panel at the appropriate time. ...
...is added to the popup, showing an additional image for each autocomplete result. textValue AString The value of the text in the autocomplete text field. timeout unsigned long The number of milliseconds after a keystroke before a search begins. Methods getSearchAt() Returns the name of one of the autocomplete search session objects.
ACString getSearchAt( in unsigned long index ); Parameters index The index number of the search session object whose name is to be returned. Return value The name of the specified object. onSearchBegin() Called when the search starts. void onSearchBegin(); Parameters None. onSearchComplete() Called when the search ends successfully. void onSearchComplete(); Parameters None. onTextEnte...
nsIBinaryInputStream
PRUint8 read8(); Parameters None. Return value An 8-bit integer read from the stream. read16() Reads from the stream. PRUint16 read16(); Parameters None. Return value A 16...
...id readBytes( in PRUint32 aLength, [size_is(aLength), retval] out string aString ); Parameters aLength The number of bytes to read. aString A string containing the bytes read from the stream. Exceptions thrown NS_ERROR_FAILURE If it can't read aLength bytes. readCString() Reads an 8-bit pascal style string from the stream. 32-bit length field, followed by length 8-bit chars.
ACString readCString(); Parameters None. Return value The string read from the stream. readDouble() Reads from the stream. double readDouble(); Parameters None. Return value A double read from the stream. readFloat() Reads from the stream. float readFloat(); Parameters None. Return value A float read from the stream. readString() Reads an 16-bit pascal style string from the stream. ...
nsICacheService
anned to be removed soon: use nsICacheStorageService instead. At the time of writing there is no documentation for nsICacheStorageService but comments are available in the source. Note: Starting in Gecko 2.0, cache I/O is handled asynchronously. ...
...bsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it. This method creates and returns a unique, temporary cache client ID. This is used by the offline cache. The offline cache lets clients accumulate entries in a temporary client and merge them in as a group using nsIOfflineCacheSession.mergeTemporaryClient().
ACString createTemporaryClientID( in nsCacheStoragePolicy storagePolicy ); Parameters storagePolicy The cache storage policy. Return value Returns a newly created unique, temporary cache client ID. Exceptions thrown NS_ERROR_NOT_IMPLEMENTED This method is deprecated. evictEntries() This method evicts all entries in all devices implied by the storage policy. Note: This function may evic...
nsIChannel
http transaction. This interface must be used only from the XPCOM main thread. Implemented by netwerk/base/src/nsBaseChannel.cpp and netwerk/protocol/http/src/nsHttpChannel.cpp. Method overview void asyncOpen(in nsIStreamListener aListener, in nsISupports aContext); nsIInputStream open(); Attributes Attribute Type Description contentCharset
ACString The character set of the channel's content if available and if applicable. This attribute only applies to textual data. Setting contentCharset before the channel has been opened provides a hint to the channel on what the charset should be. The behavior is similar to contentType. The value of the contentCharset attribute is a mixed case string. contentLength int64_t ...
...data associated with the channel if available. A value of -1 indicates that the content length is unknown. Note: As of Gecko 19.0, this parameter changed from long to int64_t. In earlier versions callers could get the "content-length" property as 64-bit value by QueryInterfacing the channel to nsIPropertyBag2, if that interface is exposed by the channel. contentType
ACString The MIME type of the channel's content if available. Note: The content type can often be wrongly specified (For example wrong file extension, wrong MIME type, wrong document type stored on a server and so on.), and the caller most likely wants to verify with the actual data. Setting contentType before the channel has been opened provides a hint to the channel as to what the MIME...
nsICharsetResolver
intl/chardet/public/nsICharsetResolver.idlScriptable Please add a summary to this article. Inherits from: nsISupports Last changed in Gecko 1.7 Method overview void notifyResolvedCharset(in
ACString charset, in nsISupports closure);
ACString requestCharset(in nsIWebNavigation aWebNavigation, in nsIChannel aChannel, out boolean aWantCharset, out nsISupports aClosure); Methods notifyResolvedCharset() Some implementations may request that they be notified when the charset is actually detected. void notifyResolvedCharset( in
ACString charset, in nsISupports closure ); Parameters charset The detected charset. closure The closure returned by requestCharset(). requestCharset() Called to resolve the charset that should be used for parsing the document being loaded from aCh...
...ment being loaded from aChannel. If the charset cannot be resolved, but the implementation of nsICharsetResolver wants to be notified of the final resolved charset when one is available, it can set aWantCharset to true. If this is done, the caller of requestCharset is responsible for calling notifyResolvedCharset() and passing it the final resolved charset and the closure that requestCharset set.
ACString requestCharset( in nsIWebNavigation aWebNavigation, in nsIChannel aChannel, out boolean aWantCharset, out nsISupports aClosure ); Parameters aWebNavigation The nsIWebNavigation the document is being loaded in. May be null. aChannel The channel the document is coming in from. aWantCharset Gets set to true if notifyResolvedCharset() should be called with the given aClosure object. aClosur...
nsIContentSniffer
netwerk/base/public/nsIContentSniffer.idlScriptable Content sniffer interface. Components implementing this interface can determine a MIME type from a chunk of bytes. Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) To implement this interface use net-content-sniffers category. See netwerk/build/nsNetCID.h about NS_CONTENT_SNIFFER_CATEGORY. Method overview
ACString getMIMETypeFromContent(in nsIRequest aRequest, [const,array,size_is(aLength)] in octet aData, in unsigned long aLength); Methods getMIMETypeFromContent() Given a chunk of data, determines a MIME type. Information from the given request may be used in order to make a better decision. Note: Implementations should consider the request read-only. Especially, they should not attempt to set the co...
...e_is(aLength)] in octet aData, in unsigned long aLength); Methods getMIMETypeFromContent() Given a chunk of data, determines a MIME type. Information from the given request may be used in order to make a better decision. Note: Implementations should consider the request read-only. Especially, they should not attempt to set the content type property that subclasses of nsIRequest might offer.
ACString getMIMETypeFromContent( in nsIRequest aRequest, [const,array,size_is(aLength)] in octet aData, in unsigned long aLength ); Parameters aRequest The request where this data came from. May be null. aData Data to check. aLength Length of the data. Return value The content type. Example How to read content from aData. let charset = "ISO-8859-1"; try { // ...
nsICookieManager
e cookie list. netwerk/cookie/nsICookieManager.idlScriptable Please add a summary to this article. Last changed in Gecko 1.7 Inherits from: nsISupports This interface is intended to be used as a service. It is implemented by the @mozilla.org/cookiemanager;1 component, but should generally be accessed via Services.cookies Method overview void remove(in AUTF8String aHost, in
ACString aName, in AUTF8String aPath, in boolean aBlocked, in jsval aOriginAttributes); void removeAll(); Attributes Attribute Type Description enumerator nsISimpleEnumerator Called to enumerate through each cookie in the cookie list. The objects enumerated over are of type nsICookie. Read only. Methods remove() This method is called to remove an i...
...t. The objects enumerated over are of type nsICookie. Read only. Methods remove() This method is called to remove an individual cookie from the cookie list, specified by host, name, and path. If the cookie cannot be found, no exception is thrown. Typically, the arguments to this method will be obtained directly from the desired nsICookie object. void remove( in AUTF8String aHost, in
ACString aName, in AUTF8String aPath, in boolean aBlocked, in jsval aOriginAttributes ); Parameters aHost The host or domain for which the cookie was set. See nsICookieManager2.add() for a description of acceptable host strings. If the target cookie is a domain cookie, a leading dot must be present. aName The name specified in the cookie. aPath The path for which the cookie was set. aBloc...
nsICookiePromptService
The nsICookiePromptService interface is to open a dialog to ask to permission to accept the cookie. extensions/cookie/nsICookiePromptService.idlScriptable Please add a summary to this article. Last changed in Gecko 1.9 (Firefox 3) Inherits from: nsISupports Method overview long cookieDialog(in nsIDOMWindow parent, in nsICookie cookie, in
ACString hostname, in long cookiesFromHost, in boolean changingCookie, out boolean rememberDecision); Constants Constant Value Description DENY_COOKIE 0 Holds the value for a denying the cookie. ACCEPT_COOKIE 1 Holds the value for accepting the cookie. ACCEPT_SESSION_COOKIE 2 Holds the value for accepting the session cookie. Methods cookieDialog() Opens a dialog that asks for permission to accept a cookie. long cookieDialog( ...
... Constants Constant Value Description DENY_COOKIE 0 Holds the value for a denying the cookie. ACCEPT_COOKIE 1 Holds the value for accepting the cookie. ACCEPT_SESSION_COOKIE 2 Holds the value for accepting the session cookie. Methods cookieDialog() Opens a dialog that asks for permission to accept a cookie. long cookieDialog( in nsIDOMWindow parent, in nsICookie cookie, in
ACString hostname, in long cookiesFromHost, in boolean changingCookie, out boolean rememberDecision ); Parameters parent The parent window for the dialog. cookie The cookie about which permission is being requested. hostname The host that wants to set the cookie, not the domain; this is part of the cookie. cookiesFromHost The number of cookies there are already for this host. changingCookie Ar...
nsICryptoHMAC
netwerk/base/public/nsICryptoHMAC.idlScriptable This interface provides HMAC signature algorithms. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) Method overview
ACString finish(in PRBool aASCII); void init(in unsigned long aAlgorithm, in nsIKeyObject aKeyObject); void reset(); void update([const, array, size_is(aLen)] in octet aData, in unsigned long aLen); void updateFromStream(in nsIInputStream aStream, in unsigned long aLen); Constants Hashing Algorithms. These values are to be used by the init() method to indicate which hashing function to use. These values map onto the values defined in mozilla/security/nss/lib/softoken/pkcs11t.h and are switched to CKM_*_HMAC co...
... SHA1 3 Secure Hash Algorithm 1 SHA256 4 Secure Hash Algorithm 256 SHA384 5 Secure Hash Algorithm 384 SHA512 6 Secure Hash Algorithm 512 Methods finish() Completes this HMAC object and produces the actual HMAC diegest data. Note: This method may be called any time after init() is called. This call resets the object to its pre-init state.
ACString finish( in PRBool aASCII ); Parameters aASCII If true then the returned value is a base-64 encoded string. if false, then the returned value is binary data. Return value A hash of the data that was read by this object. This can be either binary data or base 64 encoded. Exceptions thrown NS_ERROR_NOT_INITIALIZED If init() has not been called. init() Initialize the hashing ob...
nsIDBFolderInfo
Obsolete since Gecko 1.8 void getMailboxName(in nsString bo...
...xception Missing Description getBooleanProperty() boolean getBooleanProperty( in string propertyName, in boolean defaultValue ); Parameters propertyName Missing Description defaultValue Missing Description Return value Missing Description Exceptions thrown Missing Exception Missing Description getCharacterSet() void getCharacterSet( out
ACString charSet, out boolean overriden ); Parameters charSet Missing Description overriden Missing Description Exceptions thrown Missing Exception Missing Description getCharacterSetOverride() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) void getCharacterSetOverride( out boolean characterSetOverride )...
nsIDNSRecord
werk/dns/nsIDNSRecord.idlScriptable This interface represents the result of a DNS lookup. Since a DNS query may return more than one resolved IP address, the record acts like an enumerator, allowing the caller to easily step through the list of IP addresses. Inherits from: nsISupports Last changed in Gecko 1.7 Method overview PRNetAddr getNextAddr(in PRUint16 aPort); Native code only!
ACString getNextAddrAsString(); boolean hasMore(); void rewind(); Attributes Attribute Type Description canonicalName
ACString for example, www.mozilla.org --> rheet.mozilla.org. Read only. Methods Native code only!getNextAddr This function copies the value of the next IP address into the given PRNetAddr struct and increments the internal address iterator. PRNetAddr getNextAddr( in PRUint...
...ue of the next IP address into the given PRNetAddr struct and increments the internal address iterator. PRNetAddr getNextAddr( in PRUint16 aPort ); Parameters aPort A port number to initialize the PRNetAddr with. Return value The value of the next IP address. getNextAddrAsString() This function returns the value of the next IP address as a string and increments the internal address iterator.
ACString getNextAddrAsString(); Parameters None. Return value The value of the next IP address as a string. hasMore() This method checks if there is another address in the record. boolean hasMore(); Parameters None. Return value true if there is another address in the record. rewind() This function resets the internal address iterator to the first address in the record. void rewind(); Parameters None. ...
nsIDOMNSHTMLDocument
in Gecko 6.0 (Firefox 6.0 / Thunderbird 6.0 / SeaMonkey 2.3) Method overview void captureEvents(in long eventFlags); void clear(); boolean execCommand(in DOMString commandID, in boolean doShowUI, in DOMString value); boolean execCommandShowHelp(in DOMString commandID); Obsolete since Gecko 14.0 DOMString getSelection(); nsIDOMDocument open(in
ACString aContentType, in boolean aReplace); boolean queryCommandEnabled(in DOMString commandID); boolean queryCommandIndeterm(in DOMString commandID); boolean queryCommandState(in DOMString commandID); boolean queryCommandSupported(in DOMString commandID); DOMString queryCommandText(in DOMString commandID); Obsolete since Gecko 14.0 DOMString queryCom...
...ird 14.0 / SeaMonkey 2.11). boolean execCommandShowHelp( in DOMString commandID ); Parameters commandID The name of the command. Return value This method is not supported and always throws an exception. getSelection() DOMString getSelection(); Parameters None. Return value The text of the current selection, the same as window.getSelection.toString(). open() nsIDOMDocument open( in
ACString aContentType, in boolean aReplace ); Parameters aContentType The content type of the new document. If the type is not supported by the HTML content sink, trying to write to the document will probably throw. aReplace Whether the document should replace the existing document in session history. Return value The new document. queryCommandEnabled() boolean queryCommandEnabled( ...
nsIDocShell
aOwner, in PRUint32 aFlags, in wstring aWindowTarget, in string aTypeHint, in nsIInputStream aPostDataStream, in nsIInputStream aHeadersStream, in unsigned long aLoadFlags, in nsISHEntry aSHEntry, in boolean firstParty, out nsIDocShell aDocShell, out nsIRequest aRequest); Native code only! boolean isBeingDestroyed(); void loadStream(in nsIInputStream aStream, in nsIURI aURI, in
ACString aContentType, in
ACString aContentCharset, in nsIDocShellLoadInfo aLoadInfo); Native code only! void loadURI(in nsIURI uri, in nsIDocShellLoadInfo loadInfo, in unsigned long aLoadFlags, in boolean firstParty); Native code only! void prepareForNewContentModel(); void resumeRefreshURIs(); void setChildOffset(in unsigned long offset); Native code only! ...
...lue Returns true if the docshell is being destroyed, false otherwise. Native code only!loadStream Loads a given stream. This will give priority to loading the requested stream in the object implementing this interface. If it can not be loaded here however, the URL dispatched will go through its normal process of content loading. void loadStream( in nsIInputStream aStream, in nsIURI aURI, in
ACString aContentType, in
ACString aContentCharset, in nsIDocShellLoadInfo aLoadInfo ); Parameters aStream The input stream that provides access to the data to be loaded. This must be a blocking, threadsafe stream implementation. aURI The URI representing the stream, or null. aContentType The type (MIME) of data being loaded (empty if unknown). aContentCharset The cha...
nsIEditor
</html>). // tag name are in lower case with <br>. ...
... eNextWord 3 ePreviousWord 4 eToBeginningOfLine 5 eToEndOfLine 6 Attributes Attribute Type Description contentsMIMEType string The MIME type of the document. document Document Read only. The DOM Document this editor is associated with. documentCharacterSet
ACString Sets the current 'Save' document character set. documentIsEmpty boolean Read only. Returns true if the document has no *meaningful* content. documentModified boolean Read only. Returns true if the document is modifed and needs saving. flags unsigned long Edit flags for this editor. May be set at any time. isDocumentEditable PRBool ...
nsIHttpActivityObserver
des a way for http transport activities to be reported to observers. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Method overview void observeActivity(in nsISupports aHttpChannel, in PRUint32 aActivityType, in PRUint32 aActivitySubtype, in PRTime aTimestamp, in PRUint64 aExtraSizeData, in
ACString aExtraStringData); Attributes Attribute Type Description isActive boolean true when the interface is active and should observe HTTP activity, otherwise false. If this is false, the observeActivity() method should not be called. Read only. Note: This attribute is present only for compatibility and should not be used. Constants Activity type constants Constant Value Description AC...
...06 The HTTP transaction has been closed. Methods observeActivity() Called when activity occurs on the HTTP transport. You should implement this method to perform whatever tasks you wish to perform when HTTP activity occurs. void observeActivity( in nsISupports aHttpChannel, in PRUint32 aActivityType, in PRUint32 aActivitySubtype, in PRTime aTimestamp, in PRUint64 aExtraSizeData, in
ACString aExtraStringData ); Parameters aHttpChannel The nsIHttpChannel on which the activity occurred. aActivityType The type of activity that occurred; this will be one of the values specified in Activity type constants. aActivitySubtype The subtype that further narrows the type of activity that occurred. If the activity type is ACTIVITY_TYPE_SOCKET_TRANSPORT, this value will be one of the STATUS_* co...
nsIHttpChannelInternal
is not recommended, as it will change in unpredictable ways. 66 Introduced Gecko 1.0 Inherits from: nsISupports Last changed in Gecko 6.0 (Firefox 6.0 / Thunderbird 6.0 / SeaMonkey 2.3) Method overview void getRequestVersion(out unsigned long major, out unsigned long minor); void getResponseVersion(out unsigned long major, out unsigned long minor); void HTTPUpgrade(in
ACString aProtocolName, in nsIHttpUpgradeListener aListener); void setCookie(in string aCookieHeader); void setupFallbackChannel(in string aFallbackKey); Attributes Attribute Type Description canceled boolean Returns true if and only if the channel has been canceled. Read only. channelIsForDownload boolean External handlers may set this to true to notify the channel that it is open on beh...
...d if a matching 101 is processed. The arguments to nsIHttpUpgradeListener.onTransportAvailable() provide to the new protocol the low level transport streams that are no longer used by HTTP. The onStartRequest and onStopRequest events are still delivered and the listener gets full control over the socket if and when nsIHttpUpgradeListener.onTransportAvailable() is delivered. void HTTPUpgrade( in
ACString aProtocolName, in nsIHttpUpgradeListener aListener ); Parameters aProtocolName The value of the HTTP Upgrade request header. aListener The callback object used to handle a successful upgrade. setCookie() Helper method to set a cookie with a consumer-provided cookie header, but using the channel's other information (URI's, prompters, date headers and so on.). void setCookie( in string aCooki...
nsIIOService
he new URI to the appropriate protocol handler). Note: nsIIOService may only be used from the main thread. ...
... that could override the IOService's decision. Return value true if the port is allowed, false otherwise. extractScheme() Utility to extract the scheme from a URL string, consistently and according to spec (see RFC 3986). Note: Most URL parsing is done via nsIURI, and in fact the scheme can also be extracted from a URL string via nsIURI. This method is provided purely as an optimization.
ACString extractScheme( in AUTF8String urlString ); Parameters urlString The string for the URL to extract the scheme from. Return value A string corresponding to the scheme. Exceptions thrown NS_ERROR_MALFORMED_URI If URL string is not of the right form. getProtocolFlags() Returns the protocol flags for a given scheme. unsigned long getProtocolFlags( in string aScheme ); Parameter...
nsIMarkupDocumentViewer
tional text. 1 - left to right 2 - right to left. bidiTextType octet The ordering of bidirectional text. This may be either "logical" or "visual". Logical text will be reordered for presentation using the Unicode Bidi Algorithm. Visual text will be displayed without reordering. 1 - the default order for the charset 2 - logical order 3 - visual order. defaultCharacterSet
ACString forceCharacterSet
ACString fullZoom float The amount by which to scale all lengths. Default is 1.0. hintCharacterSet
ACString hintCharacterSetSource PRInt32 minFontSize long The minimum font size to allow. Note: This attribute was added late in the Gecko 2.0 development cycle and was implemented by th...
...Default is 1.0. Methods scrollToNode() Scroll the make the specified node visible. void scrollToNode( in nsIDOMNode node ); Parameters node The nsIDOMNode of the node to make visible. sizeToContent() Tell the container to shrink-to-fit or grow-to-fit its contents. ...
nsIMemoryMultiReporterCallback
xpcom/base/nsIMemoryReporter.idlScriptable Implement this interface to handle callbacks from nsIMemoryMultiReporter instances. ...
... path The value of the path attribute. ...
nsIMsgDBHdr
igned long propertyVal); void markRead(in boolean read); void markFlagged(in boolean flagged); void markHasAttachments(in boolean hasAttachments); void setPriorityString(in string priority); unsigned long OrFlags(in unsigned long flags); unsigned long AndFlags(in unsigned long flags); void setReferences(in string references);
ACString getStringReference(in long refNum); void setRecipientsArray(in string names, in string addresses,in unsigned long numAddresses); void setCCListArray(in string names, in string addresses,in unsigned long numAddresses); void setBCCListArray(in string names, in string addresses,in unsigned long numAddresses);New in Thunderbird 3.1 [noscript] void getAuthorCollatio...
...ssage flags. AndFlags() unsigned long AndFlags(in unsigned long flags); Parameters flags Flags to be retained on the current message flags. All other flags are cleared. setReferences() void setReferences(in string references); Parameters references Sets the list of references for a news message. getStringReference() Returns one of the references in the list of references.
ACString getStringReference(in long refNum); Parameters refNum The index of the reference to return. Must be less than the total number of references. setRecipientsArray() Uses the header parser to recreate the recipients header from an array of names and addresses. void setRecipientsArray(in string names, in string addresses, in unsigned long n...
nsIMsgFilterList
Defined in comm-central/ mailnews/ base/ search/ public/ nsIMsgFilterList.idl Attributes folder attribute nsIMsgFolder nsIMsgFilterList::folder version readonly attribute short nsIMsgFilterList::version arbitraryHeaders readonly attribute
ACString nsIMsgFilterList::arbitraryHeaders shouldDownloadAllHeaders readonly attribute boolean nsIMsgFilterList::shouldDownloadAllHeaders filterCount readonly attribute unsigned long nsIMsgFilterList::filterCount loggingEnabled attribute boolean nsIMsgFilterList::loggingEnabled defaultFile attribute nsILocalFile nsIMsgFilterList::defaultFile logStream attribute nsIOutputStream nsIMsgFilterList::logStream logURL readonly attribute
ACString nsIMsgFilterList::logURL Methods getFilterAt() nsIMsgFilter nsIMsgFilterList::getFilterAt (in unsigned lon...
...sgFilterFileAttribValue attrib, in string value, in nsIOutputStream stream ) writeWStrAttr() void nsIMsgFilterList::writeWStrAttr ( in nsMsgFilterFileAttribValue attrib, in string value, in nsIOutputStream stream ) matchOrChangeFilterTarget() boolean nsIMsgFilterList::matchOrChangeFilterTarget ( in
ACString oldUri, in
ACString newUri, in boolean caseInsensitive ) clearLog() void nsIMsgFilterList::clearLog () ensureLogFile() void nsIMsgFilterList::ensureLogFile () flushLogIfNecessary () void nsIMsgFilterList::flushLogIfNecessary () Const const nsMsgFilterFileAttribValue nsIMsgFilterList::attribNone = 0 const nsMsgFilterFileAttribValue nsIMsgFilterList::attribV...
nsIMsgRuleAction
al/ mailnews/ base/ search/ public/ nsIMsgFilter.idl [scriptable, uuid(190A2A18-D245-473a-A402-9F0814598C7F)] interface nsIMsgRuleAction : nsISupports { attribute nsMsgRuleActionType type; // target priority.. throws an exception if the action is not priority attribute nsMsgPriorityValue priority; // target folder.. ...
... // target folder.. throws an exception if the action is not move to folder attribute
ACString targetFolderUri; // target label. ...
nsIMsgWindowCommands
mailnews/base/public/nsIMsgWindow.idlScriptable This interface defines methods used by the back end to update the user interface in a mail or news message list. Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) The JavaScript implementation of this used by Thunderbird is given here. Method overview void selectFolder(in
ACString folderUri); void selectMessage(in
ACString messageUri); void clearMsgPane(); Methods selectFolder() This method is called by the backend to change the folder displayed in the message window. This could be as a result of clicking on a new mail alert, or by clicking a link to a newsgroup. void selectFolder( in
ACString folderUri ); Parameters folderUri The URI of the folder to select. selectMessage() This method is called by the ba...
...dow. This could be as a result of clicking on a new mail alert, or by clicking a link to a newsgroup. void selectFolder( in
ACString folderUri ); Parameters folderUri The URI of the folder to select. selectMessage() This method is called by the backend to change the displayed message. For instance, when deleting attachments, this causes the message to be redisplayed. void selectMessage( in
ACString messageUri ); Parameters messageUri The URI of the message to open. clearMsgPane() This method is called by the backend when it wants to clear the message pane, for instance if you select the group header . void clearMsgPane(); Paramters None. ...
nsIProtocolProxyService
asses["@mozilla.org/network/protocol-proxy-service;1"] .getService(Components.interfaces.nsIProtocolProxyService); Method overview Deprecated since Gecko 18 nsIProxyInfo resolve(in nsIURI aURI, in unsigned long aFlags); nsICancelable asyncResolve(in nsIURI aURI, in unsigned long aFlags,in nsIProtocolProxyCallback aCallback); nsIProxyInfo newProxyInfo(in
ACString aType, in AUTF8String aHost,in long aPort, in unsigned long aFlags, in unsigned long aFailoverTimeout, in nsIProxyInfo aFailoverProxy); nsIProxyInfo getFailoverForProxy(in nsIProxyInfo aProxyInfo, in nsIURI aURI, in nsresult aReason); void registerFilter(in nsIProtocolProxyFilter aFilter, in unsigned long aPosition); void unregisterFilter(in nsIProtocolProxyFilter aFilt...
...aReason) will be forwarded to the callback's nsIProtocolProxyCallback.onProxyAvailable() method via the aStatus parameter. newProxyInfo() This method may be called to construct a nsIProxyInfo instance from the given parameters. This method may be useful in conjunction with nsISocketTransportService.createTransport() for creating, for example, a SOCKS connection. nsIProxyInfo newProxyInfo( in
ACString aType, in AUTF8String aHost, in long aPort, in unsigned long aFlags, in unsigned long aFailoverTimeout, in nsIProxyInfo aFailoverProxy ); Parameters aType The proxy type is a string value that identifies the proxy type. Standard values are: "http" - specifies a HTTP proxy "https" - specifies a HTTPS proxy "socks" - specifies a SOCKS version 5 proxy "socks4" - specifies a...
nsIResumableChannel
suming broken downloads (for example Necko's HTML and FTP channels). Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Method overview void asyncOpenAt(in nsIStreamListener listener, in nsISupports ctxt, in unsigned long startPos, in nsIResumableEntityID entityID); Obsolete since Gecko 1.8 void resumeAt(in unsigned long long startPos, in
ACString entityID); Attributes Attribute Type Description entityID
ACString The entity id for this URI. Available after OnStartRequest. Read only. Exceptions thrown NS_ERROR_NOT_RESUMABLE If this load is not resumable. Methods asyncOpenAt() Obsolete since Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Open this channel, and read starting at the specified...
... 0, so that the front end can warn the user. Similarly, the status of this channel during OnStartRequest may be NS_ERROR_ENTITY_CHANGED, which indicates that the entity has changed, as indicated by a changed entityID. In both of these cases, no OnDataAvailable will be called, and OnStopRequest will immediately follow with the same status code. void resumeAt( in unsigned long long startPos, in
ACString entityID ); Parameters startPos The starting offset, in bytes, to use to download. entityID Information about the file, to match before obtaining the file. Pass an empty string to use anything. See also Implementing Download Resuming ...
nsIScriptableInputStream
/io/nsIScriptableInputStream.idlScriptable This interface provides scriptable access to a nsIInputStream instance. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) Method overview unsigned long available(); void close(); void init(in nsIInputStream aInputStream); string read(in unsigned long aCount);
ACString readBytes(in unsigned long aCount); Methods available() Return the number of bytes currently available in the stream. Note: This method should not be used to determine the total size of a stream, even if the stream corresponds to a local file. Moreover, since a stream may make available more than 2^32 bytes of data, this method is incapable of expressing the entire size of the underlying d...
...ZED If init() was not called. NS_BASE_STREAM_CLOSED If called after the stream has been closed. NS_BASE_STREAM_WOULD_BLOCK Indicates that reading from the input stream would block the calling thread for an indeterminate amount of time. This exception may only be thrown if nsIInputStream.isNonBlocking() returns true. readBytes() Read data from the stream, including null bytes.
ACString readBytes( in unsigned long aCount ); Parameters aCount The maximum number of bytes to read. Return value The data from the stream, which will be an empty string if EOF has been reached. Exceptions thrown NS_ERROR_FAILURE If there are not enough bytes available to read aCount amount of data. NS_BASE_STREAM_WOULD_BLOCK If reading from the input stream would block the ...
nsISocketTransportService
vice;1. ...
...t( in PRFileDescPtr aFd, in nsASocketHandlerPtr aHandler ); Parameters aFd Open file descriptor of the socket to control. aHandler Socket handler that will receive notifications when the socket is ready or detached. createTransport() Creates a transport for a specified host and port. Note: This function can be called from any thread. nsISocketTransport createTransport( in Array<
ACString> aSocketTypes, in AUTF8String aHost, in long aPort, in nsIProxyInfo aProxyInfo ); Parameters aSocketTypes Array of socket type strings. Currently "starttls", "ssl" and "udp" are supported. Pass an empty array [] if the default socket type should be used. You do not need to specify the strings "socks" or "socks4", use the aProxyInfo instead. aHost Specifies the target hostname or IP ...
nsIStringBundleOverride
vice(Components.interfaces.nsIStringBundleOverride); Note: You should never need to use this service directly. Instead, the string bundle service will automatically try to load this service. If there is no custom-strings.txt file then the service will fail to load. Method overview nsISimpleEnumerator enumerateKeysInBundle(in AUTF8String url); AString getStringFromName(in AUTF8String url, in
ACString key); Methods enumerateKeysInBundle() Get all override keys for a given string bundle. nsISimpleEnumerator enumerateKeysInBundle( in AUTF8String url ); Parameters url The URL of the original string bundle whose keys are to be overridden. Return value An enumeration of nsIPropertyElement objects for the keys that are overridden in the given string bundle. Note that these keys may not exist...
...L of the original string bundle whose keys are to be overridden. Return value An enumeration of nsIPropertyElement objects for the keys that are overridden in the given string bundle. Note that these keys may not exist in the original string bundle. getStringFromName() Get the override value for a particular key in a particular string bundle. AString getStringFromName( in AUTF8String url, in
ACString key ); Parameters url The URL of the original string bundle whose keys are to be overridden. key The key to be overridden. Return value The override value. An exception is thrown if the key has not been overridden. However, no exception is thrown if the original string bundle did not have the key. ...
nsIUTF8ConverterService
intl/uconv/idl/nsIUTF8ConverterService.idlScriptable Please add a summary to this article. Inherits from: nsISupports Last changed in Gecko 1.7 Method overview AUTF8String convertStringToUTF8(in
ACString aString, in string aCharset, in boolean aSkipCheck); AUTF8String convertURISpecToUTF8(in
ACString aSpec, in string aCharset); Methods convertStringToUTF8() Ensure that aString is encoded in UTF-8. If not, convert to UTF-8 assuming it's encoded in aCharset and return the converted string in UTF-8. AUTF8String convertStringToUTF8( in
ACString aString, in string aCharset, in boolean aSkipCheck, in boolean aAllowSubstitution ); Parameters aString A string to ensure its UTF8ness. aCharset The charset to convert from if aString is not in UTF-...
...aracters outside US-ASCII in your input spec are url-escaped if your spec is not in UTF-8 (before url-escaping) because the presence of non-ASCII characters is blindly regarded as an indication that your input spec is in unescaped UTF-8 and it will be returned without further processing. No valid spec going around in Mozilla code would break this assumption. AUTF8String convertURISpecToUTF8( in
ACString aSpec, in string aCharset ); Parameters aSpec An url-escaped URI spec to ensure its UTF8ness. aCharset The character set to convert from if aSpec is not in UTF-8. Return value The converted spec in UTF-8. Exceptions thrown NS_ERROR_UCONV_NOCONV When there is no decoder for aCharset or error code of nsIUnicodeDecoder in case of conversion failure. ...
nsIUploadChannel
netwerk/base/public/nsIUploadChannel.idlScriptable A channel may optionally implement this interface if it supports the notion of uploading a data stream. The upload stream may only be set prior to the invocation of asyncOpen on the channel. Inherits from: nsISupports Last changed in Gecko 1.7 Method overview void setUploadStream(in nsIInputStream aStream, in
ACString aContentType, in long aContentLength); Attributes Attribute Type Description uploadStream nsIInputStream Get the stream (to be) uploaded by this channel. Read only. Methods setUploadStream() Sets a stream to be uploaded by this channel. Most implementations of this interface require that the stream: implement threadsafe addRef and release implement nsIInputStream.readSegments() implement nsISeekableStre...
...th streams that already have headers (for example, Content-Type and Content-Length) information prepended to the stream (by plugins) as well as clients (composer, uploading application) that want to upload data streams without any knowledge of protocol specifications. For this reason, we have a special meaning for the aContentType parameter. void setUploadStream( in nsIInputStream aStream, in
ACString aContentType, in long aContentLength ); Parameters aStream The stream to be uploaded by this channel. aContentType If aContentType is empty, the protocol will assume that no content headers are to be added to the uploaded stream and that any required headers are already encoded in the stream. In the case of HTTP, if this parameter is non-empty, then its value will replace any existing Content...
nsIUploadChannel2
netwerk/base/public/nsIUploadChannel2.idlScriptable Please add a summary to this article. 1.0 66 Introduced Gecko 1.9.2 Inherits from: nsISupports Last changed in Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0) Method overview void explicitSetUploadStream(in nsIInputStream aStream, in
ACString aContentType, in long long aContentLength, in
ACString aMethod, in boolean aStreamHasHeaders); Methods explicitSetUploadStream() Sets a stream to be uploaded by this channel with the specified Content-Type and Content-Length header values. Most implementations of this interface require that the stream: implement threadsafe addRef and release implement nsIInputStream.readSegments() implement nsISeekableStream.seek(). void explicitSetUploadStream( in nsIInpu...
...ers); Methods explicitSetUploadStream() Sets a stream to be uploaded by this channel with the specified Content-Type and Content-Length header values. Most implementations of this interface require that the stream: implement threadsafe addRef and release implement nsIInputStream.readSegments() implement nsISeekableStream.seek(). void explicitSetUploadStream( in nsIInputStream aStream, in
ACString aContentType, in long long aContentLength, in
ACString aMethod, in boolean aStreamHasHeaders ); Parameters aStream The stream to be uploaded by this channel. aContentType This value will replace any existing Content-Type header on the HTTP request, regardless of whether or not its empty. aContentLength A value of -1 indicates that the length of the stream should be determined by calling t...
nsIWebNavigationInfo
Note: This is guaranteed not to change, so that boolean tests can be done on the return value if isTypeSupported to detect whether a type is supported at all. IMAGE...
...d by the given nsIWebNavigation object. This lets you determine whether a MIME type can be displayed as-is inside a browser, or if the browser will instead forward handling of the data to a plug-in or an external helper application. Note: This method may cause plug-ins to be rescanned in order to ensure they are properly registered for the types they support. unsigned long isTypeSupported( in
ACString aType, in nsIWebNavigation aWebNav ); Parameters aType The MIME type to check. aWebNav The nsIWebNavigation object on which to check for compatibility. You may specify null to check for compatibility with nsIWebNavigation objects that are in their default state; otherwise, the result is determined based on the configuration of the specified object (that is, how it is configure...
nsIWebSocketListener
ceive WebSocket traffic events asynchronously after calling nsIWebSocketChannel.asyncOpen(). ...
...age sent via nsIWebSocketChannel.sendMsg() or nsIWebSocketChannel.sendBinaryMsg(). void onAcknowledge( in nsISupports aContext, in PRUint32 aSize ); Parameters aContext User defined context. aSize Number of bytes placed in OS send buffer. onBinaryMessageAvailable() Called when a binary message has been received. void onBinaryMessageAvailable( in nsISupports aContext, in
ACString aMsg ); Parameters aContext User defined context. aMsg The message data. onMessageAvailable() Called when a text message has been received. void onMessageAvailable( in nsISupports aContext, in AUTF8String aMsg ); Parameters aContext User defined context. aMsg The message data, as a UTF-8 string. onServerClose() Called when the server sends a close message...
NS_CStringCloneData
<< XPCOM API Reference Summary The NS_CStringCloneData function returns a null-terminated, heap allocated copy of the string's internal buffer. #include "nsStringAPI.h" char* NS_CStringCloneData( const ns
ACString& aString ); Parameters aString [in] A ns
ACString instance whose data is to be cloned. Return Values The NS_CStringCutData function returns a pointer to a null-terminated, heap allocated buffer on success. ...
... ); Parameters aString [in] A ns
ACString instance whose data is to be cloned. Return Values The NS_CStringCutData function returns a pointer to a null-terminated, heap allocated buffer on success. On failure it returns nsnull. The resulting buffer may be freed by calling nsMemory::Free. History This function was frozen for Mozilla 1.7. See bug 239716 for details. ...
NS_CStringContainerInit2
#include "nsStringAPI.h" nsresult NS_CStringContainerInit2( nsCStringContainer& aContainer, const char* aData = nsnull, PRUint32 aDataLength = PR_UINT32_MAX, PRUint32 aFlags = 0 ); Parameters aContainer [in] The nsCStringContainer instance to initialize. aData [in] An array of characters used to initialize the string object. This parameter may be null. aDataLength [in] An optional parameter that specifies the length of the array pointed to by aData. ...
...RING_CONTAINER_INIT_DEPEND. NS_CSTRING_CONTAINER_INIT_SUBSTRING Data passed into NS_CStringContainerInit2 is a substring that is not null-terminated. Return Values The NS_CStringContainerInit function returns NS_OK if successful. Otherwise, it returns an error code. Remarks After a nsCStringContainer object has been initialized via NS_CStringContainerInit2, it may be used as an ordinary ns
ACString object. When the string object is no longer needed, it should be passed to NS_CStringContainerFinish to free any extra memory that the string object may have allocated. It is generally better to use one of the helper classes, such as nsCString, instead of coding directly to NS_CStringContainerInit2 because those classes take care of cleaning up the string object when it goes out of scope. When NS...
NS_CStringGetMutableData
aDataLength [in] The number of characters to resize the string's internal buffer to or PR_UINT32_MAX to return the buffer as-is. aData [out] Upon return, if the function was successful, then *aData references the string's internal buffer. ...
...aDataLength [in] The number of characters to resize the string's internal buffer to or PR_UINT32_MAX to return the buffer as-is. aData [out] Upon return, if the function was successful, then *aData references the string's internal buffer. ...
Migrating from Internal Linkage to Frozen Linkage - Archive of obsolete content
**>(result)); Ideally we would switch to nsIMutableArray, but in the mean time there's no point changing the same code twice. Note: #include nsISupportsArray.h before nsMsgUtils.h Convenience methods that work using either API. MsgLowerCaseEqualsLiteral(a8, literal) Replaces (a8).LowerCaseEqualsLiteral(literal). Note that the external API provides LowerCaseEqualsLiteral for nsAString, but not ns
ACString. MsgRFindChar(str, ch, len) Replaces (str).RFindChar(ch, len) MsgCompressWhitespace(str) Replaces (str).CompressWhitespace(). Support for the optional parameters is not provided. MsgEscapeHTML(str) Replaces nsEscapeHTML(str) MsgEscapeHTML2(buffer, len) Replaces nsEscapeHTML2(buffer, len). Support for the other forms of nsEscapeHTML is not provided. ...
Layout FAQ - Archive of obsolete content
nd it by removing display:table in the style rule with the "#main" selector or adding clear:both to it. Why does move movement disappear when I use mouse events to click and drag? Since the dragging action is involved, you might need to disable it. Try using event.preventDefault() What is the purpose of the NS_LossyConvertUCS2toASCII() function? This function converts an nsAString to an ns
ACString by assuming that all the 16-bit units are ASCII and just dropping the high byte on them all. ...
String Quick Reference - Archive of obsolete content
declarations What: Use abstract classes instead of concrete classes when passing strings across function boundaries Why: using abstract classes allows the caller to choose the storage mechanism, allowing for possible sharing or more efficient handling of string fragments. ...
Debugging on Windows
; the following are not necessary in vc8 nsCOMPtr<*>=<mRawPtr,x> nsRefPtr=<mRawPtr,x> nsAutoPtr=<mRawPtr,x> After you have made the changes and saved the file, you will need to restart Visual C++ for the changes to take effect. For XPCOM Strings (the "external" string API) you can use the following values: ;; Mozilla (1.9) ; Internal Strings nsAString_internal=<mData,su>, length=<mLength,u> ns
ACString_internal=<mData,s>, length=<mLength,u> ; XPCOM Strings nsAString=<nsStringContainer.v,su>, length=<nsStringContainer.d1,u> ns
ACString=<nsCStringContainer.v,s>, length=<nsCStringContainer.d1,u> nsStringContainer=<v,su>, length=<d1,u> nsCStringContainer=<v,s>, length=<d1,u> There is a more extensive version of this file in progress in AutoExpForVC8. Avoiding stepping into certain functions You ...
Making cross-thread calls using runnables
back); Creating a runnable nsRunnable is a helper class: it already implements threadsafe refcounting, so all you need to do is override the Run() function. In our example, we actually need two runnables: one dispatched to the worker thread, and one to hand us back the result. ...
Detailed XPCOM hashtable guide
a Hash Function. This function converts the key into a semi-unique integer. The mozilla codebase already contains hash functions for most key types, including narrow and wide strings, pointers, and most binary data: void* (or nsISupports*) cast using NS_PTR_TO_INT32 char* string nsCRT::HashCode() PRUnichar* string nsAString HashString() ns
ACString nsID& nsIDHashKey::HashKey() Writing a good hash function is well beyond the scope of this document, and has been discussed extensively in computer-science circles for many years. There are many different types of hash functions. Mozilla has tuned a good general-purpose hash algorithm for strings and nsID. Original Document Information Author(s): Benjamin Smedberg <benjami...
Append
void Append( const char_type* aData, size_type aDataLength = PR_UINT32_MAX ); Parameters aData [in] A raw character array to append to this string. aDataLength [in] The length of aData, measured in storage units. If equal to PR_UINT32_MAX, then aData is assumed to be null-terminated. Otherwise, aData need not be null terminated. ...
Assign
void Assign( const char_type* aData, size_type aDataLength = PR_UINT32_MAX ); Parameters aData [in] A raw character array to copy into this string. aDataLength [in] The length of aData, measured in storage units. If equal to PR_UINT32_MAX, then aData is assumed to be null-terminated. Otherwise, aData need not be null terminated. ...
BeginReading
ng function returns a const pointer to the first element of the string's internal buffer. const char_type* BeginReading() const; Remarks The resulting character array is not necessarily null-terminated. The length of the array is determined by the result of the Length method. ...
Insert
aPosition [in] An offset into the string's internal buffer specifying where to place the given characters. void Insert( const char_type* aData, index_type aPosition, size_type aDataLength = PR_UINT32_MAX ); Parameters aData [in] A raw character array to append to this string. ...
Replace
API Reference Summary The Replace family of functions sets the value of a string's internal buffer. void Replace( index_type aCutStart, index_type aCutLength, const self_type& aString ); Parameters aCutStart [in] The starting index of the section to remove, measured in storage units. aCutLength [in] The length of the section to remove, measured in storage units. aString [in] A ns
ACString to append to this string. void Replace( index_type aCutStart, size_type aCutLength, const char_type* aData, size_type aDataLength = PR_UINT32_MAX ); Parameters aCutStart [in] The starting index of the section to remove, measured in storage units. aCutLength [in] The length of the section to remove, measured in storage units. aData [in] A raw character array to append to this st...
operator=
Return Values This operator returns a reference back to the object being modified to allow operator chaining. self_type& operator=( const char_type* aData ); Parameters aData [in] A raw character array to append to this string. Return Values This operator returns a reference back to the object being modified to allow operator chaining. ...
operator+=
Return Values This operator returns a reference back to the object being modified to allow operator chaining. self_type& operator+=( const char_type* aData ); Parameters aData [in] A raw character array to append to this string. Return Values This operator returns a reference back to the object being modified to allow operator chaining. ...
nsAString_internal
Class Declaration nsTSubstring is the most abstract class in the string hierarchy. It represents a single contiguous array of characters, which may or may not be null-terminated. This type is not instantiated directly. A sub-class is instantiated instead. For example, see nsTString. NAMES: nsAString for wide characters ns
ACString for narrow characters Many of the accessors on nsTSubstring are inlined as an optimization. <map id="classes" name="classes"> <area alt="" coords="415,5,553,53" href="http://developer.mozilla.org/en/nsAString_internal" shape="rect" title="nsAString_internal"> <area alt="" coords="379,101,451,149" href="http://developer.mozilla.org/en/nsString" shape="rect" title="nsString"> <area alt="" coords="475,101,635,149" href="http://developer.mozilla.org/en/nsDepende...
nsEmbedCString
<< XPCOM API Reference Summary Constructors for nsEmbedCString. nsEmbedCString(); explicit nsEmbedCString( const self_type& aString ); Parameters aString [in] A nsEmbedCString to copy into this string. nsEmbedCString( const abstract_string_type& aAbstractString ); Parameters aAbstractString [in] A ns
ACString to copy into this string. explicit nsEmbedCString( const abstract_string_type& aAbstractString ); Parameters aAbstractString [in] A ns
ACString to copy into this string. explicit nsEmbedCString( const char_type* aData, size_type aDataLength = PR_UINT32_MAX ); Parameters aData [in] A raw character array to copy into this string. aDataLength [in] The length of aData, measured in storage units. If equal to PR_UINT32_MAX, then aData is assumed to...
nsICacheEntryInfo
associated with this cache entry. Read only. dataSize unsigned long Get the cache entry data size. Read only. deviceID string Get the id for the device that stores this cache entry. Read only. expirationTime PRUint32 Get the expiration time of the cache entry (in seconds since the Epoch). Read only. fetchCount long Get the number of times the cache entry has been opened. Read only. key
ACString Get the key identifying the cache entry. Read only. lastFetched PRUint32 Get the last time the cache entry was opened (in seconds since the Epoch). Read only. lastModified PRUint32 Get the last time the cache entry was modified (in seconds since the Epoch). Read only. Methods isStreamBased() This method finds out whether or not the cache entry is stream based. boolean isStreamBased(); Par...
nsICachingChannel
instance of nsICachingChannel provided the underlying implementations are compatible. The implementation of nsICachingChannel would be expected to only read from the cache entry identified by the cache token and not try to validate it. The cache token can be QueryInterface'd to a nsICacheEntryInfo if more detail about the cache entry is needed. For example, expiration time. offlineCacheClientID
ACString The session into which to cache offline data. If not specified, data will be placed in "HTTP-offline". offlineCacheToken nsISupports The same as cacheToken but accessing the offline app cache token if there is any. Exceptions thrown NS_ERROR_NOT_AVAILABLE When there is not offline cache token. Constants Constant Value Description LOAD_NO_NETWORK_IO 1 << 26 This load flag inhibits ...
nsICookie
1, 1970 UTC. expires = 0 represents a session cookie. expires = 1 represents an expiration time earlier than Jan 1, 1970. Read only. host AUTF8String The host (possibly fully qualified) of the cookie. Read only. isDomain boolean true if the cookie is a domain cookie, false otherwise. Read only. isSecure boolean true if the cookie was transmitted over ssl, false otherwise. Read only. name
ACString The name of the cookie. Read only. path AUTF8String The path pertaining to the cookie. Read only. policy nsCookiePolicy Holds the sites compact policy value. Read only. status nsCookieStatus Holds the P3P status of cookie. Read only. value
ACString The cookie value. Read only. Constants Constant Value Description STATUS_UNKNOWN 0 The cookie collected in a previous session, and its...
nsIDataSignatureVerifier
security/manager/ssl/public/nsIDataSignatureVerifier.idlScriptable An interface for verifying that a given string of data was signed by the private key matching the given public key. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) Method overview boolean verifyData(in
ACString aData, in
ACString aSignature, in
ACString aPublicKey); Methods verifyData() Verifies that the data matches the data that was used to generate the signature. boolean verifyData( in
ACString aData, in
ACString aSignature, in
ACString aPublicKey ); Parameters aData The data to be tested. aSignature The signature of the data, base64 encoded. aPublicKey The public part of the key used for signing, DER encoded then base64 encoded. Return...
nsIHttpHeaderVisitor
netwerk/protocol/http/nsIHttpHeaderVisitor.idlScriptable This interface is used to view HTTP request and response headers. Inherits from: nsISupports Last changed in Gecko 1.7 Method overview void visitHeader(in
ACString aHeader, in
ACString aValue); Methods visitHeader() Called by the nsIHttpChannel implementation when visiting request and response headers. This method can throw an exception to terminate enumeration of the channel's headers. void visitHeader( in
ACString aHeader, in
ACString aValue ); Parameters aHeader A string containing the key for a header such as "Content-Type" aValue The header's value field such as "text/html". Multiple values are separated by a comma. Example This example shows how to detect Flash content. It implements ...
nsIMemoryReporter
mory reporter kind constants below. Read only. path AUTF8String The path that this memory usage should be reported under. Paths are delimited with '/' characters to allow a hierarchy of memory to be displayed in about:memory. As of Gecko 6.0, the path should start with "explicit/" if the memory report accounts for all memory reported under sub-paths. Read only. process
ACString The name of the process containing this reporter. Each reporter starts with an empty string for this value, indicating that it applies to the current process; this is true even for reporters in a child process. When a reporter from a child process is copied into the main process, the copy's process field is set appropriately. Read only. units PRInt32 The units used by the amoun...
nsIMsgAccount
void addIdentity(in nsIMsgIdentity identity); void clearAllValues(); void init(); void removeIdentity(in nsIMsgIdentity identity); AString toString(); Attributes Attribute Type Description defaultIdentity nsIMsgIdentity identities nsISupportsArray Read only. Outgoing identity list (array of nsIMsgIdentity's) incomingServer nsIMsgIncomingServer Incoming server stuff key
ACString Internal key identifying itself Methods addIdentity() Adds a new identity to this account. void addIdentity( in nsIMsgIdentity identity ); Parameters identity The identity to add. clearAllValues() Clear all user preferences associated with an account. void clearAllValues(); Parameters None. init() Initializes an account. void init(); Parameters None. Exceptions thrown NS_ERROR_ALREAD...
nsIMsgAccountManagerExtension
act ID of the component to the "mailnews-accountmanager-extensions" category. //github.com/RealityRipple/UXP/blob/master/mailnews/base/public/nsIMsgAccountManager.idlScriptable Please add a summary to this article. Last changed in Gecko ??? Inherits from: nsISupports Method overview boolean showPanel(in nsIMsgIncomingServer server); Attributes Attribute Type Description name
ACString name of the account manager extension. It has to be unique and defines the file name of the property file and the XUL Page as well as the name of the localized string contained in the property file. This attribute is readonly! chromePackageName
ACString chrome package, where the files for the new panel are located. This is usually GUID of the ID of the addons which adds the new Panel. This attr...
nsIMsgDBViewCommandUpdater
m: nsISupports In Thunderbird this is implemented for different windows in several different places: nsMsgDBViewCommandUpdater (for the standalone message window) nsMsgDBViewCommandUpdater (for the threadpane message window) nsMsgSearchCommandUpdater (for search dialogs) Method overview void updateCommandStatus(); void displayMessageChanged(in nsIMsgFolder aFolder, in AString aSubject, in
ACString aKeywords); void updateNextMessageAfterDelete(); Methods updateCommandStatus() Called when the number of selected items changes. void updateCommandStatus(); Parameters None. displayMessageChanged() Called when the displayed message has changed. void displayMessageChanged(in nsIMsgFolder aFolder, in AString aSubject, in
ACString aKeywords ); Parameters aFolder The folder contain...
nsIMsgSearchCustomTerm
h/ public/ nsIMsgSearchCustomTerm.idl Attributes id /** * globally unique string to identify this search term. * recommended form: ExtensionName@example.com#TermName * Commas and quotes are not allowed, the id must not * parse to an integer, and names of standard search * attributes in SearchAttribEntryTable in nsMsgSearchTerm.cpp * are not allowed. */ readonly attribute
ACString id; name /// name to display in term list. This should be localized. */ readonly attribute AString name; needsBody /// Does this term need the message body? readonly attribute boolean needsBody; Methods getEnabled /** * Is this custom term enabled? * * @param scope search scope (nsMsgSearchScope) * @param op search operator (nsMsgSearchOp). If null, det...
nsIMsgThread
uncer announcer); void markChildRead(in boolean bRead); nsIMsgDBHdr getFirstUnreadChild(); nsISimpleEnumerator enumerateMessages(in nsMsgKey parent); Attributes Attribute Type Description threadKey nsMsgKey unsigned long key designating this thread. flags unsigned long Flags attached to the thread. subject
ACString Subject of the thread newestMsgDate unsigned long numChildren unsigned long Readonly: Number of messages in the thread. numUnreadChildren unsigned long Readonly: Number of unread messages in the thread. Methods addChild() Add a message to the thread. void addChild(in nsIMsgDBHdr child, in nsIMsgDBHdr inReplyTo, ...
nsIMsgWindow
store this in a global variable. notificationCallbacks nsIInterfaceRequestor These are currently used to set notification callbacks on protocol channels to handle things like bad cert exceptions. promptDialog nsIPrompt Readonly: This is the equivalent of calling GetInterface on the rootDocShell object. mailCharacterSet
ACString This is used to track the character set of the currently displayed message. If set to an alias, the actual character set is returned. charsetOverride boolean Remember the message's charset was overridden, so it can be inherited (e.g for quoting). stopped boolean Check if a running url been stopped. If you are checking this flag, you ne...
nsIPermission
n 1 0:00:00. Read only. expireType PRUint32 The expiration type of the permission: on session termination, on a specified time, or never. Constants are defined in nsIPermissionManager.Permission_expiration_constants. Read only. host AUTF8String The host, that is URI, on which the permission is applied. Read only. type
ACString The type of permission: cookie, image, and so on. This is a case-sensitive string. This string is specified by the consumer when adding a permission via nsIPermissionManager Read only. ...
nsIProtocolHandler
tocolFlags unsigned long Protocol-specific flags. Read only. Note: Starting with Firefox 3, one of URI_LOADABLE_BY_ANYONE, URI_DANGEROUS_TO_LOAD, URI_IS_UI_RESOURCE, or URI_IS_LOCAL_FILE must be set on every protocol handler. Current versions of Firefox assume that the URI has URI_LOADABLE_BY_ANYONE set, but this will not work starting with the Mozilla 2 platform. scheme
ACString The scheme for this protocol ("file", "http", and so forth). Read only. Constants Constant Value Description URI_STD 0 A standard full URI with authority component and understanding relative URIs; this includes http and ftp, for example. URI_NORELATIVE 1<<0 The protocol doesn't support relative URIs (for example, about and javascript). ...
nsIProxyInfo
nsIProxyInfo Proxy info objects may be chained if several proxies could be treated equivalently. This is used to support proxy failover. Read only. Obsolete since Gecko 1.8 port long This attribute specifies the port number of the proxy server. Read only. Note: Prior to Gecko 1.8 port was available by the port method. type
ACString This attribute specifies the type of the proxy server as a case insensitive ASCII string. Some special values for this attribute include (but are not limited to) the following: "http" - HTTP proxy (or SSL CONNECT for HTTPS) "socks" - SOCKS v5 proxy "socks4" - SOCKS v4 proxy "direct" - no proxy "unknown" - unknown pr...
nsISupportsCString
xpcom/ds/nsISupportsPrimitives.idlScriptable This interface provides scriptable access for ASCII character strings. Inherits from: nsISupportsPrimitive Last changed in Gecko 1.2 Method overview string toString(); Attributes Attribute Type Description data
ACString Provides access to the native type represented by the object. Methods toString() This methods returns a string valued representation of the object. string toString(); Parameters None. Return value A string valued representation of the object. Remarks This interface was frozen for Gecko 1.2. See bug 166426 for details. From Gecko 2.0 interfaces are no longer frozen. ...
nsITextInputProcessorNotification
Last changed in Gecko 38.0 (Firefox 38.0 / Thunderbird 38.0 / SeaMonkey 2.35) This interface tells details of a request or notification to IME. When Gecko supports new notification to IME, this interface may have some new attributes. So, nsITextInputProcessorCallback won't be changed for keeping backward compatibility. Attributes Attribute Type Description type
ACString The type of request or notification to IME. See type values below. Types "request-to-commit" This is required to be handled. When this is requested, the callback should commit composition synchronously, i.e., nsITextInputProcessor.commitComposition() should be called. If the callback doesn't want to commit the composition synchronously, it's okay to commit it later (i.e., asynchrono...
nsIUrlListManagerCallback
toolkit/components/url-classifier/public/nsIUrlListManager.idlScriptable Interface for a class that manages updates of the url classifier database. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Method overview void handleEvent(in
ACString value); Methods handleEvent() void handleEvent( in
ACString value ); Parameters value ...
nsIVersionComparator
< 1.1pre10 Implemented by: @mozilla.org/xpcom/version-comparator;1. The service can be accessed directly via Services.vc after loading Services.jsm or with the following code: var versionComparator = Components.classes["@mozilla.org/xpcom/version-comparator;1"] .getService(Components.interfaces.nsIVersionComparator); Method overview long compare(in
ACString A, in
ACString B); Methods compare() Compare two version strings. long compare( in
ACString A, in
ACString B ); Parameters A The first version. B The second version. Return value If A and B are two version being compared, and the return value is smaller than 0, then A < B equals 0 then Version, then A==B is bigger than 0, then A > B Example function compareVersio...
nsIWifiAccessPoint
netwerk/wifi/nsIWifiAccessPoint.idlScriptable This interface provides information about a single access point. 1.0 66 Introduced Gecko 1.9.1 Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0) Attributes Attribute Type Description mac
ACString The WiFi access point's MAC address. This string is in the format "XX-XX-XX-XX-XX-XX". Read only. rawSSID
ACString The public name of the wireless network, as an ASCII string. This string is null if not available. Read only. Note: This string consists of the bytes as received from the network and may contain nulls and other unprintable characters; if you need to display the SSID, use the ssid attribute instead. signal long The current signal strength in dBm. Read ...
nsIZipWriter
Exceptions thrown NS_ERROR_NOT_INITIALIZED If no zip file has been opened. file nsIFile The Zip file being written to. Read only. inQueue boolean true if operations are being performed in the background queue, or false if background operations are not in progress. Re...
NS_StringCopy
ring instance containing the new string value. Return Values The NS_StringCopy function returns NS_OK if successful. Otherwise, it returns an error code. Remarks This function is designed to allow the implementation to efficiently assign the same value to two string objects. The implementation may employ reference counting techniques to optimize this operation. Example Code /* attribute
ACString value; */ NS_IMETHODIMP MyComponent::GetValue(nsAString& aValue) { return NS_StringCopy(aValue, mValue); } NS_IMETHODIMP MyComponent::SetValue(const nsAString& aValue) { return NS_StringCopy(mValue, aValue); } History This function was frozen for Mozilla 1.7. See bug 239123 for details. See Also nsAString ...