Back to index

lightning-sunbird  0.9+nobinonly
prefm.idl
Go to the documentation of this file.
00001 interface Prefm
00002 
00003 {
00004 
00005 /* IID: { 0xc29db6a1, 0xd195, 0x11d2,  \
00006 
00007   {0xbc, 0xf1, 0x00, 0x80, 0x5f, 0x0e, 0x13, 0x53}}
00008 
00009 
00010 
00011        /* error codes */
00012 
00013        const int PMERR_NO_4X_ON_SYSTEM           = -200;
00014 
00015        const int PMERR_GESTALT_UNKNOWN_ERR       = -5550;         
00016 
00017        const int PMERR_GESTALT_INVALID_ARGUMENT  = -5551;
00018 
00019 
00020 
00021        const int PM_SUCCESS                                         = 0;
00022 
00023 
00024 
00025        /* message IDs*/
00026 
00027        const int PM_ALEADY_UPDATED  = 0;
00028 
00029 
00030 
00031   /* 4.x and 5.x file names */
00032 
00033   const char* PM_USER_PREFS_FILE_4          = "prefs.js";
00034 
00035   const char* PM_USER_PREFS_FILE_5          = "prefs5.js";
00036 
00037   const char* PM_COMMUNICATOR_PREFS_FILE_4  = "netscape.cfg";
00038 
00039   const char* PM_COMMUNICATOR_PREFS_FILE_5  = "netscape5.cfg";
00040 
00041   const char* PM_REGFILE_4                  = "nsreg.dat";
00042 
00043   const char* PM_REGFILE_5                  = "nsreg5.dat";
00044 
00045        
00046 
00047        readonly attribute wstring com4xPath;
00048 
00049   readonly attribute wstring com5xPath;
00050 
00051        readonly attribute wstring userProfilePath;
00052 
00053   readonly attribute wstring systemPath;
00054 
00055 
00056 
00057        void Prefm();
00058 
00059 
00060 
00061        long SetPrefFilePaths(in wstring systemType, 
00062 
00063                              in wstring com5xPath,
00064 
00065                              in wstring userProfilePath);
00066 
00067 
00068 
00069 
00070 
00071 };