xpcom/system/nsIGConfService.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/system/nsIGConfService.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,50 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsISupports.idl"
    1.10 +
    1.11 +interface nsIArray;
    1.12 +
    1.13 +[scriptable, uuid(5009acae-6973-48c3-b6d6-52c692cc5d9d)]
    1.14 +interface nsIGConfService : nsISupports
    1.15 +{
    1.16 +  /* Basic registry access */
    1.17 +  boolean       getBool(in AUTF8String key);
    1.18 +  AUTF8String   getString(in AUTF8String key);
    1.19 +  long          getInt(in AUTF8String key);
    1.20 +  float         getFloat(in AUTF8String key);
    1.21 +
    1.22 +  /*
    1.23 +   * Use this to return any list items in GConf, this will return
    1.24 +   * an array of UTF16 nsISupportsString's.
    1.25 +   */
    1.26 +  nsIArray      getStringList(in AUTF8String key);
    1.27 +
    1.28 +  void setBool(in AUTF8String key, in boolean value);
    1.29 +  void setString(in AUTF8String key, in AUTF8String value);
    1.30 +  void setInt(in AUTF8String key, in long value);
    1.31 +  void setFloat(in AUTF8String key, in float value);
    1.32 +
    1.33 +  /*
    1.34 +   * Look up the handler for a protocol under the
    1.35 +   * /desktop/gnome/url-handlers hierarchy.
    1.36 +   */
    1.37 +  AUTF8String getAppForProtocol(in AUTF8String scheme, out boolean enabled);
    1.38 +
    1.39 +  /*
    1.40 +   * Check whether the handler for a scheme requires a terminal to run.
    1.41 +   */
    1.42 +  boolean handlerRequiresTerminal(in AUTF8String scheme);
    1.43 +
    1.44 +  /*
    1.45 +   * Set the handler for a protocol, marking it as enabled.
    1.46 +   * This removes any GnomeVFSMimeApp association for the protocol.
    1.47 +   */
    1.48 +  void   setAppForProtocol(in AUTF8String scheme, in AUTF8String command);
    1.49 +};
    1.50 +
    1.51 +%{C++
    1.52 +#define NS_GCONFSERVICE_CONTRACTID "@mozilla.org/gnome-gconf-service;1"
    1.53 +%}

mercurial