sbIDeviceInfoRegistrar.idl File Reference
#include "nsISupports.idl"
#include "nsCOMPtr.h"
#include "nsIComponentManager.h"
#include "nsICategoryManager.h"
#include "nsIServiceManager.h"
#include "nsStringGlue.h"
#include "nsXPCOMCID.h"
Include dependency graph for sbIDeviceInfoRegistrar.idl:

Go to the source code of this file.

Classes

interface  sbIDeviceInfoRegistrar
 

Macros

#define SB_DEVICE_INFO_REGISTRAR_CATEGORY   "songbird-device-info-registrar"
 
#define SB_DEVICE_INFO_REGISTRAR_REGISTERSELF(_name)
 
#define SB_DEVICE_INFO_REGISTRAR_REGISTERSELF_IMPL(_name, _desc)
 

Macro Definition Documentation

#define SB_DEVICE_INFO_REGISTRAR_CATEGORY   "songbird-device-info-registrar"

Definition at line 191 of file sbIDeviceInfoRegistrar.idl.

#define SB_DEVICE_INFO_REGISTRAR_REGISTERSELF (   _name)
Value:
\
NS_METHOD _name##RegisterSelf(nsIComponentManager* aCompMgr, \
nsIFile* aPath, \
const char* registryLocation, \
const char* componentType, \
const nsModuleComponentInfo* info); \
\
NS_METHOD _name##UnregisterSelf(nsIComponentManager* aCompMgr, \
nsIFile* aPath, \
const char* registryLocation, \
const nsModuleComponentInfo* info)
_updateCookies aPath

Put this in your module definition file. Give your class name. Then your moduleInfo should look something like this:

NS_GENERIC_FACTORY_CONSTRUCTOR(sbSampleInfoRegistrar); SB_DEVICE_INFO_REGISTRAR_REGISTERSELF(sbSampleInfoRegistrar);

static nsModuleComponentInfo components[] = { { CLASSNAME, CID, CONTRACTID, sbSampleInfoRegistrarConstructor, sbSampleInfoRegistrarRegisterSelf, sbSampleInfoRegistrarUnregisterSelf } };

NS_IMPL_NSGETMODULE(SampleController, components)

Definition at line 215 of file sbIDeviceInfoRegistrar.idl.

#define SB_DEVICE_INFO_REGISTRAR_REGISTERSELF_IMPL (   _name,
  _desc 
)

Stick this in your implementation file. Give your class name.

Definition at line 231 of file sbIDeviceInfoRegistrar.idl.