Confirmed users
656
edits
| Line 174: | Line 174: | ||
Thus far we've looked at how the [http://hg.mozilla.org/mozilla-central/file/0cd41f599080/xpcom/io/nsILocalFile.idl nsILocalFile.idl] interface is defined, and seen what happens when it gets translated into [[Education/Learning/UnderstandingXpcomFiles/nsILocalFile.h|nsILocalFile.h]]. | Thus far we've looked at how the [http://hg.mozilla.org/mozilla-central/file/0cd41f599080/xpcom/io/nsILocalFile.idl nsILocalFile.idl] interface is defined, and seen what happens when it gets translated into [[Education/Learning/UnderstandingXpcomFiles/nsILocalFile.h|nsILocalFile.h]]. | ||
Now it's time to look for an implementation of this interface. The relevant files are [http://hg.mozilla.org/mozilla-central/file/0cd41f599080/xpcom/io/nsLocalFile.h nsLocalFile.h] and [http://hg.mozilla.org/mozilla-central/file/0cd41f599080/xpcom/io/nsLocalFileCommon.cpp nsLocalFileCommon.cpp]. | Now it's time to look for an implementation of this interface. The relevant files are [http://hg.mozilla.org/mozilla-central/file/0cd41f599080/xpcom/io/nsLocalFile.h nsLocalFile.h] and [http://hg.mozilla.org/mozilla-central/file/0cd41f599080/xpcom/io/nsLocalFileCommon.cpp nsLocalFileCommon.cpp] (note: there are 4 platform-specific files we'll also discuss in a moment). | ||
[http://hg.mozilla.org/mozilla-central/file/0cd41f599080/xpcom/io/nsLocalFile.h nsLocalFile.h] takes care of | [http://hg.mozilla.org/mozilla-central/file/0cd41f599080/xpcom/io/nsLocalFile.h nsLocalFile.h] takes care of including our interface (i.e., the generated header file), and also figures out which platform specific header to include for the implementation: | ||
71 #include "nsILocalFile.h" | 71 #include "nsILocalFile.h" | ||