Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsPalmSyncSupport.cpp File Reference
#include "nsCOMPtr.h"
#include "objbase.h"
#include "nsISupports.h"
#include "nsIGenericFactory.h"
#include "nsIObserverService.h"
#include "nsIAppStartupNotifier.h"
#include "nsIServiceManager.h"
#include "nsIComponentManager.h"
#include "nsICategoryManager.h"
#include "nsCRT.h"
#include "nsIFile.h"
#include "nsILocalFile.h"
#include "nsIPrefBranch.h"
#include "nsIPrefService.h"
#include "PalmSyncImp.h"
#include "nsPalmSyncSupport.h"
#include "Registry.h"
#include <shellapi.h>

Go to the source code of this file.

Defines

#define EXTENSION_ID   "p@m"
#define EXECUTABLE_FILENAME   "PalmSyncInstall.exe"
#define PREF_CONDUIT_REGISTERED   "extensions.palmsync.conduitRegistered"

Functions

static NS_METHOD nsPalmSyncRegistrationProc (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const char *componentType, const nsModuleComponentInfo *info)
 Implementation of the IPalmSyncSupport interface.
static NS_METHOD nsPalmSyncUnRegistrationProc (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *registryLocation, const nsModuleComponentInfo *info)

Variables

static const nsModuleComponentInfo components []

Define Documentation

#define EXECUTABLE_FILENAME   "PalmSyncInstall.exe"

Definition at line 62 of file nsPalmSyncSupport.cpp.

#define EXTENSION_ID   "p@m"

Definition at line 61 of file nsPalmSyncSupport.cpp.

#define PREF_CONDUIT_REGISTERED   "extensions.palmsync.conduitRegistered"

Definition at line 63 of file nsPalmSyncSupport.cpp.


Function Documentation

static NS_METHOD nsPalmSyncRegistrationProc ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const char *  componentType,
const nsModuleComponentInfo info 
) [static]

Implementation of the IPalmSyncSupport interface.

Use standard implementation of nsISupports stuff. This also implements the Observors for App Startup at which time it will register the MSCOM interface for PalmSync used for IPC with the Palm Conduits

Definition at line 76 of file nsPalmSyncSupport.cpp.

{  
    nsresult rv;
    nsCOMPtr<nsICategoryManager> categoryManager(do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv));
    if (NS_SUCCEEDED(rv)) 
        rv = categoryManager->AddCategoryEntry(APPSTARTUP_CATEGORY, "PalmSync Support", 
                    "service," NS_IPALMSYNCSUPPORT_CONTRACTID, PR_TRUE, PR_TRUE, nsnull);
    return rv ;
}

Here is the call graph for this function:

static NS_METHOD nsPalmSyncUnRegistrationProc ( nsIComponentManager aCompMgr,
nsIFile aPath,
const char *  registryLocation,
const nsModuleComponentInfo info 
) [static]

Definition at line 88 of file nsPalmSyncSupport.cpp.

{    
    nsresult rv;
    nsCOMPtr<nsICategoryManager> categoryManager(do_GetService(NS_CATEGORYMANAGER_CONTRACTID, &rv));
    if (NS_SUCCEEDED(rv)) 
        rv = categoryManager->DeleteCategoryEntry(APPSTARTUP_CATEGORY, "PalmSync Support", PR_TRUE);
 
    return rv;
}

Here is the call graph for this function:


Variable Documentation

Initial value:

Definition at line 284 of file nsPalmSyncSupport.cpp.