sbIDeviceController.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 sbIDeviceController.idl:

Go to the source code of this file.

Classes

interface  sbIDeviceController
 [UNIMPLEMENTED UNTIL AFTER 0.3] More...
 

Macros

#define SB_DEVICE_CONTROLLER_CATEGORY   "songbird-device-controller"
 
#define SB_DEVICE_CONTROLLER_REGISTERSELF(_name)
 
#define SB_DEVICE_CONTROLLER_REGISTERSELF_IMPL(_name, _desc)
 

Macro Definition Documentation

#define SB_DEVICE_CONTROLLER_CATEGORY   "songbird-device-controller"

Definition at line 114 of file sbIDeviceController.idl.

#define SB_DEVICE_CONTROLLER_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(sbSampleController); SB_DEVICE_CONTROLLER_REGISTERSELF(sbSampleController);

static nsModuleComponentInfo components[] = { { CLASSNAME, CID, CONTRACTID, sbSampleControllerConstructor, sbSampleControllerRegisterSelf, sbSampleControllerUnregisterSelf } };

NS_IMPL_NSGETMODULE(SampleController, components)

Definition at line 137 of file sbIDeviceController.idl.

#define SB_DEVICE_CONTROLLER_REGISTERSELF_IMPL (   _name,
  _desc 
)

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

Definition at line 153 of file sbIDeviceController.idl.