sbICharsetDetector.idl
Go to the documentation of this file.
1 /*
2  *=BEGIN SONGBIRD GPL
3  *
4  * This file is part of the Songbird web player.
5  *
6  * Copyright(c) 2005-2010 POTI, Inc.
7  * http://www.songbirdnest.com
8  *
9  * This file may be licensed under the terms of of the
10  * GNU General Public License Version 2 (the ``GPL'').
11  *
12  * Software distributed under the License is distributed
13  * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
14  * express or implied. See the GPL for the specific language
15  * governing rights and limitations.
16  *
17  * You should have received a copy of the GPL along with this
18  * program. If not, go to http://www.gnu.org/licenses/gpl.html
19  * or write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  *=END SONGBIRD GPL
23  */
24 
31 #include "nsISupports.idl"
32 
37 [scriptable, uuid(6f70e030-56d7-11df-9879-0800200c9a66)]
39 {
43  readonly attribute boolean isCharsetFound;
44 
50  void detect(in ACString aStringToDetect);
51 
57  ACString finish();
58 };
59 
60 //
61 // C++ defs.
62 //
63 
64 %{C++
65 #define SB_CHARSETDETECTOR_CONTRACTID \
66  "@songbirdnest.com/Songbird/CharsetDetector;1"
67 %}C++
readonly attribute boolean isCharsetFound
whether the charset has already been found.
var uuid
void detect(in ACString aStringToDetect)
start to detect the charset.
function C(H)
A helper class to detect the string charset.
ACString finish()
finish the charset detection.