Category:XPCOM example code: Difference between revisions
From MozillaZine Knowledge Base
Jump to navigationJump to search
(update nsIPromptService link) |
(upd link) |
||
Line 5: | Line 5: | ||
* [[File IO]] covers <code>nsIFile</code>, <code>nsILocalFile</code> and related interfaces, including a few examples on <code>nsIFileOutputStream</code>, <code>nsIFileInputStream</code>, <code>nsIScriptableInputStream</code>, <code>nsILineInputStream</code> and more. | * [[File IO]] covers <code>nsIFile</code>, <code>nsILocalFile</code> and related interfaces, including a few examples on <code>nsIFileOutputStream</code>, <code>nsIFileInputStream</code>, <code>nsIScriptableInputStream</code>, <code>nsILineInputStream</code> and more. | ||
* [[Progress listeners]] explains how one should go about implementing <code>nsIWebProgressListener</code> interface. | * [[Progress listeners]] explains how one should go about implementing <code>nsIWebProgressListener</code> interface. | ||
* [ | * [http://developer.mozilla.org/en/docs/Code_snippets:Running_applications Running applications] includes examples on <code>nsILocalFile.launch()</code> and <code>nsIProcess</code>. | ||
* [[Using observers]] explains using <code>nsIObserverService</code> and <code>nsIObserver</code>. | * [[Using observers]] explains using <code>nsIObserverService</code> and <code>nsIObserver</code>. | ||
* [[Dev : Using preferences]] covers <code>nsIPrefService</code>, <code>nsIPrefBranch</code> and <code>nsIPrefBranchInternal</code>/<code>nsIPrefBranch2</code> and <code>nsIPrefLocalizedString</code>. | * [[Dev : Using preferences]] covers <code>nsIPrefService</code>, <code>nsIPrefBranch</code> and <code>nsIPrefBranchInternal</code>/<code>nsIPrefBranch2</code> and <code>nsIPrefLocalizedString</code>. |
Revision as of 14:16, 9 November 2006
- Up to Example code
Articles explaining how to use certain XPCOM components.
- File IO covers
nsIFile
,nsILocalFile
and related interfaces, including a few examples onnsIFileOutputStream
,nsIFileInputStream
,nsIScriptableInputStream
,nsILineInputStream
and more. - Progress listeners explains how one should go about implementing
nsIWebProgressListener
interface. - Running applications includes examples on
nsILocalFile.launch()
andnsIProcess
. - Using observers explains using
nsIObserverService
andnsIObserver
. - Dev : Using preferences covers
nsIPrefService
,nsIPrefBranch
andnsIPrefBranchInternal
/nsIPrefBranch2
andnsIPrefLocalizedString
. - nsIFilePicker is used to invoke standard Open File / Save File / Select folder dialogs.
- nsIWindowMediator - used to retrieve information about open windows
- Prompt service -
nsIPromptService
is used to open simple dialogs.
Below is the alphabetic listing of articles in this category, generated automatically.
This category currently contains no pages or media.