Preface
- Who Should Read This Book 이 문서가 필요한 사람
- Organization of the Tutorial 튜토리얼 구조
- Following Along with the Examples 예제 따라하기
- Conventions
- Acknowledgements
An Overview of XPCOM
- The XPCOM Solution
- Gecko
- Components
- Interfaces
- XPCOM Identifiers
- Factories
- XPCOM Services
- XPCOM Types
Using XPCOM Components
Component Internals
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
Using XPCOM Utilities to Make Things Easier
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
iWebLock
Interface - The Directory Service
-
Modifying Paths with
nsIFile
-
Manipulating Files with
nsIFile
-
Using
nsILocalFile
for Reading Data - Processing the White List Data
-
iWebLock
Method By Method
Finishing the Component
Building the WebLock UI
- User Interface Package List
- Client Code Overview
- XUL
- Overlaying New User Interface Into Mozilla
- Other Resources
Packaging WebLock
- Component Installation Overview
- Archiving Resources
- The WebLock Installation Script
- The WebLock Trigger Script
- Distributing Your Component