mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
9172024f8e
new version registry name for mozilla, bug 10533; log now created by install wizards too, bug 26309; downloaded file cleanup moved into manager, bug 24249; scaffolding for bug 12817 and 12361 (conditional autoreg)
103 lines
3.6 KiB
Plaintext
103 lines
3.6 KiB
Plaintext
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/*
|
|
* The contents of this file are subject to the Mozilla Public License
|
|
* Version 1.1 (the "MPL"); you may not use this file except in
|
|
* compliance with the MPL. You may obtain a copy of the MPL at
|
|
* http://www.mozilla.org/MPL/
|
|
*
|
|
* Software distributed under the MPL is distributed on an "AS IS" basis,
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the MPL
|
|
* for the specific language governing rights and limitations under the
|
|
* MPL.
|
|
*
|
|
* The Initial Developer of this code under the MPL is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
|
|
* Reserved.
|
|
*/
|
|
#include "nsISupports.idl"
|
|
#include "nsIEnumerator.idl"
|
|
|
|
typedef PRUint32 nsRegistryKey;
|
|
typedef long nsWellKnownRegistry;
|
|
|
|
[scriptable,uuid(5D41A440-8E37-11d2-8059-00600811A9C3)]
|
|
interface nsIRegistry : nsISupports
|
|
{
|
|
const long None = 0;
|
|
const long Users = 1;
|
|
const long Common = 2;
|
|
const long CurrentUser = 3;
|
|
|
|
const long ApplicationComponentRegistry = 1;
|
|
const long ApplicationRegistry = 2;
|
|
|
|
// Dont use this one. This for internal use only.
|
|
const long ApplicationCustomRegistry = -1;
|
|
|
|
void open(in string regFile);
|
|
void openWellKnownRegistry(in nsWellKnownRegistry regid);
|
|
|
|
void flush();
|
|
boolean isOpen();
|
|
|
|
nsRegistryKey addKey(in nsRegistryKey baseKey, in wstring keyname);
|
|
nsRegistryKey getKey(in nsRegistryKey baseKey, in wstring keyname);
|
|
void removeKey(in nsRegistryKey baseKey, in wstring keyname);
|
|
|
|
wstring getString(in nsRegistryKey baseKey, in wstring valname);
|
|
void setString(in nsRegistryKey baseKey, in wstring valname, in wstring value);
|
|
|
|
string getStringUTF8(in nsRegistryKey baseKey, in string path);
|
|
void setStringUTF8(in nsRegistryKey baseKey, in string path, in string value);
|
|
|
|
PRInt32 getInt(in nsRegistryKey baseKey, in string path);
|
|
void setInt(in nsRegistryKey baseKey, in string path, in PRInt32 value);
|
|
PRInt64 getLongLong(in nsRegistryKey baseKey, in string path);
|
|
void setLongLong(in nsRegistryKey baseKey, in string path, inout PRInt64 value);
|
|
|
|
nsRegistryKey addSubtree(in nsRegistryKey baseKey, in string path);
|
|
void removeSubtree(in nsRegistryKey baseKey, in string path);
|
|
nsRegistryKey getSubtree(in nsRegistryKey baseKey, in string path);
|
|
|
|
nsRegistryKey addSubtreeRaw(in nsRegistryKey baseKey, in string path);
|
|
void removeSubtreeRaw(in nsRegistryKey baseKey, in string path);
|
|
nsRegistryKey getSubtreeRaw(in nsRegistryKey baseKey, in string path);
|
|
|
|
nsIEnumerator enumerateSubtrees(in nsRegistryKey baseKey);
|
|
nsIEnumerator enumerateAllSubtrees(in nsRegistryKey baseKey);
|
|
nsIEnumerator enumerateValues(in nsRegistryKey baseKey);
|
|
|
|
const unsigned long String = 1;
|
|
const unsigned long Int32 = 2;
|
|
const unsigned long Bytes = 3;
|
|
const unsigned long File = 4;
|
|
|
|
unsigned long getValueType(in nsRegistryKey baseKey, in string path);
|
|
PRUint32 getValueLength(in nsRegistryKey baseKey, in string path);
|
|
void deleteValue(in nsRegistryKey baseKey, in string path);
|
|
|
|
attribute string currentUserName;
|
|
|
|
void pack();
|
|
};
|
|
|
|
[scriptable, uuid(D1B54831-AC07-11d2-805E-00600811A9C3)]
|
|
interface nsIRegistryNode : nsISupports
|
|
{
|
|
readonly attribute string name;
|
|
readonly attribute nsRegistryKey key;
|
|
};
|
|
|
|
[scriptable,uuid(5316C380-B2F8-11d2-A374-0080C6F80E4B)]
|
|
interface nsIRegistryValue : nsISupports
|
|
{
|
|
readonly attribute string name;
|
|
readonly attribute unsigned long type;
|
|
readonly attribute PRUint32 length;
|
|
};
|
|
|
|
%{ C++
|
|
#include "nsIRegistryUtils.h"
|
|
%}
|