Creating XPCOM Components
From MDC
Next »
[edit] Preface
- Who Should Read This Book
- Organization of the Tutorial
- Following Along with the Examples
- Conventions
- Acknowledgements
[edit] An Overview of XPCOM
- The XPCOM Solution
- Gecko
- Components
- Interfaces
- XPCOM Identifiers
- Factories
- XPCOM Services
- XPCOM Types
[edit] Using XPCOM Components
[edit] Component Internals
[edit] Creating the Component Code
- What We'll Be Working On
- Component Registration
- Overview of the WebLock Module Source
- Digging In: Required Includes and Constants
-
webLock1.cpp
[edit] Using XPCOM Utilities to Make Things Easier
[edit] Starting WebLock
- Getting Called at Startup
- Providing Access to WebLock
- Creating the WebLock Programming Interface
- Defining the WebLock Interface in XPIDL
- Implementing WebLock
- Declaration Macros
- Representing Return Values in XPCOM
- XPIDL Code Generation
- Getting the WebLock Service from a Client
- Implementing the
iWebLockInterface - The Directory Service
- Modifying Paths with
nsIFile - Manipulating Files with
nsIFile - Using
nsILocalFilefor Reading Data - Processing the White List Data
-
iWebLockMethod By Method
[edit] Finishing the Component
[edit] Building the WebLock UI
- User Interface Package List
- Client Code Overview
- XUL
- Overlaying New User Interface Into Mozilla
- Other Resources
[edit] Packaging WebLock
- Component Installation Overview
- Archiving Resources
- The WebLock Installation Script
- The WebLock Trigger Script
- Distributing Your Component
[edit] Appendix A - Setting up the Gecko SDK
[edit] Appendix B - Resources
Next »
Copyright (c) 2003 by Doug Turner and Ian Oeschger. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.02 or later. Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. Distribution of the work or derivative of the work in any standard (paper) book form is prohibited unless prior permission is obtained from the copyright holder.