Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations | Functions
nsSystemPrefService.cpp File Reference
#include <glib.h>
#include <glib-object.h>
#include "plstr.h"
#include "nsCOMPtr.h"
#include "nsIPref.h"
#include "nsIServiceManager.h"
#include "nsIObserver.h"
#include "nsWeakReference.h"
#include "nsString.h"
#include "nsSystemPrefLog.h"
#include "nsSystemPrefService.h"
#include "gconf_pref_list.inc"

Go to the source code of this file.

Classes

struct  GConfValue
struct  GConfCallbackData
class  GConfProxy
struct  SysPrefCallbackData
struct  GConfFuncListType
struct  PrefNamePair

Defines

#define GCONF_FUNCS_POINTER_BEGIN   static GConfFuncListType sGConfFuncList[] = {
#define GCONF_FUNCS_POINTER_ADD(func_name)   {func_name, nsnull},
#define GCONF_FUNCS_POINTER_END   {nsnull, nsnull}, };

Typedefs

typedef void *(* GConfClientGetDefaultType )(void)
typedef PRBool(* GConfClientGetBoolType )(void *client, const gchar *key, GError **err)
typedef gchar *(* GConfClientGetStringType )(void *client, const gchar *key, GError **err)
typedef PRInt32(* GConfClientGetIntType )(void *client, const gchar *key, GError **err)
typedef void(* GConfClientNotifyFuncType )(void *client, guint cnxn_id, void *entry, gpointer user_data)
typedef guint(* GConfClientNotifyAddType )(void *client, const gchar *namespace_section, GConfClientNotifyFuncType func, gpointer user_data, GFreeFunc destroy_notify, GError **err)
typedef void(* GConfClientNotifyRemoveType )(void *client, guint cnxn)
typedef void(* GConfClientAddDirType )(void *client, const gchar *dir, guint8 preload, GError **err)
typedef void(* GConfClientRemoveDirType )(void *client, const gchar *dir, GError **err)
typedef const char *(* GConfEntryGetKeyType )(const void *entry)
typedef GConfValue *(* GConfEntryGetValueType )(const void *entry)
typedef const char *(* GConfValueGetStringType )(const GConfValue *value)
typedef PRInt32(* GConfValueGetIntType )(const GConfValue *value)
typedef PRBool(* GConfValueGetBoolType )(const GConfValue *value)

Enumerations

enum  GConfValueType {
  GCONF_VALUE_INVALID, GCONF_VALUE_STRING, GCONF_VALUE_INT, GCONF_VALUE_FLOAT,
  GCONF_VALUE_BOOL, GCONF_VALUE_SCHEMA, GCONF_VALUE_LIST, GCONF_VALUE_PAIR
}

Functions

static void gconf_key_listener (void *client, guint cnxn_id, void *entry, gpointer user_data)
PRBool PR_CALLBACK sysPrefDeleteObserver (void *aElement, void *aData)
GCONF_FUNCS_POINTER_BEGIN GCONF_FUNCS_POINTER_ADD ("gconf_client_get_default") GCONF_FUNCS_POINTER_ADD("gconf_client_get_bool") GCONF_FUNCS_POINTER_ADD("gconf_client_get_string") GCONF_FUNCS_POINTER_ADD("gconf_client_get_int") GCONF_FUNCS_POINTER_ADD("gconf_client_notify_add") GCONF_FUNCS_POINTER_ADD("gconf_client_notify_remove") GCONF_FUNCS_POINTER_ADD("gconf_client_add_dir") GCONF_FUNCS_POINTER_ADD("gconf_client_remove_dir") GCONF_FUNCS_POINTER_ADD("gconf_entry_get_value") GCONF_FUNCS_POINTER_ADD("gconf_entry_get_key") GCONF_FUNCS_POINTER_ADD("gconf_value_get_bool") GCONF_FUNCS_POINTER_ADD("gconf_value_get_string") GCONF_FUNCS_POINTER_ADD("gconf_value_get_int") GCONF_FUNCS_POINTER_ENDstatic const PrefNamePair sPrefNameMapping[]
PRBool PR_CALLBACK gconfDeleteObserver (void *aElement, void *aData)

Class Documentation

struct GConfValue

Definition at line 79 of file nsSystemPrefService.cpp.

Class Members
GConfValueType type
struct GConfCallbackData

Definition at line 121 of file nsSystemPrefService.cpp.

Collaboration diagram for GConfCallbackData:
Class Members
PRUint32 atom
PRUint32 notifyId
GConfProxy * proxy
void * userData
struct SysPrefCallbackData

Definition at line 202 of file nsSystemPrefService.cpp.

Collaboration diagram for SysPrefCallbackData:
Class Members
PRBool bIsWeakRef
nsISupports * observer
PRUint32 prefAtom
struct GConfFuncListType

Definition at line 530 of file nsSystemPrefService.cpp.

Class Members
const char * FuncName
PRFuncPtr FuncPtr
struct PrefNamePair

Definition at line 535 of file nsSystemPrefService.cpp.

Class Members
const char * gconfPrefName
const char * mozPrefName

Define Documentation

#define GCONF_FUNCS_POINTER_ADD (   func_name)    {func_name, nsnull},

Definition at line 547 of file nsSystemPrefService.cpp.

#define GCONF_FUNCS_POINTER_BEGIN   static GConfFuncListType sGConfFuncList[] = {

Definition at line 545 of file nsSystemPrefService.cpp.

Definition at line 549 of file nsSystemPrefService.cpp.


Typedef Documentation

typedef void(* GConfClientAddDirType)(void *client, const gchar *dir, guint8 preload, GError **err)

Definition at line 101 of file nsSystemPrefService.cpp.

typedef PRBool(* GConfClientGetBoolType)(void *client, const gchar *key, GError **err)

Definition at line 84 of file nsSystemPrefService.cpp.

Definition at line 83 of file nsSystemPrefService.cpp.

typedef PRInt32(* GConfClientGetIntType)(void *client, const gchar *key, GError **err)

Definition at line 88 of file nsSystemPrefService.cpp.

typedef gchar*(* GConfClientGetStringType)(void *client, const gchar *key, GError **err)

Definition at line 86 of file nsSystemPrefService.cpp.

typedef guint(* GConfClientNotifyAddType)(void *client, const gchar *namespace_section, GConfClientNotifyFuncType func, gpointer user_data, GFreeFunc destroy_notify, GError **err)

Definition at line 93 of file nsSystemPrefService.cpp.

typedef void(* GConfClientNotifyFuncType)(void *client, guint cnxn_id, void *entry, gpointer user_data)

Definition at line 90 of file nsSystemPrefService.cpp.

typedef void(* GConfClientNotifyRemoveType)(void *client, guint cnxn)

Definition at line 99 of file nsSystemPrefService.cpp.

typedef void(* GConfClientRemoveDirType)(void *client, const gchar *dir, GError **err)

Definition at line 105 of file nsSystemPrefService.cpp.

Definition at line 109 of file nsSystemPrefService.cpp.

Definition at line 110 of file nsSystemPrefService.cpp.

Definition at line 114 of file nsSystemPrefService.cpp.

Definition at line 113 of file nsSystemPrefService.cpp.

Definition at line 112 of file nsSystemPrefService.cpp.


Enumeration Type Documentation

Enumerator:
GCONF_VALUE_INVALID 
GCONF_VALUE_STRING 
GCONF_VALUE_INT 
GCONF_VALUE_FLOAT 
GCONF_VALUE_BOOL 
GCONF_VALUE_SCHEMA 
GCONF_VALUE_LIST 
GCONF_VALUE_PAIR 

Definition at line 66 of file nsSystemPrefService.cpp.


Function Documentation

GCONF_FUNCS_POINTER_BEGIN GCONF_FUNCS_POINTER_ADD ( "gconf_client_get_default"  ) const
void gconf_key_listener ( void client,
guint  cnxn_id,
void entry,
gpointer  user_data 
) [static]

Definition at line 875 of file nsSystemPrefService.cpp.

{
    SYSPREF_LOG(("...SYSPREF_LOG...key listener get called \n"));
    if (!user_data)
        return;
    GConfCallbackData *pData = NS_REINTERPRET_CAST(GConfCallbackData *,
                                                   user_data);
    pData->proxy->OnNotify(client, entry, cnxn_id, pData);
}

Here is the call graph for this function:

Here is the caller graph for this function:

PRBool PR_CALLBACK gconfDeleteObserver ( void aElement,
void aData 
)

Definition at line 585 of file nsSystemPrefService.cpp.

                                                 {
    nsMemory::Free(aElement);
    return PR_TRUE;
}

Here is the caller graph for this function:

PRBool PR_CALLBACK sysPrefDeleteObserver ( void aElement,
void aData 
)

Definition at line 209 of file nsSystemPrefService.cpp.

                                                   {
    SysPrefCallbackData *pElement =
        NS_STATIC_CAST(SysPrefCallbackData *, aElement);
    NS_RELEASE(pElement->observer);
    nsMemory::Free(pElement);
    return PR_TRUE;
}

Here is the caller graph for this function: