extensions/spellcheck/hunspell/src/mozHunspellDirProvider.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/extensions/spellcheck/hunspell/src/mozHunspellDirProvider.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,73 @@
     1.4 +/******* BEGIN LICENSE BLOCK *******
     1.5 + * Version: MPL 1.1/GPL 2.0/LGPL 2.1
     1.6 + * 
     1.7 + * The contents of this file are subject to the Mozilla Public License Version
     1.8 + * 1.1 (the "License"); you may not use this file except in compliance with
     1.9 + * the License. You may obtain a copy of the License at
    1.10 + * http://www.mozilla.org/MPL/
    1.11 + * 
    1.12 + * Software distributed under the License is distributed on an "AS IS" basis,
    1.13 + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
    1.14 + * for the specific language governing rights and limitations under the
    1.15 + * License.
    1.16 + * 
    1.17 + * The Initial Developers of the Original Code are Kevin Hendricks (MySpell)
    1.18 + * and László Németh (Hunspell). Portions created by the Initial Developers
    1.19 + * are Copyright (C) 2002-2005 the Initial Developers. All Rights Reserved.
    1.20 + * 
    1.21 + * Contributor(s): Benjamin Smedberg (benjamin@smedbergs.us) (Original Code)
    1.22 + *                 László Németh (nemethl@gyorsposta.hu)
    1.23 + *                 Ryan VanderMeulen (ryanvm@gmail.com)
    1.24 + * 
    1.25 + * Alternatively, the contents of this file may be used under the terms of
    1.26 + * either the GNU General Public License Version 2 or later (the "GPL"), or
    1.27 + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
    1.28 + * in which case the provisions of the GPL or the LGPL are applicable instead
    1.29 + * of those above. If you wish to allow use of your version of this file only
    1.30 + * under the terms of either the GPL or the LGPL, and not to allow others to
    1.31 + * use your version of this file under the terms of the MPL, indicate your
    1.32 + * decision by deleting the provisions above and replace them with the notice
    1.33 + * and other provisions required by the GPL or the LGPL. If you do not delete
    1.34 + * the provisions above, a recipient may use your version of this file under
    1.35 + * the terms of any one of the MPL, the GPL or the LGPL.
    1.36 + *
    1.37 + ******* END LICENSE BLOCK *******/
    1.38 +
    1.39 +#ifndef mozHunspellDirProvider_h__
    1.40 +#define mozHunspellDirProvider_h__
    1.41 +
    1.42 +#include "nsIDirectoryService.h"
    1.43 +#include "nsIFile.h"
    1.44 +#include "nsISimpleEnumerator.h"
    1.45 +#include "mozilla/Attributes.h"
    1.46 +
    1.47 +class mozHunspellDirProvider MOZ_FINAL :
    1.48 +  public nsIDirectoryServiceProvider2
    1.49 +{
    1.50 +public:
    1.51 +  NS_DECL_ISUPPORTS
    1.52 +  NS_DECL_NSIDIRECTORYSERVICEPROVIDER
    1.53 +  NS_DECL_NSIDIRECTORYSERVICEPROVIDER2
    1.54 +
    1.55 +  static char const *const kContractID;
    1.56 +
    1.57 +private:
    1.58 +  class AppendingEnumerator MOZ_FINAL : public nsISimpleEnumerator
    1.59 +  {
    1.60 +  public:
    1.61 +    NS_DECL_ISUPPORTS
    1.62 +    NS_DECL_NSISIMPLEENUMERATOR
    1.63 +
    1.64 +    AppendingEnumerator(nsISimpleEnumerator* aBase);
    1.65 +
    1.66 +  private:
    1.67 +    nsCOMPtr<nsISimpleEnumerator> mBase;
    1.68 +    nsCOMPtr<nsIFile>             mNext;
    1.69 +  };
    1.70 +};
    1.71 +
    1.72 +#define HUNSPELLDIRPROVIDER_CID \
    1.73 +{ 0x64d6174c, 0x1496, 0x4ffd, \
    1.74 +  { 0x87, 0xf2, 0xda, 0x26, 0x70, 0xf8, 0x89, 0x34 } }
    1.75 +
    1.76 +#endif // mozHunspellDirProvider

mercurial