author Mark Banner <>
Mon, 28 Apr 2014 20:30:10 +0100
changeset 19701 ebcaac24ae6e0ba51d0e5da49bf823ca0b3822f1
parent 13114 8fcc7b51d0a291008734b9dbe1e8be217df1f110
child 30913 e55693abfce01b96c36b8f24e695cb9802782c4b
permissions -rw-r--r--
Added tag BETA_BASE_20140428 for changeset ffacfc0539ea a=betamerge DONTBUILD CLOSED TREE

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at */

#ifndef nsWMUtils_h___
#define nsWMUtils_h___

#include <windows.h>
#include "nsIWindowsRegKey.h"

class nsIDOMDocument;

class nsWMUtils {
  static nsresult FindWMKey(nsIWindowsRegKey **aKey);
  static nsresult GetRootFolder(nsIFile **aRootFolder);
  static nsresult GetOEAccountFiles(nsCOMArray<nsIFile> &aFileArray);
  static nsresult GetOEAccountFilesInFolder(nsIFile *aFolder,
                                            nsCOMArray<nsIFile> &aFileArray);
  static nsresult MakeXMLdoc(nsIDOMDocument **aXmlDoc,
                             nsIFile *aFile);
  static nsresult GetValueForTag(nsIDOMDocument *aXmlDoc,
                                 const char *aTagName,
                                 nsAString &aValue);

#endif /* nsWMUtils_h___ */