|
Lines 17-69
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGC
Link Here
|
| 17 |
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGnomeVFSService, Init) |
17 |
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGnomeVFSService, Init) |
| 18 |
#endif |
18 |
#endif |
| 19 |
#ifdef MOZ_ENABLE_GIO |
19 |
#ifdef MOZ_ENABLE_GIO |
| 20 |
#include "nsGIOService.h" |
20 |
#include "nsGIOService.h" |
| 21 |
#include "nsGSettingsService.h" |
21 |
#include "nsGSettingsService.h" |
| 22 |
NS_GENERIC_FACTORY_CONSTRUCTOR(nsGIOService) |
22 |
NS_GENERIC_FACTORY_CONSTRUCTOR(nsGIOService) |
| 23 |
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGSettingsService, Init) |
23 |
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsGSettingsService, Init) |
| 24 |
#endif |
24 |
#endif |
|
|
25 |
#include "nsSystemAlertsService.h" |
| 26 |
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsSystemAlertsService, Init) |
| 25 |
|
27 |
|
| 26 |
#ifdef MOZ_ENABLE_GCONF |
28 |
#ifdef MOZ_ENABLE_GCONF |
| 27 |
NS_DEFINE_NAMED_CID(NS_GCONFSERVICE_CID); |
29 |
NS_DEFINE_NAMED_CID(NS_GCONFSERVICE_CID); |
| 28 |
#endif |
30 |
#endif |
| 29 |
#ifdef MOZ_ENABLE_GNOMEVFS |
31 |
#ifdef MOZ_ENABLE_GNOMEVFS |
| 30 |
NS_DEFINE_NAMED_CID(NS_GNOMEVFSSERVICE_CID); |
32 |
NS_DEFINE_NAMED_CID(NS_GNOMEVFSSERVICE_CID); |
| 31 |
#endif |
33 |
#endif |
| 32 |
#ifdef MOZ_ENABLE_GIO |
34 |
#ifdef MOZ_ENABLE_GIO |
| 33 |
NS_DEFINE_NAMED_CID(NS_GIOSERVICE_CID); |
35 |
NS_DEFINE_NAMED_CID(NS_GIOSERVICE_CID); |
| 34 |
NS_DEFINE_NAMED_CID(NS_GSETTINGSSERVICE_CID); |
36 |
NS_DEFINE_NAMED_CID(NS_GSETTINGSSERVICE_CID); |
| 35 |
#endif |
37 |
#endif |
|
|
38 |
NS_DEFINE_NAMED_CID(NS_SYSTEMALERTSSERVICE_CID); |
| 39 |
|
| 36 |
|
40 |
|
| 37 |
static const mozilla::Module::CIDEntry kGnomeCIDs[] = { |
41 |
static const mozilla::Module::CIDEntry kGnomeCIDs[] = { |
| 38 |
#ifdef MOZ_ENABLE_GCONF |
42 |
#ifdef MOZ_ENABLE_GCONF |
| 39 |
{ &kNS_GCONFSERVICE_CID, false, NULL, nsGConfServiceConstructor }, |
43 |
{ &kNS_GCONFSERVICE_CID, false, NULL, nsGConfServiceConstructor }, |
| 40 |
#endif |
44 |
#endif |
| 41 |
#ifdef MOZ_ENABLE_GNOMEVFS |
45 |
#ifdef MOZ_ENABLE_GNOMEVFS |
| 42 |
{ &kNS_GNOMEVFSSERVICE_CID, false, NULL, nsGnomeVFSServiceConstructor }, |
46 |
{ &kNS_GNOMEVFSSERVICE_CID, false, NULL, nsGnomeVFSServiceConstructor }, |
| 43 |
#endif |
47 |
#endif |
| 44 |
#ifdef MOZ_ENABLE_GIO |
48 |
#ifdef MOZ_ENABLE_GIO |
| 45 |
{ &kNS_GIOSERVICE_CID, false, NULL, nsGIOServiceConstructor }, |
49 |
{ &kNS_GIOSERVICE_CID, false, NULL, nsGIOServiceConstructor }, |
| 46 |
{ &kNS_GSETTINGSSERVICE_CID, false, NULL, nsGSettingsServiceConstructor }, |
50 |
{ &kNS_GSETTINGSSERVICE_CID, false, NULL, nsGSettingsServiceConstructor }, |
| 47 |
#endif |
51 |
#endif |
|
|
52 |
{ &kNS_SYSTEMALERTSSERVICE_CID, false, NULL, nsSystemAlertsServiceConstructor }, |
| 48 |
{ NULL } |
53 |
{ NULL } |
| 49 |
}; |
54 |
}; |
| 50 |
|
55 |
|
| 51 |
static const mozilla::Module::ContractIDEntry kGnomeContracts[] = { |
56 |
static const mozilla::Module::ContractIDEntry kGnomeContracts[] = { |
| 52 |
#ifdef MOZ_ENABLE_GCONF |
57 |
#ifdef MOZ_ENABLE_GCONF |
| 53 |
{ NS_GCONFSERVICE_CONTRACTID, &kNS_GCONFSERVICE_CID }, |
58 |
{ NS_GCONFSERVICE_CONTRACTID, &kNS_GCONFSERVICE_CID }, |
| 54 |
#endif |
59 |
#endif |
| 55 |
#ifdef MOZ_ENABLE_GNOMEVFS |
60 |
#ifdef MOZ_ENABLE_GNOMEVFS |
| 56 |
{ NS_GNOMEVFSSERVICE_CONTRACTID, &kNS_GNOMEVFSSERVICE_CID }, |
61 |
{ NS_GNOMEVFSSERVICE_CONTRACTID, &kNS_GNOMEVFSSERVICE_CID }, |
| 57 |
#endif |
62 |
#endif |
| 58 |
#ifdef MOZ_ENABLE_GIO |
63 |
#ifdef MOZ_ENABLE_GIO |
| 59 |
{ NS_GIOSERVICE_CONTRACTID, &kNS_GIOSERVICE_CID }, |
64 |
{ NS_GIOSERVICE_CONTRACTID, &kNS_GIOSERVICE_CID }, |
| 60 |
{ NS_GSETTINGSSERVICE_CONTRACTID, &kNS_GSETTINGSSERVICE_CID }, |
65 |
{ NS_GSETTINGSSERVICE_CONTRACTID, &kNS_GSETTINGSSERVICE_CID }, |
| 61 |
#endif |
66 |
#endif |
|
|
67 |
{ NS_SYSTEMALERTSERVICE_CONTRACTID, &kNS_SYSTEMALERTSSERVICE_CID }, |
| 62 |
{ NULL } |
68 |
{ NULL } |
| 63 |
}; |
69 |
}; |
| 64 |
|
70 |
|
| 65 |
static nsresult |
71 |
static nsresult |
| 66 |
InitGType () |
72 |
InitGType () |
| 67 |
{ |
73 |
{ |
| 68 |
g_type_init(); |
74 |
g_type_init(); |
| 69 |
return NS_OK; |
75 |
return NS_OK; |