Menu
Home
Blog
Add-ons
Forum
Wiki
Developers
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
extensions
unity-integration
components
src
UnityProxyModule.cpp
Go to the documentation of this file.
1
#include "nsIGenericFactory.h"
2
#include "
UnityProxy.h
"
3
4
// Create the constructor (factory) of our component. this macro
5
// creates a static function named <ArgumentName>Constructor, in our case
6
// UnityProxyConstructor, which is then used in the structure of the components.
7
NS_GENERIC_FACTORY_CONSTRUCTOR
(
UnityProxy
)
8
9
// Structure containing module info
10
static nsModuleComponentInfo
components
[] =
11
{
12
{
13
UNITY_PROXY_CLASSNAME
,
14
UNITY_PROXY_CID
,
15
UNITY_PROXY_CONTRACTID
,
16
UnityProxyConstructor,
17
}
18
};
19
20
// Create an entry point to the required nsIModule interface
21
NS_IMPL_NSGETMODULE
(
"UnityProxyModule"
,
components
)
UnityProxy.h
components
static nsModuleComponentInfo components[]
Definition:
UnityProxyModule.cpp:10
UNITY_PROXY_CONTRACTID
#define UNITY_PROXY_CONTRACTID
Definition:
UnityProxy.h:9
UNITY_PROXY_CLASSNAME
#define UNITY_PROXY_CLASSNAME
Definition:
UnityProxy.h:10
UNITY_PROXY_CID
#define UNITY_PROXY_CID
Definition:
UnityProxy.h:13
NS_IMPL_NSGETMODULE
NS_IMPL_NSGETMODULE(SongbirdIdentityServiceComponent, sbIdentityServiceComponent)
UnityProxy
Definition:
UnityProxy.h:15
NS_GENERIC_FACTORY_CONSTRUCTOR
NS_GENERIC_FACTORY_CONSTRUCTOR(sbMediaSniffer)